-
Notifications
You must be signed in to change notification settings - Fork 1
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
Configure GHA to scan for spelling errors and broken links #157
base: main
Are you sure you want to change the base?
Conversation
Here's a link to the issue opened by the most recent GHA workflow run on this PR branch: #175. That issue contains a report generated by Lychee. |
Last night, I neglected to explain my decision to switch to Lychee. My rationale was that we already had a working Lychee scanning/issue creation GHA setup working in a different repo ( Regarding recursionI had said in December that Lychee's link checking was not recursive. By that, I meant that Lychee does not scan "pages that it learns about by following links on pages it was told about up front." It only scans the pages it is told about up front. That was a deal breaker for scanning a live website (where we don't have a way to specify all of its pages' URLs to Lychee up front). It isn't a deal breaker for scanning a file tree, since we do have a way to specify all of its pages' file paths to Lychee up front (we can do it with the [...] |
The more I plan my next steps on this branch, the more I want to separate the build step and deploy steps into separate workflows. I'll do that on |
# Conflicts: # .github/workflows/deploy-to-gh-pages.yml
Another option we have is to remove the spell checking from this PR and merge in the link checking, and then introduce spell checking as a follow-on task (some day). |
PR for spell check and link check github actions.
The link checker used performs (what I believe) is recursive checking through the compiled documents (since Eric mentions in this issue that lychee is not recursive). I found this specific checker by looking through the link checkers listed in this table generated by lychee.
The spell checker used is based off my list in the original issue. I don't remember the reasons for the order of the list, but if this does not serve us as well down the line, there are other options to look into.
Both actions are listed in one yml to be grabbed by the deployment action after the build step. I'm not sure if the move is to keep it as is, or move the build step to its own file to be called by the deploy action. I think it would be good for this check action to be run with every PR and / or deployment because it doesn't hurt.