fix(portal-admin): adr refs point at gitea, not the madr template repo #153
Reference in New Issue
Block a user
Delete Branch "docs/adr-0022-docs-site-vitepress"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Records the decision to render
docs/**/*.mdas a separately-deployed static site using VitePress +vitepress-plugin-mermaid.This is ADR-only — the implementation (install +
.vitepress/config.ts+docs/index.md+ Gitea Actions workflow) lands as the next chantier. Splitting them keeps the decision review focused on the why before the how.What lands
docs/decisions/0022-docs-site-vitepress.mdFull MADR 4.0.0 ADR. Decision drivers, 4 considered options (VitePress, MkDocs Material, Docusaurus 3, Astro Starlight), site-structure mapping, Mermaid integration, deployment + CI plan, consequences, revisit triggers. Tags:
process,infrastructure.Key choices captured:
@nx/vite,vite-plugin-angular, Vitest). MkDocs Material was the strong runner-up; the Python runtime tax in Gitea Actions tipped the balance.vitepress-plugin-mermaidfor```mermaidblocks (ADR-0009 sequence + architecture.md C4 are hard requirements).docs/. Mapping:docs/index.md(new, Hero layout) →/docs/development.md→/developmentdocs/architecture.md→/architecturedocs/decisions/README.md→/decisions/(curated index, kept as section landing)docs/decisions/00NN-….md→ auto-listed in the sidebar by numeric prefixdocs/setup/0N-….md→/setup/0N-…srcExclude:docs/README.md(stays as the git-side / IDE-preview index — option A from the prior discussion) anddocs/decisions/template.md(authoring scaffold).docs/README.md(Operations runbooks, Security/perf/a11y rationales) are NOT pre-created as empty pages — they appear in the sidebar when real content lands.docs.portal.apf.fr) behind the same Caddy reverse-proxy as the apps, fed by a new.gitea/workflows/docs-site.ymltriggered ondocs/**push. Exact hostname follows the future infrastructure ADR; not locked here.docs/decisions/README.mdADR-0022 added to the index table.
CLAUDE.mdBumps the ADR range from
0001 → 0021to0001 → 0022. New bullet in the "Architecture (recorded in ADRs)" section describing the docs-site choice in one paragraph. Implementation tracked in "Still on the roadmap" until the next PR lands it.Notes for the reviewer
portal-admin? Audience mismatch — ADR-0020 §"Audience is disjoint" framesportal-adminaround APF internal operators (CMS, audit, user directory), not architects. The full reasoning is in ADR-0022 §"Context and Problem Statement".docs/README.md+ futuredocs/index.md)? Option A from the structure discussion. Each serves a distinct audience:README.mdis the flat link list that renders well in IDEs / Gitea source view;index.mdwill be the VitePress Hero landing for the web audience. Light duplication, no maintenance pressure (the IDE one only needs updating when sections appear/disappear).vitepress-plugin-mermaidrather than Docusaurus's built-in Mermaid? The community plugin is a sub-1.0 dependency on the wrapper (Mermaid itself is mature), but Mermaid is so mainstream that switching it out is a half-day rewrite if the plugin stalls. Trading that risk against Docusaurus's MDX-by-default footprint + React runtime is a net win.process+infrastructuretags? Mirrors ADR-0015 (also a CI / deploy decision with content authoring implications) and is consistent with the tag vocabulary. No new tag invented.Test plan
docs/decisions/0022-docs-site-vitepress.mdvalidates as MADR 4.0.0 (frontmatter, section order). Index indocs/decisions/README.mdupdated in the same PR per ADR conventions.lint / test / buildmatrix unaffected.pnpm add -D vitepress vitepress-plugin-mermaid mermaid,docs/.vitepress/config.ts,docs/index.md,.gitea/workflows/docs-site.yml,package.jsonscripts. Will land within the same week assuming this ADR holds.What's next
If accepted as-is, the immediate follow-up is:
docs/.vitepress/config.tswith the sidebar shape spelled out in this ADR (auto-generated sub-sidebar for/decisions, hand-curated top-level).docs/index.md(Hero layout).docs-siteGitea Actions workflow.pnpm docs:dev) intopackage.jsonso contributors can preview locally.If reviewers want to push back on the toolchain choice (MkDocs Material in particular has a strong case for the theme polish), this is the right PR to surface that — implementation hasn't started.