Skip to content

Fix Material blog post links crash and footer link; add two plugins to the compat matrix - #129

Merged
shenxianpeng merged 5 commits into
mainfrom
claude/project-thread-8gce4u
Nov 1, 2026
Merged

shenxianpeng merged 5 commits into
mainfrom
claude/project-thread-8gce4u

Conversation

@shenxianpeng

@shenxianpeng shenxianpeng commented Nov 1, 2026 •

Copy link
Copy Markdown
Member

Fix: Material blog posts with links crash the build

Found while building the mkdocs-ng-material docs site against MkDocs NG 1.10.0rc1:

File ".../material/plugins/blog/structure/options.py", line 114, in run_validation
    items = _data_to_navigation(value, Files([]), None)
TypeError: _data_to_navigation() missing 1 required positional argument: 'seen'

The Material blog plugin calls the private mkdocs.structure.nav._data_to_navigation() with three arguments to build post links. #103 (in 1.9.0) added a required seen parameter, so every blog post that sets links broke. seen is optional again and defaults to a new set.

  • Unit test calling _data_to_navigation(data, Files([]), None) (fails with the TypeError before the fix).
  • The mkdocs-material compat case's blog post now sets links. Before the fix: upstream pass, mkdocs-ng fail; after: both pass.

Fix: footer "MkDocs NG Team" link

It pointed to /about/release-notes/#maintenance-team, which is outside the site (served under /mkdocs/) and a section the release notes no longer have. It now links to https://github.com/mkdocs-ng. No other root-relative links outside /mkdocs/ in the built site.

Compat matrix: two more plugins

Two older plugins that aren't in the catalog's top 30 but that large sites still depend on, for example TRaSH-Guides (docs/requirements.txt there pins both):

  • mkdocs-awesome-pages-plugin: version 2 of mkdocs-awesome-nav, under its old name. The case writes a .pages file.
  • mkdocs-markdownextradata-plugin: renders extra values in Markdown. The case uses {{ project }} and {{ site_name }}.

Both pass on upstream MkDocs and MkDocs NG locally.

Release notes entries under 1.10.0. Unit tests, mypy, pre-commit and the docs build pass.

…plugin

Both are older plugins outside the catalog's top 30 that large sites,
such as TRaSH-Guides, still depend on.
@shenxianpeng shenxianpeng self-assigned this Nov 1, 2026
The blog plugin of Material for MkDocs calls this private function as
_data_to_navigation(value, Files([]), None) to build post links. MkDocs NG
1.9.0 added a required `seen` parameter, so any blog post with `links`
crashed the build with a TypeError. Make `seen` optional again, and cover
post links in the mkdocs-material compat case.
@codspeed

codspeed Bot commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor

Merging this PR will improve performance by 22.48%

1 warning

⚠️ 1 benchmark with a significant change ran on different hardware

Its base and head results were measured on machines with a different CPU, core count or memory, so the change might not come from the code. Run base and head on the same runner type.

Learn more about Macro Runners

See affected benchmarks

⚡ 1 improved benchmark
✅ 27 untouched benchmarks

Performance Changes

Benchmark BASE HEAD Efficiency
⚡ test_get_yaml_loader 384.4 µs 313.8 µs +22.48%

Tip

Curious why performance improved? Comment @codspeedbot explain why performance improved on this PR, or directly use the CodSpeed MCP with your agent.


Comparing claude/project-thread-8gce4u (8e68158) with main (4ba75a9)

Open in CodSpeed

@shenxianpeng shenxianpeng changed the title compat: add mkdocs-awesome-pages-plugin and mkdocs-markdownextradata-plugin Fix Material blog post links crash; add two plugins to the compat matrix Nov 1, 2026
It linked to /about/release-notes/#maintenance-team, which is outside the
site (served under /mkdocs/) and a section the release notes no longer have.
@github-actions github-actions Bot added the bug Something isn't working label Nov 1, 2026
@shenxianpeng shenxianpeng changed the title Fix Material blog post links crash; add two plugins to the compat matrix Fix Material blog post links crash and footer link; add two plugins to the compat matrix Nov 1, 2026
@shenxianpeng
shenxianpeng merged commit 19c83b9 into main Nov 1, 2026
23 checks passed
@shenxianpeng
shenxianpeng deleted the claude/project-thread-8gce4u branch November 1, 2026 10:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant