Documentation UX Architecture (docs/pages/)
Scope
This architecture defines how the published documentation site is authored and built from docs/pages/.
Source of truth
Published documentation content is authored in Markdown under docs/pages/*.md.
Shared rendering and behavior:
docs/pages/_layouts/default.htmldocs/pages/_includes/*docs/pages/assets/css/modern-docs.cssdocs/pages/assets/js/modern-docs.js
Legacy markdown files under docs/** outside docs/pages/** are compatibility pointers only and are not the published source.
Information architecture (Diataxis)
Navigation is grouped by doc_type front matter:
tutorialhow-toreferenceexplanation
Each navigable page also defines order, sequence, and permalink.
Page metadata contract
Required keys for navigable pages:
titledescriptiondoc_typeordersequencepermalink
Optional keys:
toc(defaulttrue)nav_exclude(defaultfalse)search_exclude(defaultfalse)
Layout model
_layouts/default.html renders:
- Sticky header (search + theme + mobile menu)
- Left sidebar grouped by Diataxis
- Main article container
- Right TOC generated from
h2andh3
Client behavior model
modern-docs.js provides:
- Theme toggle
- Mobile sidebar open/close
- Active sidebar nav state
- TOC generation and active heading tracking
- Full-text search over
search.json(title + description + content) - Code block copy buttons and language labels
- Markdown callout rendering (
[!NOTE],[!TIP], etc.)
URL stability
Use permanent .html routes for published pages, including:
/index.html/getting-started.html/installation.html/quickstart.html/first-validation.html/examples.html/validate-json-file.html/schema-directory-workflow.html/configuration.html/schema-keywords.html/validation-behavior.html/skript-api.html/java-api.html/commands.html/format-reference.html/config-reference.html/examples-and-schema-construction.html/architecture.html/design-constraints.html
Documentation governance
- Published docs source:
docs/pages/** - Internal process docs can remain outside
docs/pages/** - Any code behavior change must update affected page(s) in the same PR
- Keep compatibility pointers in
docs/**when old links need continuity
Editorial standards: Writing guide.