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

Test Fh/notebook job cron #4

Closed
wants to merge 11 commits into from
Closed

Test Fh/notebook job cron #4

wants to merge 11 commits into from

Conversation

frankharkins
Copy link
Owner

No description provided.

@frankharkins frankharkins force-pushed the FH/notebook-job-cron branch from de4f939 to 0bc5f57 Compare March 21, 2024 10:37
@frankharkins frankharkins deleted the FH/notebook-job-cron branch March 26, 2024 10:55
frankharkins added a commit that referenced this pull request Jul 22, 2024
This PR adds a link-checking script to verify internal links work. It
should be easy to extend this to check external links, and anchors
within internal links. All comments welcome.

### Details

Uses `markdown-link-extractor`, which is used by `markdown-link-check`
(one of the proposed tools).

***

First part of #4
frankharkins pushed a commit that referenced this pull request Jul 22, 2024
### Summary

This PR adds a suggestion of a valid link for every broken link that the
link checker finds. This feature only works with internal links and
anchors.

To calculate the best replacement for a broken link, the function
`didYouMean` in `scripts/lib/LinkChecker.ts` uses the [Levenshtein
distance](https://en.wikipedia.org/wiki/Levenshtein_distance) between
the broken link and all the files we have in docs, as it was originally
suggested in #4.

The package used to implement the Levenshtein distance calculation is
[fast-levenshtein](https://www.npmjs.com/package/fast-levenshtein).
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