Files
docs/README.md
Piotr Król 18e002c128 fix README.md:65 MD040/fenced-code-language
Signed-off-by: Piotr Król <piotr.krol@3mdeb.com>
2022-03-23 00:02:54 +01:00

1.3 KiB

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

pre-commit install --hook-type commit-msg
  • Enjoy automatic checks on each git commit action!

  • (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