• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# serve the site locally
2serve: prepare_files
3	venv/bin/mkdocs serve
4
5# create files that are not versioned inside the mkdocs folder
6prepare_files: clean
7	# build Doxygen
8	$(MAKE) -C ..
9	# create subfolders
10	mkdir docs/images docs/examples
11	# copy images
12	cp -vr ../json.gif ../images/range-begin-end.svg ../images/range-rbegin-rend.svg docs/images
13	# copy examples
14	cp -vr ../examples/*.cpp ../examples/*.output docs/examples
15
16# clean subfolders
17clean:
18	rm -fr docs/images docs/examples
19
20# publish site to GitHub pages
21publish: prepare_files
22	venv/bin/mkdocs gh-deploy --clean --force
23
24# install a Python virtual environment
25install_venv: requirements.txt
26	python3 -mvenv venv
27	venv/bin/pip install -r requirements.txt
28
29# uninstall the virtual environment
30uninstall_venv: clean
31	rm -fr venv
32