This repository contains the Vale style linting tests for Chef Documentation.
Vale Microsoft Style Guide Microsoft Vale
We have copied the lint files from the Microsoft Vale into our repository. We have made changes to some Microsoft lints and added our own linting tests.
- Chef lints are in lower case and use an underscore,
_
to separate words. - Microsoft lints are capitalized and use CamelCase.
- Changed Microsoft lints are in lower case
Exceptions to the Microsoft style:
Style | Chef | Microsoft |
---|---|---|
eadings | title-case | |
HeadingAcronyms | yes | no |
Contractions | no | yes |
RangeFormat | no | yes |
Quotes | no | yes |
GeneralURL | no | yes |
Extended lints:
avoid.yml foreign.yml heading_punctuation.yml metric.yml
Chef lints:
brands.yml chef_automate.yml chef_desktop.yml chef_habitat.yml chef_infra_client.yml chef_infra_server.yml habitat_artifact.yml habitat_builder.yml habitat_depot.yml habitat_studio.yml habitat_supervisor.yml inclusive.yml policyfile.yml
Note: We should handle the Microsoft lints correctly, as documented on docs.errata.ai
The Vale GitHub Action requires a released .zip
archive file. The .github\workflows\main.yaml
workflow is a minimal approach to creating this release.
-
Create a zip file with the Chef lints
cd Chef zip -r chef-style.zip ../releases
-
Commit the changes and merge
-
Create and tag the release from the release tab