Skip to content

Commit e9816a0

Browse files
committed
mike versioning
1 parent 9c93262 commit e9816a0

5 files changed

Lines changed: 53 additions & 5 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
# documentation files
1111
documentation/
12+
site/
1213

1314
# python temporary files
1415
**/__pycache__/

Makefile

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
1+
# Default to 'dev' if TAGS is not specified on the command line
2+
TAGS ?= dev
3+
14
.PHONY: docs serve-docs clean-docs clean
25

36
docs:
4-
@echo "==> Building MkDocs documentation..."
5-
uv run mkdocs build
6-
@echo "==> Documentation build complete. Output is in site/"
7+
@echo "==> Deploying MkDocs documentation locally via mike (Tags: $(TAGS))..."
8+
uv run mike deploy $(TAGS)
9+
@echo "==> Documentation deployed to local gh-pages branch."
10+
# Example usage: `make docs TAGS="v2.0.0 latest --update-aliases"`
711

812
serve-docs:
9-
@echo "==> Serving MkDocs documentation locally..."
10-
uv run mkdocs serve
13+
@echo "==> Serving versioned MkDocs documentation locally via mike..."
14+
uv run mike serve
1115

1216
clean-docs:
1317
@echo "==> Cleaning documentation build directories..."

mkdocs.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,3 +89,8 @@ extra_javascript:
8989
extra_css:
9090
- style/logo.css
9191
- style/theme.css
92+
93+
extra:
94+
version:
95+
provider: mike
96+
default: "latest"

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ description = "Add your description here"
55
readme = "README.md"
66
requires-python = ">=3.14"
77
dependencies = [
8+
"mike>=2.2.0",
89
"mkdocs>=1.6.1",
910
"mkdocs-callouts>=1.16.0",
1011
"mkdocs-include-markdown-plugin>=7.2.2",

uv.lock

Lines changed: 37 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)