-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
42 lines (36 loc) · 1.01 KB
/
Copy pathMakefile
File metadata and controls
42 lines (36 loc) · 1.01 KB
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
SHELL := /bin/sh
# testing / cleanup
test:
PYTHONPATH=src uv run python -W ignore::ResourceWarning -m unittest discover -s tests
clean:
find . -type d -name "__pycache__" -exec rm -rf {} +
rm -rf dist/*
# documentation
fulldoc:
pandoc docs/index.md \
docs/00-installation.md \
docs/10-getting-started.md \
docs/20-birth-event-charts.md \
docs/30-electional-examples.md \
docs/40-horary-workflows.md \
docs/50-database-management.md \
docs/60-advanced-usage.md \
docs/70-display-config.md \
--wrap=none \
-o full-docs.md
# deployment
deploy-docs:
mkdocs build -d /tmp/mkdocs-site
git fetch origin pages || git checkout --orphan pages
git checkout pages
rm -rf ./* || true
cp -r /tmp/mkdocs-site/* .
rm -rf /tmp/mkdocs-site .venv
git add .
git commit -m "Deploy: $$(date -I)" || echo "No changes to commit"
git push origin pages
git checkout -
unset:
unset UV_PUBLISH_TOKEN && unset UV_CODEBERG_TOKEN
codeberg: unset
uv publish --publish-url https://codeberg.org/api/packages/sailorfe/pypi/