add custom website build system

Replaces MkDocs with a bespoke Python site generator using Jinja2 templates
and Markdown. Adds uv for dependency management, GitHub Actions workflow for
deployment, and Makefile targets for local development (fetch_stars, build,
preview, deploy).

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Vinta Chen
2026-03-18 13:48:49 +08:00
parent 4af84dac8e
commit 177183d9bd
14 changed files with 5298 additions and 13 deletions
+9 -9
View File
@@ -1,14 +1,14 @@
site_install:
pip install -r requirements.txt
uv sync --no-dev
site_link:
ln -sf $(CURDIR)/README.md $(CURDIR)/docs/index.md
fetch_stars:
uv run python website/fetch_github_stars.py
site_preview: site_link
mkdocs serve
site_build:
uv run python website/build.py
site_build: site_link
mkdocs build
site_preview: site_build
python -m http.server -d website/output/ 8000
site_deploy: site_link
mkdocs gh-deploy --clean
site_deploy: site_build
@echo "Deploy via GitHub Actions (push to master)"