2
0
mirror of https://github.com/inventree/inventree-docs.git synced 2025-06-13 10:45:32 +00:00

Add a .github workflow to check that "strict" mode is always set

This commit is contained in:
Oliver
2021-11-05 20:28:25 +11:00
parent 191ca07207
commit f39c54be8d
2 changed files with 39 additions and 0 deletions

13
ci/check_mkdocs_config.py Normal file
View File

@ -0,0 +1,13 @@
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.safe_load(f)
assert data['strict'] == True