-
Notifications
You must be signed in to change notification settings - Fork 7
Introduce automated documentation linting #643
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
Comments
I've been using codespell on a personal project, unlike a spell checker it catches common misspellings. I've given it a quick go with In my own project I'm running it as a pre-commit hook, but it could easily be a CI step too. I've found it useful since my project has lots of non-dictionary words so standard spell checking is far too noisy. |
I ran codespell against the current docs and did fix some things as a result, so I'm for adding that in this repository too sometime. That's a nice simpler intermediate step over adding a full spellcheck. It may be worth considering using the GitHub Action, because of the nice annotations; example: codespell-project/actions-codespell#16. |
Markdown linting tools
FeaturesI think both Any of these tools gives you a rule set 1 to enable or disable to configure your own style. Rules are a mixture of very debatable suggestions (for example, list bullet style) and suggestions that likely make universal sense and are mistakes by the writer (for example, heading levels shouldn't be skipped; brackets should come before parentheses in link syntax). You can also ignore warnings for false positives. There is a little bit of overlap of some of these rules and some of what Vale does. For example, you can check capitalisation of proper nouns with the Node-based markdownlint, which you can also do with Vale. I think the preference would be to keep the Markdown linter's scope to specifically checking the Markdown. Process of triallingEnabling one of these tools is probably a process of:
We'd probably want to warn first, and see how useful the checks are, before enforcing. Questions
Benefits
Footnotes
|
Here are some ideas for suggestions we could provide with Vale. |
Uh oh!
There was an error while loading. Please reload this page.
Goal 🏁
Improve consistency across the documentation for both readers and writers. Or at least highlight the inconsistencies.
This suggestion is prompted:
Tooling 🔨
There are several linting tools out there. But, Vale allows you to apply different style rules or guides taken from various different linters. You can also write your own rules in YAML.
Vale aside: there are lots of other potential tools around. But Vale is mentioned a lot.
How do other people work? 👀
For example, GitLab's technical writers use:
I'm more interested in the stages, than the specific tools chosen by the GitLab team. We don't have any of these right now. I also opened #642 for link checking as I believe that's a self-contained problem.
Note that tools like markdownlint are actually focused on markup consistency, not content consistency. This might be another benefit. We — understandably — have a mixture of Markdown styles across our documentation due to different author contributions.
Considerations 💭
The text was updated successfully, but these errors were encountered: