mirror of
https://github.com/Dasharo/docs.git
synced 2026-03-06 14:46:22 -08:00
dts_doc_update
Signed-off-by: Przemyslaw Sulewski <przemyslaw.sulewski@3mdeb.com>
About
This repository contains source code for Dasharo documentation webpage
Local build
virtualenv -p $(which python3) venv
source venv/bin/activate
pip install -r requirements.txt
mkdocs build
Broken links checker
cd utils/blc
docker build -t blc .
docker run --network host blc blc http://0.0.0.0:8000 -r|grep BROKEN
Make sure no TBD or TODO content is displayed
Find all occurrences:
grep -E "TBD|TODO" docs/**/*.md -r
Iterate over all occurrences and check if:
- file where TBD or TODO occurs is displayed (included in nav section of mkdocs.yml)
- TBD or TODO is visible on website
There should be no TBD or TODO visible on website.
pre-commit hooks
-
Install pre-commit, if you followed local build procedure
pre-commitshould be installed -
Install hooks into repo:
pre-commit install --hook-type commit-msg
-
Enjoy automatic checks on each
git commitaction! -
(Optional) Run hooks on all files (for example, when adding new hooks or configuring existing ones):
pre-commit run --all-files
To skip verification
In some cases it may be needed to skip pre-commit tests, to do that please
use:
git commit --no-verify
Languages
HTML
48.1%
Python
46.2%
Shell
5.7%