This repository provides RISC-V specification authors with Vale rulesets that implement RISC-V International's recommended language and style guidelines.
Vale is a command-line tool that brings code-like linting to prose. RISC-V International uses Vale to implement the rules defined by the Doc-Sig and approved by the TSC.
The rules are outlined in the Authoring and Editing RISC-V Specifications guide.
RISC-V International has implemented a reusable Vale workflow th
Follow these steps to add and enable Vale to your GitHub repository.
- Install Vale with
brew install vale(macOS) orchoco install vale(Windows). - Copy the .vale.ini file from this repository to the root of your specification's repository.
- Copy the vale-using-reusable.yml workflow file from this repository to the .github/workflows directory of you specification's repository.
- This workflow will be triggered on any pushes or pull requests to your repository.
- Download the RISC-V Vale rules to your repository locally but no need to add them to Git.
- open a terminal and change to the root of your extensions repository
- run the command
vale sync
- For realtime recommendations, add the Vale VSCode extension from the marketplace.