🔧 add style check to Makefile
This commit is contained in:
parent
d6b65aad48
commit
82905f54ec
@ -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:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user