-
Notifications
You must be signed in to change notification settings - Fork 637
Add markdownlint to CI workflow to lint documentation #2185
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
base: main
Are you sure you want to change the base?
Add markdownlint to CI workflow to lint documentation #2185
Conversation
0ab1de3
to
15c7468
Compare
I'd maybe consider using |
|
35931d7
to
5ee130f
Compare
Signed-off-by: sumitgiri87 <[email protected]> Signed-off-by: Sumit Giri <[email protected]>
Signed-off-by: sumitgiri87 <[email protected]> Signed-off-by: Sumit Giri <[email protected]>
Signed-off-by: Sumit Giri <[email protected]>
Signed-off-by: Sumit Giri <[email protected]>
5ee130f
to
10c1e3e
Compare
I think we'd want to manually format the Markdown files, rather than having the workflow do it, so that a human actually considers whether any formatting changes introduced bugs. We'd want to document somewhere (or have the failing script output a reminder) how to run the Markdown formatting commands manually. |
Conceptually sensible, but this means this PR would either have to get(include the result of this manual review (as the linter fails in PR) or we need to merge with CI failing and do a separate PR to fix the markdown. What's your preference @dstebila @sumitgiri87 how to do it? |
Would separate commits on this PR be sufficient organization? One sequence of commits setting up the tool and checks, noting that the CI will fail on those commits, followed by a distinct commit that fixed the Markdown. One could then read the commit history separately for ease of review, but still end up with a single PR that is green at the end? |
I'd say so. Just please make sure to not squash these logically separate commits (as otherwise is usual) during merge such as to be able to separately roll them back if the need may arise. |
This adds a Markdown linter to the CI workflow to help catch formatting and style issues in our documentation automatically. The goal is to keep our Markdown files clean and consistent without needing manual checks.
Fixes #1785
Yep, the linter runs on every pull request to make sure all Markdown files follow the style rules we've set.
No, this PR only adds a Markdown linter to the documentation CI and does not affect any cryptographic algorithms or their outputs.
No, this PR does not modify any algorithms or APIs; it only improves documentation quality checks.