-
Install Vale according to the instructions on the website.
-
Make sure Vale is installed correctly by running
valein the command line. -
(Optional) Install the Vale plugin in VSCode.
The basic way to run Vale is the following:
vale --config /path/to/vale/.vale.ini /path/to/doc/repo/modules/ROOT/pages/index.adocHere /path/to/vale/ is the path to this repository, where the .vale.ini file can be found.
The /path/to/doc/repo/ instead is the path to the repository containing the docs you want to run Vale on.
For example, run Vale with the included .ini file and the test Asciidoc file:
vale --config vale/.vale.ini vale/test.adocTo add a new style (for example the Google style guide) in the Vale configuration, do the following:
-
Edit the
vale.inifile to either addGoogleto theBasedOnStyles(to add all the style rules by default, and optionally disable some), or add single rules such asGoogle.DateFormat = YES. -
Run
vale --config vale/.vale.ini syncto download the new style (if it has not been downloaded before).
|
Note
|
Any external styles added to the vale/styles directory (except our custom ones) must be added to .gitignore.
|
You can add terms with their accepted spelling in the accept.txt file(s) within the vale/config/vocabularies subdirectories.
|
Note
|
Do not add entries where an entry fully contains another one, such as Neo4j and Neo4j Aura.
Use the Neo4j/Names.yml rule for single words instead.
|