Vale is a natural language linter that helps writers improve their prose. Opni uses it to standardize markdown files.
Refer to: https://vale.sh/docs/vale-cli/installation/
The vale configuration file used for Opni is located at .vale.ini
After installing, run vale sync
to fetch the styles specified in the configuration file. This only needs to be run once.
Single file:
vale path/to/file.md
Multiple files:
vale path/to/directory/
If you don't want to install vale, you can run it in a docker container by mounting the Opni source after installing the packages .vale.ini
:
docker run -v $(pwd):/opni jdkato/vale:v2.22.0 --config /opni/.vale.ini /opni/<file>