docs(site): make docs/ buildable as a documentation site
Adds an mkdocs.yml, a landing page, and `task docs:site` / `task docs:serve`. Deliberately hosting-agnostic: MkDocs is the same input Backstage TechDocs consumes, so choosing where this lands later costs nothing. exclude_docs holds back four subtrees, since everything under docs/ would otherwise be published. archive/ is superseded design and would compete with the current architecture for a reader's attention; inspiration/ discusses other products by name; prds/ are open decisions rather than settled design; github-token.md is credential setup. One PRD is let back through because architecture/migration-decisions.md links to it three times, and a page excluded out from under a live link is just a 404 with extra steps. No nav block. MkDocs derives it from the directory layout, so a new page under docs/architecture/ publishes without a second edit, and there is no hand-maintained tree to drift against the repository. Builds --strict, so a dead internal link fails rather than ships.
This commit is contained in:
1 parent
38c0e485bc
commit
dcaa98cc44
4 files changed
+120
No files matched your search
@@ -129,6 +129,23 @@ tasks:
|
||||
happily report last week's tree against today's code.
|
||||
cmds:
|
||||
- python3 tools/reachaudit/reachaudit.py --repo . {{.CLI_ARGS}}
|
||||
docs:site:
|
||||
desc: "Build the documentation site into ./site (MkDocs). --strict, so a dead internal link fails the build."
|
||||
summary: |
|
||||
Publishes docs/ minus the subtrees held back in mkdocs.yml's
|
||||
exclude_docs. Requires mkdocs-material:
|
||||
|
||||
pip install --user mkdocs-material
|
||||
|
||||
Distinct from docs:check, which verifies the generated contract data
|
||||
rather than the site.
|
||||
cmds:
|
||||
- mkdocs build --strict
|
||||
|
||||
docs:serve:
|
||||
desc: "Serve the documentation site locally with live reload on :8000."
|
||||
cmds:
|
||||
- mkdocs serve
|
||||
|
||||
ui:deps:
|
||||
desc: Install the dashboard's node dependencies (ui/node_modules is gitignored)
|
||||
|
||||
Reference in new issue
Block a user