2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-07-17 18:26:32 +00:00
Files
.devcontainer
.devops
.github
.vscode
assets
contrib
docs
_includes
ci
check_mkdocs_config.py
docs
.gitignore
LICENSE
README.md
__init__.py
extract_schema.py
main.py
mkdocs.yml
mlc_config.json
requirements.in
requirements.txt
src
.git-blame-ignore-revs
.gitattributes
.gitignore
.pkgr.yml
.pre-commit-config.yaml
CONTRIBUTING.md
LICENSE
Procfile
README.md
RELEASE.md
SECURITY.md
codecov.yml
crowdin.yml
pyproject.toml
readthedocs.yml
requirements.txt
runtime.txt
tasks.py
InvenTree/docs/ci/check_mkdocs_config.py
Matthias Mair 4869d0dab8 Add mermaid to docs ()
* 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'