docs: make API reference rendering independent of page order (#3107)

This commit is contained in:
Max 2026-07-16 18:29:44 +01:00 • committed by GitHub
commit 497f7afa61
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -188,6 +188,13 @@ plugins:
handlers:
python:
paths: [src, src/mcp-types]
# Zensical renders pages in undefined (filesystem-dependent) order
# against one shared griffe collection, so a cross-package re-export
# (`mcp` -> `mcp_types`) resolves only if its target package happens
# to have been collected first. Chasing exported aliases into their
# packages at load time makes resolution order-independent;
# scripts/docs/check_render_order.py enforces that property.
load_external_modules: true
options:
relative_crossrefs: true
members_order: source