Working-tree content. Subject to change and not yet released. Commit: e3d4530507.
Documentation website
The Rspress site lives in tools/docs-site, outside the mobile app and Bun workspace packages. It has its own dependencies and lockfile. It consumes docs/, CHANGELOG.md and the tracked Markdown/YAML under .maestro/.
Local development
Open the URL printed by Rspress. The server binds to localhost. Re-run the command after changing source docs: the generated input is refreshed at startup, not watched continuously.
Building the website does not build the mobile app, sync its catalog, or run Maestro. Hosting is not configured yet. Page links use explicit .html URLs so static hosting needs no clean-URL rewrite rules.
Writing and releasing
- Edit the existing document under
docs/. Add product summaries underdocs/product/; usedocs/product/template.mdas a starting point. - Update
CHANGELOG.mdfor the app version, including### Breakingand migration instructions when relevant. Never infer product release notes from commit messages. - Commit the docs with the feature. Follow the existing app release process to create its Git tag.
- Fetch complete release history and rebuild the site. Exact
vX.Y.Ztags with docs are included; other tag formats are ignored. A shipped release without a tag can be recorded intools/docs-site/release-refs.jsonusing its exact 40-character build commit. The generator verifies its app version; a real tag takes precedence when available.
Only Next and the latest 4 releases get a snapshot (DOCS_KEEP_RELEASES overrides); older releases stay in git tags. This keeps the static output near 1,000 files instead of ~3,400. The full changelog is a single shared page (/changelog.html, built from Next's CHANGELOG.md, so it covers every release), and Maestro scripts are published one page per suite (quality/scripts/<suite>) rather than one per file.
Next reads the working tree and is always marked unreleased. Released versions read only files at their resolved tag or pinned commit. Unchanged documents appear in each version automatically; no author-maintained copies or fallback to newer content. The site's root lists versions and links to the latest release; release URLs retain their version prefix.
Product pages introduced now appear in Next and future releases. They are not backfilled into historical snapshots. Historical technical docs may contain obsolete prose or unresolved source links; do not silently replace them with current behavior.
Source links and generated files
The generator normalizes local document links to the selected version. Repository source links point at the snapshot's commit. Next links to HEAD, so uncommitted source changes are only visible locally. Unsupported or missing historical Markdown targets link to the repository and are listed in .generated/link-report.json; stale heading anchors fall back to the containing page and are also reported. Generated website routes are checked by the build.
The repository URL defaults to the amanotes remote. Override it with DOCS_REPOSITORY_URL=https://gitlab.example.com/group/project when using another clone. Credentials, query strings and fragments are removed before generating URLs. Never put access tokens in Markdown.
Generated content, build output and dependencies are gitignored. A shallow clone fails with an instruction to fetch history rather than publishing an incomplete version list. No Git checkout is performed.
Maestro evidence
Quality includes scripts from the same snapshot, grouped by suite, plus the README's prerequisites and expected outcomes. Scripts are documentation, not proof of execution. CI reports, screenshots and videos are not imported in this first version, and no passing status is fabricated.
Product pages for PO
The English-only hub has two audience entrances: Product Handbook for product owners and Developer Docs for developers and QA. Product overview, Player journeys and Release notes have no engineering sidebar; the developer area contains architecture, algorithms, source references and Testing & Maestro. Product shows feature cards, player journeys and a chart of changelog entries. The chart counts top-level Improved/Added/Changed, Fixed and Breaking entries; Developer notes stay in the full changelog. These are documentation counts, not usage analytics or test results.
Devs maintain the plain-language cards, steps and behavior in docs/product/overview.json. The schema is validated during generation, including unique slugs and existing source docs. Keep player-facing descriptions free of implementation names and link each feature to its technical source. Historical tags without this file show a small feature directory based only on docs present in that tag; current behavior is never backfilled into old snapshots.
The feature flows are static HTML/CSS, accessible ordered steps that stack on narrow screens. Technical Mermaid diagrams remain available in Engineering. Legacy punctuation is normalized at the Markdown boundary (quoted flow edge labels, semicolons in sequence messages). Every unique generated diagram is parsed with the pinned Mermaid version before dev/build/check succeeds. Invalid diagrams fail the build with a filename; they are not silently dropped.
App artwork and icons
The Product Handbook uses a small allowlist of existing app icons and illustrations, defined in tools/docs-site/scripts/assets.ts. These are illustrations, not screenshots of complete screens. Both tagged snapshots and Next read their own image bytes. Missing historical images are omitted rather than replaced with newer artwork. Alt text explains each illustration; decorative icons use empty alt text.
To illustrate another experience, add its asset paths to the allowlist and pair them with the feature slug. Keep files small and use app artwork with a clear relationship to the feature. No remote image service is required. Product-facing copy, navigation and new authoring templates are in English; historical source documentation remains at its release commit.
Authoring “How it works”
A journey can keep its historical string steps or use { "title": "…", "description": "…", "icon": "…" } objects for short, plain-language explanations. Supported icons: app, video, play, learn, music, search, keys, result, shop, check.
The shared journey renderer uses numbered nodes, aligned directional connectors and a distinct outcome. Panels with enough space show up to four steps in a single row; narrow panels and longer journeys use a vertical path. Steps never wrap into separate grid rows with arrows pointing to unrelated nodes. Reading order remains an accessible ordered list. Describe the main path here; keep alternative behavior in the feature’s rules unless a separate branch is explicitly documented.
Current release records and commit checks
- Released: 1.0.13, pinned to
371ee4692c2c7abe8e7f2af8302b60ee2505aae9fromhotfix/1.0.13-facebook-sdkbecause no matching release tag exists yet. Its package version and changelog identify the Facebook SDK hotfix. - In development: 1.0.14, still served under
Nextwith an explicit Unreleased label. The app version is not bumped by documentation changes.
The Lefthook docs-site job runs bun run docs:check for staged site sources, documentation, changelog or Maestro changes. The independent tools/docs-site sources use this gate instead of the mobile typecheck/unit/security jobs. All other app and tool sources retain their existing hooks. Generated content, static output, dependencies, caches and logs stay ignored; the site's dependency lockfile and release reference map are committed.
Unit tests in CI and fresh clones
The root test:app:tools shard also discovers tools/docs-site/tests. Before discovery, tools/docs-site/scripts/ensure-deps.ts checks for the docs test dependencies and installs them from the site's own lockfile with --frozen-lockfile --ignore-scripts when missing. The mobile workspace install does not install this independent tool. Existing installations are reused; a failed install stops the shard. Docs tests remain included in the normal root and CI test suites.