2020-05-24 13:40:43 +02:00
|
|
|
# serve the site locally
|
2025-01-17 06:53:35 +01:00
|
|
|
serve: style_check
|
2020-05-24 13:03:04 +02:00
|
|
|
venv/bin/mkdocs serve
|
|
|
|
|
|
2025-01-17 06:53:35 +01:00
|
|
|
serve_dirty: style_check
|
2022-04-25 22:40:45 +02:00
|
|
|
venv/bin/mkdocs serve --dirtyreload
|
|
|
|
|
|
2025-01-17 06:53:35 +01:00
|
|
|
# This target is used in the CI (ci_test_build_documentation).
|
|
|
|
|
# This target is used by the docset Makefile.
|
|
|
|
|
build: style_check
|
2020-08-13 13:35:05 +02:00
|
|
|
venv/bin/mkdocs build
|
|
|
|
|
|
2022-04-25 22:40:45 +02:00
|
|
|
style_check:
|
2025-01-17 06:53:35 +01:00
|
|
|
@cd docs ; ../venv/bin/python3 ../scripts/check_structure.py
|
2020-05-24 13:03:04 +02:00
|
|
|
|
2025-01-18 23:20:45 +01:00
|
|
|
# check the links in the documentation files in docs/mkdocs
|
2025-01-17 06:53:35 +01:00
|
|
|
link_check:
|
|
|
|
|
ENABLED_HTMLPROOFER=true venv/bin/mkdocs build
|
2020-05-24 13:40:43 +02:00
|
|
|
|
2025-01-18 23:20:45 +01:00
|
|
|
# check the links in all other Markdown files
|
|
|
|
|
link_check_markdowns:
|
|
|
|
|
npx markdown-link-check --progress --alive 200,429 ../../README.md ../../FILES.md ../../.github/*.md
|
|
|
|
|
|
2023-11-01 22:16:27 +01:00
|
|
|
# publish site to GitHub pages (not working in GitHub Actions; need special action)
|
2025-01-17 06:53:35 +01:00
|
|
|
publish:
|
2020-05-24 13:03:04 +02:00
|
|
|
venv/bin/mkdocs gh-deploy --clean --force
|
|
|
|
|
|
2020-05-24 13:40:43 +02:00
|
|
|
# install a Python virtual environment
|
2025-01-17 06:53:35 +01:00
|
|
|
# This target is used by the docset Makefile.
|
2020-05-24 13:40:43 +02:00
|
|
|
install_venv: requirements.txt
|
2020-05-24 13:03:04 +02:00
|
|
|
python3 -mvenv venv
|
2022-08-05 23:09:55 +02:00
|
|
|
venv/bin/pip install --upgrade pip
|
2020-05-24 13:03:04 +02:00
|
|
|
venv/bin/pip install -r requirements.txt
|
|
|
|
|
|
2020-05-24 13:40:43 +02:00
|
|
|
# uninstall the virtual environment
|
2025-01-17 06:53:35 +01:00
|
|
|
uninstall_venv:
|
2020-05-24 13:03:04 +02:00
|
|
|
rm -fr venv
|
2024-12-09 23:02:30 +01:00
|
|
|
|
|
|
|
|
update_requirements:
|
|
|
|
|
rm -fr venv_small
|
|
|
|
|
python3 -mvenv venv_small
|
|
|
|
|
venv_small/bin/pip3 install pur
|
|
|
|
|
venv_small/bin/pur -r requirements.txt
|
|
|
|
|
rm -fr venv_small venv
|
|
|
|
|
make install_venv
|