- Python 3.13 or higher.
- Install
docs_validatordirectly into the target project that requires documentation link validation.
Install for the docs-validator itself
pip install -e .
docs_validator --helpInstall for the system located in a sibling directory
cd ~/projects/project_to_validate/
python3 -m venv .venv
source .venv/bin/activate
pip install -e ../docs_validator[dev]
docs_validator --helpThe
-eflag creates symbolic links tosrc/docs_validator. Code changes apply instantly without reinstallation.
python3 -m venv .venv
source .venv/bin/activate
pip install git+https://github.com/Nokhrin/docs-validator.git
docs_validator --helpExample Source: https://github.com/avito-tech/playbook Fork: https://github.com/Nokhrin/playbook Clone
mkdir -p "$HOME/projects/"
cd "$HOME/projects/"
git clone git@github.com:Nokhrin/playbook.git playbook_markdown_validation
cd playbook_markdown_validation
python3 -m venv .venv
source .venv/bin/activate
pip install git+https://github.com/Nokhrin/docs-validator.git
docs_validator --helpdocs_validator scanTS=$(date +%Y%m%d_%H%M%S)
docs_validator scan --report markdown --output /tmp/playbook_markdown_validation_$TS.md
less /tmp/playbook_markdown_validation_$TS.mdTS=$(date +%Y%m%d_%H%M%S)
docs_validator scan --report html --output /tmp/playbook_markdown_validation_$TS.html
less /tmp/playbook_markdown_validation_$TS.htmldocs_validator scan --skip-externalNote: The hook requires
- python environment
- dependencies from
[dev]extras. Install them with:
pip install -e ".[dev]"Create pre-commit script
docs-validator install --pre-commit Create workflow scripts:
docs-validator install --github docs-validator install --gitlab By default, the tool looks for the .docs_validator.toml file in the root directory of the project being scanned.
Alternatively, you can specify a custom path using the --config flag.
Run with a custom configuration path:
docs_validator scan --config infrastructure/.docs_validator.toml