-
Notifications
You must be signed in to change notification settings - Fork 35
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
EPIC: errors in markdown need fixing before merging a change (CI for documentation) #308
Comments
after PR #334 |
I've been working on this today. I've completed files starting with A-H. |
@rusefillc sorry this is NOT closed |
You can't just re-open an issue without explaining why. |
markdownlint-cli2 v0.6.0 (markdownlint v0.27.0) |
@chuckwagoncomputing |
to avoid misunderstanding I wanted to clarify: |
Please state your view as to why this issue should not be closed. |
Current implementation validates all markdown files but without any consequence in case of detected error |
Fixed. Details in #268 |
@chuckwagoncomputing does the current implementation prevent references with .md extension? BTW: I Prefix this issue as "EPIC" (as suggested by Andrey) to remain in control of status |
No it doesn't. An idea I have for how to do that is to modify brokenlinks.sh to accept a flag to make it non-interactive, and just check links. |
not sure if this is the best approach because in my tests here brokenlinks.sh was extremely slow compared to markdown-link-validator. Another approach could be "custom rule" for markdownlint. |
brokenlinks.sh takes less than a minute on my ~5 year old laptop. It could also be modified to only check the files that were changed in the PR. If you really want to customize other tools to fit our needs, please feel free to do so. I only recommend not doing so because I don't feel that it's a good use of developer time. |
I did just try again and had no result after 30 minutes! Operating System
I'd see this change as a must have |
On second thought, only checking the files that were changed isn't sufficient if a file was renamed or deleted. A solution would need to check for that. |
From my view the events "file was renamed or deleted" are not handled in current GH actions. This understanding stems from your comment "Most of the boards in firmware/config/boards have not had a pinouts made for them, which is why they fail in the workflow." in this comment but the fact that pinouts do actually exist (as example see https://rusefi.com/docs/pinouts/BB_V3/) and same error in GH action as I experienced and logged here Is my understanding correct? |
The same workflow would trigger whether a file was modified or files were renamed or deleted. Yes, I was wrong. I thought that the board was skipped if the id was missing, turns out the script says: |
close as script now fails if errors are detected |
Validate Markdown Files With MarkdownLint according to this blog post revealed over 7K errors.
To avoid follow-on errors in other tools I'd suggest to fix them.
Luckily most errors can be fixed automatically.
As a follow-up we should activate this check on each commit.
mdl-20221224.log
The text was updated successfully, but these errors were encountered: