Debian Codegraph @

docs/mkdocs/Makefile

raw symbols SCIP
1 # serve the site locally
2 serve: style_check
3 venv/bin/mkdocs serve
4
5 serve_dirty: style_check
6 venv/bin/mkdocs serve --dirtyreload
7
8 # This target is used in the CI (ci_test_build_documentation).
9 # This target is used by the docset Makefile.
10 build: style_check
11 venv/bin/mkdocs build
12
13 style_check:
14 @cd docs ; ../venv/bin/python3 ../scripts/check_structure.py
15
16 # check the links in the documentation files in docs/mkdocs
17 link_check:
18 ENABLED_HTMLPROOFER=true venv/bin/mkdocs build
19
20 # check the links in all other Markdown files
21 link_check_markdowns:
22 npx markdown-link-check --progress --alive 200,429 ../../README.md ../../FILES.md ../../.github/*.md
23
24 # publish site to GitHub pages (not working in GitHub Actions; need special action)
25 publish:
26 venv/bin/mkdocs gh-deploy --clean --force
27
28 # install a Python virtual environment
29 # This target is used by the docset Makefile.
30 install_venv: requirements.txt
31 python3 -mvenv venv
32 venv/bin/pip install --upgrade pip
33 venv/bin/pip install -r requirements.txt
34
35 # uninstall the virtual environment
36 uninstall_venv:
37 rm -fr venv
38
39 update_requirements:
40 rm -fr venv_small
41 python3 -mvenv venv_small
42 venv_small/bin/pip3 install pur
43 venv_small/bin/pur -r requirements.txt
44 rm -fr venv_small venv
45 make install_venv