Versioned documentation is published automatically here: https://ibm-mas.github.io/gitops/.
Documentation source is located in the docs
folder.
To view your local documentation updates before pushing to git, run the following:
python3.9 -m venv .venv
source .venv/bin/activate
pip install --upgrade pip
pip install mkdocs
pip install mkdocs-redirects
pip install mkdocs-macros-plugin
pip install mkdocs-drawio-file
mkdocs serve
A custom pre-commit hook to automatically verify that various requirements are met in template files can be enabled by running the following commands:
python -m pip install pre-commit --upgrade
pre-commit install
Manually run the pre-commit hooks against changed files
pre-commit run
Manually run the pre-commit hooks against all files
pre-commit run -a
The same logic invoked by the commit hook logic is run and enforced by the "lint" Github Action.