A Vale-compatible style for technical writers documenting open-source software and for anyone writing about Open Source.
The supplied rules perform the following checks:
- common language usage errors
- punctuation
- editorializing
- wordiness
- terminology
- corporate speak
- inclusive language
The following installation procedure has been tested on Linux Mint and openSUSE.
- Check the available tags at https://github.com/errata-ai/vale/tags
- Use wget to download the latest tag, for example:
wget https://github.com/errata-ai/vale/releases/download/v2.20.0/vale_2.20.0_Linux_64-bit.tar.gz
- Extract the downloaded archive:
tar xvf vale_2.20.0_Linux_64-bit.tar.gz vale
- Move the vale binary to the /usr/local/bin directory:
sudo mv ./vale /usr/local/bin
Instead of /usr/local/bin, you can move the binary to any directory that is in $PATH
.
- Install Brew:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
- Install Vale:
brew install vale
- Create the styles directory:
mkdir $HOME/styles
- Clone the Git repository:
cd $HOME/styles && git clone https://github.com/dmpop/techpubstyle.git
Create a configuration file in your home directory:
nano $HOME/.vale.ini
Add the following configuration:
StylesPath = styles
MinAlertLevel = suggestion
[asciidoctor]
experimental = YES
[*.{md,txt,adoc}]
BasedOnStyles = techpubstyle
Save the changes.
- Install the libxslt-tools and docbook-xsl-stylesheets packages.
- Open the .vale.ini file for editing and update the existing configuration as follows:
StylesPath = styles
MinAlertLevel = suggestion
[asciidoctor]
experimental = YES
[*.xml]
Transform = /usr/share/xml/docbook/stylesheet/suse2022-ns/xhtml/docbook.xsl
BasedOnStyles = techpubstyle
[*.{md,txt,adoc}]
BasedOnStyles = techpubstyle
- Save the changes.
- Install the docbook5-xml and docbook-xsl packages.
- Open the .vale.ini file for editing and update the existing configuration as follows:
StylesPath = styles
MinAlertLevel = suggestion
[asciidoctor]
experimental = YES
[*.xml]
Transform = /usr/share/xml/docbook/stylesheet/nwalsh/html/docbook.xsl
BasedOnStyles = techpubstyle
[*.{md,txt,adoc}]
BasedOnStyles = techpubstyle
- Save the changes.
In VS Code, install the Vale +VS Code extension. In VSCodium, install Vale +VS Code extension.
In VS Code or VSCodium, choose File > Preferences > Settings and specify the path to the Vale binary (for example, /usr/local/bin/vale) under Vale > Vale CLI: Path.
Switch to the techpubstyle directory and run the git pull
command.
Please report bugs and issues in the Issues section.
If you've found an error, or you have a suggestion for improvement, open an issue in the Issues section.
To add a new feature or fix issues yourself, proceed as follows.
- Fork the project's repository.
- Create a feature branch using the
git checkout -b new-feature
command. - Add your new feature or fix bugs and run the
git commit -am 'Add a new feature'
command to commit changes. - Push changes using the
git push origin new-feature
command. - Submit a pull request.
Dmitri Popov dmpop@linux.com