json/doc/mkdocs/Makefile
Niels Lohmann a8f0cd15df
📝 add mkdocs
2020-05-24 13:03:04 +02:00

24 lines
500 B
Makefile

serve: prepare_files
venv/bin/mkdocs serve
prepare_files:
# build Doxygen
$(MAKE) -C ..
# clean subfolders
rm -fr docs/images docs/examples
# create subfolders
mkdir docs/images docs/examples
# copy images
cp -vr ../json.gif docs/images
# copy examples
cp -vr ../examples/*.cpp ../examples/*.output docs/examples
publish: prepare_files
venv/bin/mkdocs gh-deploy --clean --force
install_venv:
python3 -mvenv venv
venv/bin/pip install -r requirements.txt
uninstall_venv:
rm -fr venv