-
Notifications
You must be signed in to change notification settings - Fork 39
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
Automate editorial style checking #184
Conversation
Use Vale.sh and reviewdog to check editorial style and spelling in new content. This process has been added as a workflow in GitHub actions. The check will fail if new content contains an error, and post a message in the PR-checks and the modified files
Deployment has finished 👁️👄👁️ Your app is available here |
🚀 Your app has been updated and is available here |
🚀 Your app has been updated and is available here |
🚀 Your app has been updated and is available here |
🚀 Your app has been updated and is available here |
🚀 Your app has been updated and is available here |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested and approved. Let's start with it now and refine the rules later. The suggestions given by Vale are helpful.
LGTM, it's a good starting point. Maybe we can add a short mention to contributing rules and links to Vale, setup guide, list of integrations, etc. before merge. After some tests it's good at spelling, but some rules are more annoying than useful and we'll need to choose what to keep or not in the coming weeks. But as they only appear as warnings, it's ok for now. For example, the future form is always marked as mistake to avoid with little informations on why, but when you look at the detailed rule on an external website, it tells... "it's ok if you talk about future" 😄 And I don't agree on some as the we/our rule in the Changelog context (can be used only after citing the org name). So in the meantime, we should keep it clear that it's a first step with general rules we'll refine over time, and that contributor can choose to follow or not. |
🚀 Your app has been updated and is available here |
Your review app has been deleted 👋 |
Checklist
Pull request type
Please check the type of change your PR introduces:
Description
A summary of the changes
This PR includes an additional GitHub Action with Vale integration. Vale is a documentation linter for editorial style and spelling to automate reviewing and ensure high quality content is merged.
It's configured as follows:
.vale.ini
file to specify how to check the content:In the current file, Vale is configured as follows:
/.github/
to allow running Vale on local and on GitHub Actions runners as well.add-on
is accepted whileaddon
isn't)..xml
has been included, because our files contains it.The workflow will run on Pull Requests and fail if the submitted content contains 1 error, then post the error directly on the review, like in this example:
The review scope is filtered by Reviewdog when running as a GitHub Action. It's been set to
added
in this PR, to consider only changes in the modified or added lines.Further Customization
Vale can be tweaked and customized as we wish. We can add exceptions, specific vocabulary and rules that will suit our doc. This PR contains basic configuration that can be expanded.
Drawbacks
There are some limitations in Vale: some lines happen to be missed and the reviewdog action fails if Vale flags something as a warning (it should only fail on error). It's still in development and we could contribute to enhance it as well.
Why is this needed?
Writing good doc is hard but makes the reading easy. Memorizing all good practice principles and reviewing/enforcing them manually takes time and isn't an option if we want to allow everyone to contribute. Including this changes will allow us to:
Reviewes
Who should review these changes? @cnivolle @davlgd