🔧 add style check to Makefile

This commit is contained in:
Niels Lohmann 2022-04-24 13:23:33 +02:00
parent d6b65aad48
commit 82905f54ec
No known key found for this signature in database
GPG Key ID: 7F3CEA63AE251B69

View File

@ -1,21 +1,21 @@
# serve the site locally
serve: prepare_files
serve: prepare_files style_check
venv/bin/mkdocs serve
serve_dirty: prepare_files
serve_dirty: prepare_files style_check
venv/bin/mkdocs serve --dirtyreload
build: prepare_files
build: prepare_files style_check
venv/bin/mkdocs build
# create files that are not versioned inside the mkdocs folder
# create files that are not versioned inside the mkdocs folder (images, examples)
prepare_files: clean
# create subfolders
mkdir docs/examples
# copy images
cp -vr ../json.gif docs/images
# copy examples
cp -vr ../examples/*.cpp ../examples/*.output docs/examples
cp -r ../json.gif docs/images
cp -r ../examples/*.cpp ../examples/*.output docs/examples
style_check:
@cd docs ; python3 ../scripts/check_structure.py
# clean subfolders
clean: