Files
rose-ash/sx/sxc/pages/layouts.py
giles ec1093d372
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 5m25s
Nav redesign: embedded breadcrumb navigation with recursive depth
Replace menu bar navigation with in-page nav embedded in content area.
Each page shows logo/tagline/copyright, then a sibling row per trail
level (← prev | Current | next →), then children as button links.

- resolve-nav-path: recursive walk with no depth limit
- find-nav-index: rewritten with recursion (set! broken across closures)
- Walk stops on exact href match (prevents /cssx/ drilling into Overview)
- Unicode chars (©, ←, →) inline instead of \u escapes (SX parser doesn't support them)
- All 38 defpages wrapped in (~sx-doc :path ...) for in-page nav
- Layout returns only root header (nav moved out of blue menu bar)
- Standalone layout variants for sx-web.org (return nil)
- New plans: environment-images, runtime-slicing, typed-sx, nav-redesign, sx-web-platform

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-09 14:37:37 +00:00

20 lines
726 B
Python

"""SX docs layout registration — all layouts delegate to .sx defcomps."""
from __future__ import annotations
import os
def _register_sx_layouts() -> None:
"""Register the sx docs layout presets."""
from shared.sx.layouts import register_sx_layout
if os.getenv("SX_STANDALONE") == "true":
register_sx_layout("sx-docs",
"sx-standalone-docs-layout-full",
"sx-standalone-docs-layout-oob",
"sx-standalone-docs-layout-mobile")
else:
register_sx_layout("sx-docs",
"sx-docs-layout-full",
"sx-docs-layout-oob",
"sx-docs-layout-mobile")