InvenTree/docs/ci/check_mkdocs_config.py
Matthias Mair 4869d0dab8
Add mermaid to docs (#5405)
* move devcontainer docs

* rename bare metal pages

* fix backlinks

* Add getting started for devs

* add mermaid

* include contrib in docs

* use another plugin

* include everything

* update doc checks

* fix install command

* Update mkdocs.yml

* Update mkdocs.yml

* Update starting.md

* Update starting.md

* Update starting.md

* extend requirements

* Update mkdocs.yml

* clean diff

* clean diff + check if it works

* fix CI check for custom tags

* clean md
2024-02-05 21:40:38 +11:00

17 lines
314 B
Python

"""Check mkdocs.yml config file for errors."""
import os
import yaml
here = os.path.dirname(__file__)
tld = os.path.abspath(os.path.join(here, '..'))
config_file = os.path.join(tld, 'mkdocs.yml')
with open(config_file, 'r') as f:
data = yaml.load(f, yaml.BaseLoader)
assert data['strict'] == 'true'