UI Folder Structure
site/
src/
layouts/
app-shell.html
doc-page.html
components/
nav/
global-search.html
domain-switcher.html
entity-switcher.html
recent-docs.html
breadcrumbs.html
briefing/
summary-card.html
decision-points.html
progress-bar.html
search/
command-palette.html
search-results.html
common/
badge.html
chip.html
details-block.html
styles/
tokens.css
base.css
layout.css
components.css
utilities.css
scripts/
search.js
recent-docs.js
progress.js
nav-drawer.js
shortcuts.js
data/
nav-index.json
search-index.json
pages/
index.html
search.html
docs/
File Responsibilities
layouts/: static page shells and doc page composition.
components/nav/: sticky search, switchers, breadcrumbs, and recent docs.
components/briefing/: summary and decision-support modules.
styles/tokens.css: type scale, spacing, colors, elevation, focus rings.
scripts/: progressive enhancement only.
data/: generated indexes from markdown frontmatter.
Build Pipeline Requirements
- Parse markdown and frontmatter into JSON indexes.
- Generate static HTML pages.
- Embed domain/entity navigation indexes.
- Validate canonical links during CI.