mirror of
https://gitlab.com/hashborgir/d2tweaks-rnd2k.git
synced 2025-10-14 00:44:22 -05:00
Bag of holding updates
This commit is contained in:
34
vendor/json/doc/mkdocs/Makefile
vendored
Normal file
34
vendor/json/doc/mkdocs/Makefile
vendored
Normal file
@@ -0,0 +1,34 @@
|
||||
# serve the site locally
|
||||
serve: prepare_files
|
||||
venv/bin/mkdocs serve
|
||||
|
||||
build: prepare_files
|
||||
venv/bin/mkdocs build
|
||||
|
||||
# create files that are not versioned inside the mkdocs folder
|
||||
prepare_files: clean
|
||||
# build Doxygen
|
||||
$(MAKE) -C ..
|
||||
# create subfolders
|
||||
mkdir docs/images docs/examples
|
||||
# copy images
|
||||
cp -vr ../json.gif ../images/range-begin-end.svg ../images/range-rbegin-rend.svg ../images/callback_events.png docs/images
|
||||
# copy examples
|
||||
cp -vr ../examples/*.cpp ../examples/*.output docs/examples
|
||||
|
||||
# clean subfolders
|
||||
clean:
|
||||
rm -fr docs/images docs/examples
|
||||
|
||||
# publish site to GitHub pages
|
||||
publish: prepare_files
|
||||
venv/bin/mkdocs gh-deploy --clean --force
|
||||
|
||||
# install a Python virtual environment
|
||||
install_venv: requirements.txt
|
||||
python3 -mvenv venv
|
||||
venv/bin/pip install -r requirements.txt
|
||||
|
||||
# uninstall the virtual environment
|
||||
uninstall_venv: clean
|
||||
rm -fr venv
|
Reference in New Issue
Block a user