-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
28 lines (20 loc) · 867 Bytes
/
Copy pathMakefile
File metadata and controls
28 lines (20 loc) · 867 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
.PHONY: install fmt docs-catalog docs-serve docs-serve-en docs-build docs-check clean
install:
uv sync --group dev
uv run pre-commit install --hook-type commit-msg
fmt:
uv run pre-commit run --all-files
docs-catalog:
uv run --no-dev --group docs python scripts/build_blog_catalog.py
docs-serve:
uv run --no-dev --group docs python scripts/build_site.py --serve
docs-serve-en:
uv run --no-dev --group docs python scripts/build_blog_catalog.py --language en
uv run --no-dev --group docs zensical serve
docs-build:
uv run --no-dev --group docs python scripts/build_site.py
docs-check:
uv run --no-dev --group docs python -m unittest discover -s tests
uv run --no-dev --group docs python scripts/build_blog_catalog.py --check
clean:
python -c "import shutil, os; [shutil.rmtree(p, ignore_errors=True) for p in ['site', '.cache'] if os.path.exists(p)]"