Vale style definitions and configurations for use in the to-do-service-* repos.
If they define the styles that you'd like to apply to other documentation files,
you can fork this repo and adapt the files for use in other projects.
Vale is a document text linter to check for and report content that doesn't conform to the style guide. This repo contains only the style and configuration files that a project can apply. It doesn't contain any of the source code of the Vale app.
- Fork this repo to your GitHub account.
- Clone your fork of this repo to your development system. Remember the directory of the clone.
- Install Vale on your development system.
If you are using another editor, stop here. You'll need to determine if your editor or IDE supports the Vale extension and how to install and configure it for your IDE.
If you're using, or you want to use the VS Code IDE, continue.
- If you don't already have VS Code installed on your development system, install VS Code now.
- Add the Vale extension to VS Code on your development system.
- In your VS Code editor, configure Vale to use the styles in this repo. In VS Code:
- Open the Settings page.
- In the Settings page, use the search bar to find the
vale CLIsettings. - In the list of settings, locate the
Vale › Vale CLI: Configsetting. - In the
Vale › Vale CLI: Configsetting, enter the full directory path of your clone of this repo, and then append/.vale.inito that path. For example, if the clone of this repo is in the/Users/username/GitHubRepos/UWC2-APIDOC/to-do-service-vale/directory, the value of theVale › Vale CLI: Configsetting would be/Users/username/GitHubRepos/UWC2-APIDOC/to-do-service-vale/.vale.ini. - Close the Settings page.
- Quit and restart VS Code.
At this point, VS Code calls the Vale text linter when you open a file in the VS Code editor and when you save it. The Problems pane contains the errors found. The errors are also underlined in the document.
-
Open the Problems pane in the VS Code window to see the errors found in the document.
-
You might consider installing the Markdown essentials extension to VS Code to keep the Markdown source formatted consistently. If you install this extension, add this JSON segment to the
settings.jsonin VS Code:``` "markdownlint.config": { "MD007": { "indent": 4 }, "MD036": false, "MD049": { "style": "underscore" }, "MD050": { "style": "asterisk" } } ```Note that changes to MarkdownLint styles must be made by hand in
settings.json. -
The Vale linter won't check the contents as you change the files. You must save the document file to update the list of errors.
-
You must manually refresh your clone of this repo to keep the styles and configuration current. If you aren't seeing some style errors reported by another reviewer in a code/document reviewer, it might be time to update the files.
To update your copy of these styles and configurations:
- In a browser:
- Go to your GitHub account and open your fork of the
to-do-service-valerepo. - In your fork of the
to-do-service-valerepo, select Sync fork.
- Go to your GitHub account and open your fork of the
- On your development computer:
- In your GitHub Desktop:
- Open your clone of the
to-do-service-valerepo. - In your clone, select Fetch origin.
- Open your clone of the
- In a command line tool:
CMDon Windows orterminalon MacOS and Linux:- Go to the workspace directory of your clone of the
to-do-service-valerepo. - Enter the command:
git pull origin mainto update themainbranch of the clone.
- Go to the workspace directory of your clone of the
- In your GitHub Desktop:
- In a browser: