Skip to content

Add nested SiteNav and in-page section TOC - #46

Merged
russwyte merged 3 commits into
mainfrom
site-nav-toc-44
Jul 29, 2026
Merged

Add nested SiteNav and in-page section TOC#46
russwyte merged 3 commits into
mainfrom
site-nav-toc-44

Conversation

@russwyte

Copy link
Copy Markdown
Contributor

Summary

  • Add recursive NavModel / NavGroup and Saferis-style derives SiteNav from nested products (optional @navLabel), with flat pages for routing.
  • Render nested sidebar groups in NavBuilder, plus section heading anchors and an auto on-page TOC (2+ top-level sections; SiteModel.pageToc override).
  • Dogfood Specular docs with grouped nav via BuildSite.

Closes #44

Test plan

  • sbt 'site/test; docs/test'
  • Spot-check grouped sidebar + page TOC on a local docs/specularSite build

russwyte added 3 commits July 29, 2026 15:06
Guide-scale docs get Mirror-derived sidebar groups from nested products, plus stable section heading anchors and an auto on-page TOC.
docs/specularSite was OOMing under the default 1G heap during Scala.js + expectFail inlining.
@russwyte
russwyte merged commit 2002436 into main Jul 29, 2026
4 checks passed
@russwyte
russwyte deleted the site-nav-toc-44 branch July 29, 2026 20:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Grouped sidebar nav for guide-scale docs sites

1 participant