UI review: collapsed inherited content, UI fixes, shared pages between variants (0.12.0) #7
Loading…
Reference in a new issue
No description provided.
Delete branch "refs/pull/7/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Requested by Moof · project thread
Implements the UI review. It includes #6 (cached documentation rendering), so merging this one lands both.
Inherited content (0.11.0)
Shared pages (0.12.0)
--variant NAME=XSD(repeatable) and--variant-title NAME=TITLEload several entry schemas together. Element, type, source and example pages are written once, and each variant gets its own start page atNAME/index.html.navigation.jscarries a bit mask per declaration. The sidebar lists only the current variant, a switcher moves between variants, and links outside the variant are muted.PublicationDelivery,NeTEx_siri_SG'sSiri) get their own pages underNAME/pages/, built from that variant loaded on its own.--redirects-caddyfilewrites a snippet that permanently redirects oldNAME/(elements|types|src|examples|assets)/...URLs to the shared pages. I checked it with Caddy 2.10.2.Results for NetEx-docs' six variants, with
--transmodeland--examples, measured locally: one 32s run instead of six runs of 34s each without examples. The site is 218 MB and 7,363 files, down from 666 MB and 39,212 files.Tests: 51 passed (
uv run pytest), including new tests for inherited blocks, restated restrictions and variants.🤖 Generated with Claude Code
https://claude.ai/code/session_01SnEtsMrAdL7vb2Ln5KuqTS