Architecture

Site architecture defines how source material becomes a published page. The site uses three primary patterns: hand-written Markdown pages, Markdown pages that render structured data, and pages generated at build time by Hugo content adapters.

The architecture pages explain the implementation mechanics. Governance pages decide ownership, naming, content rules, and strategy.

Canonical home#

A canonical home is the durable place where a piece of information is maintained. Other pages can summarize it, list it, translate it, or link to it, but only one place is treated as the source of truth.

MaterialCanonical home
Essays and longer notesBlog posts
Small things learnedTIL entries
Talks, publications, and repeatable referencesData files plus a rendering page
Many data records that need their own pagesData files plus a content adapter
Work first published elsewhereLocal archive pages linking back to sources

The practical test is simple: if this information needs to be updated six months from now, where should the change happen?

Pattern guide#

Use the smallest pattern that preserves ownership and makes future changes obvious.

PatternUse whenDetails
Markdown pageThe page itself is the artifactGoverned by content and front matter rules
Data-driven pageOne durable page presents structured factsData-driven pages
Content adapterMany data records need normal Hugo pagesContent adapters
Front matterPage metadata, component profiles, and folder archetypes shape renderingFront matter
Component migrationA generated audit and repeatable rollout standardize component documentationComponent migration
ArchetypesReusable starter files create known content shapesArchetypes
Asset pipelineCSS, token output, JavaScript, fonts, and fingerprints are bundledHugo asset pipeline
Token architectureDTCG source, theme collections, generated artifacts, and validation alignToken architecture
i18n mechanicsUI strings, language alternates, and language-aware templates are involvedi18n
Generated surfaceA data source renders a specific reference, such as the brand glossaryGlossary generation
Mermaid diagramStructured text diagrams document architecture, flows, and relationshipsMermaid diagram syntax

Prefer explicit Markdown files for durable editorial pages. Prefer structured data when facts repeat. Use content adapters only when data records need their own URLs, metadata, search behaviour, language alternates, or taxonomy behaviour.

ArchetypesReusable Hugo starter files for recurring content shapes
Component migrationThe rollout recipe and live audit for standardized component documentation
Content adaptersHow Hugo content adapters turn data records into generated pages
Data-driven pagesHow structured data renders into durable reference pages
Front matterHow page metadata, component and pattern profiles, and folder archetypes shape rendered documentation
Glossary generationHow glossary data renders into the brand documentation
Hugo asset pipelineHow Hugo bundles generated token CSS, site CSS, JavaScript, and fonts
i18nHow UI strings are translated: where keys live, how templates call them, and what happens when one is missing
Mermaid diagram syntaxSupported Mermaid diagram families and when to use them in documentation
Pattern libraryThe data model and implementation recipe for documented compositions of components
ShortcodesHow shortcodes bridge Markdown authoring and reusable Hugo layout logic
Token architectureHow DTCG tokens, theme collections, generated artifacts, and consumers remain aligned