Skip to content

Commit bbd7e39

Browse files
lesnik512claude
andauthored
build: pin mkdocs<2 to stay clear of the MkDocs 2.0 rewrite (#21)
MkDocs 2.0 is a backward-incompatible rewrite (no plugin system, no theme overrides, no migration path) that breaks Material for MkDocs. Material 9.7.5+ already caps mkdocs<2; make that explicit and bump the Material floor so a fresh resolve can never pull MkDocs 2.0. Docs continue to build on mkdocs 1.6.1 / mkdocs-material 9.7.6. Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 96cc447 commit bbd7e39

2 files changed

Lines changed: 12 additions & 2 deletions

File tree

pyproject.toml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,13 @@ version = "0"
44
description = "modern-python.org organization homepage"
55
requires-python = ">=3.11"
66
dependencies = [
7-
"mkdocs-material>=9.5",
7+
# MkDocs 2.0 is a backward-incompatible rewrite (no plugin system, no theme
8+
# overrides) that breaks Material for MkDocs, with no migration path. Material
9+
# 9.7.5+ already caps mkdocs<2; pin both explicitly so a fresh resolve can
10+
# never pull MkDocs 2.0.
11+
# https://squidfunk.github.io/mkdocs-material/blog/2026/02/18/mkdocs-2.0/
12+
"mkdocs>=1.6,<2",
13+
"mkdocs-material>=9.7.5",
814
]
915

1016
[dependency-groups]

uv.lock

Lines changed: 5 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)