mirror of
https://github.com/Dasharo/docs.git
synced 2026-03-06 14:46:22 -08:00
bbb1b01d7fe90ca3f56929cf149ca655521cdcee
Signed-off-by: Przemysław 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 mkdocs mkdocs-material
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 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
Languages
HTML
48.1%
Python
46.2%
Shell
5.7%