Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#4] Use xrefcheck to check links on CI #1

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

gromakovsky
Copy link
Member

Problem: Markdown files contain a plenty of links which tend to get outdated occasionally. It's hard to notice when a certain link (local or global) becomes broken.

Solution: in the past, the xrefcheck tool was used to find broken links:

See https://github.com/serokell/xrefcheck
This PR automates xrefcheck running by adding it as a new GitHub Action job.
It uses xrefcheck-action under the hood.

Description

Please include a meaningful description of the PR and link the relevant issues
this PR might resolve.

Also note that:

  • New code should be properly tested (even if it does not add new features).
  • The fix for a regression should include a test that reproduces said regression.

@gromakovsky gromakovsky force-pushed the gromak/add-xrefcheck-to-ci branch 3 times, most recently from 7e39b77 to 89329ea Compare January 23, 2024 17:48
@gromakovsky gromakovsky force-pushed the gromak/add-xrefcheck-to-ci branch from 89329ea to f85bc43 Compare February 4, 2024 17:13
@int-index int-index force-pushed the gromak/add-xrefcheck-to-ci branch from f85bc43 to 3de3464 Compare December 31, 2024 12:46
Problem: Markdown files contain a plenty of links which
tend to get outdated occasionally. It's hard to notice
when a certain link (local or global) becomes broken.

Solution: in the past, the `xrefcheck` tool was used
to find broken links:
* IntersectMBO#3
* IntersectMBO#454

See https://github.com/serokell/xrefcheck
This PR automates `xrefcheck` running by adding it as a new
GitHub Actions job.
It uses [xrefcheck-action](https://github.com/serokell/xrefcheck-action)
under the hood.

Resolves IntersectMBO#4
Problem: several links in Markdown files are broken.

Solution:
1. Links in References.md, index.md and TechnicalReports.md
are invalid in the sense of Markdown and this repo, but
they work on the website, so they are explicitly ignored.
2. Glossary.md contains many links to anchors in the same file.
These anchors work differently in Markdown and Docusarus as can
be seen here:
https://ouroboros-consensus.cardano.intersectmbo.org/docs/for-developers/Glossary/
Ideally, they should be fixed to work on the resulting website,
in which case all of them would be broken in the sense of Markdown.
Fixing them for Docusaurus is out of scope of this commit,
but we force xrefcheck to ignore all links in that file in
preparation for that fix.
3. There is also an anchor link in VersioningSchemeDecision.md,
but this file is not used in the resulting website, so we fix
it according to Markdown rules.
@gromakovsky gromakovsky force-pushed the gromak/add-xrefcheck-to-ci branch from 3de3464 to a22feb3 Compare January 6, 2025 10:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant