Repository navigation
feat(website): docs site generated from docs/guide, deployed to GitHub Pages (OB12) - #156
Merged
Merged
Conversation
…b Pages (OB12) An Astro 5 + Starlight site under website/: a landing page and the user guide at https://retsu-ai.github.io/qq/. The documentation pages are not copied; scripts/sync-docs.mjs generates them from docs/guide/*.md before each build (title from the H1, description from sidebar.json, editUrl back to the guide, sibling links rewritten to routes, links leaving docs/guide pointed at GitHub) and fails when the guide and the sidebar disagree. It also serves the reviewed install.sh so the landing page's one-line install is real, and reads the workspace version from Cargo.toml. scripts/check-links.mjs fails the build on any unresolved internal link or fragment. The eight v0 routes without a guide are dropped rather than shipped as stubs; landing claims were checked against the guide; the placeholder star count is removed. .github/workflows/website.yml builds on PRs touching the site, the guide, install.sh, or Cargo.toml and deploys from main. The Nix shell gains pnpm. OB11 (wiki mirror) is superseded. Closes ENG-896.
lg2m
force-pushed
the
feat/eng-896-docs-website
branch
from
September 24, 2026 06:06
ec73699 to
cd9e760
Compare
nub reads the pnpm-format lockfile and pnpm-workspace.yaml unchanged and is already in the Nix dev shell. CI uses nubjs/setup-nub (a one-second archive install that provisions the Node pinned in package.json engines and caches the store) rather than Nix, so the site job stays fast.
nub 0.9.3 refuses to run lifecycle scripts when the project tsconfig extends a preset reached through a package exports wildcard (nubjs/nub#804, fixed upstream after 0.9.3), which failed esbuild's postinstall in CI. The preset's options are inlined until a release carries the fix.
The hero and sessions mocks were a generic "terminal window" (title-bar dots, a shell prompt typing `qq`, rounded approval card, a two-panel session board). They now reproduce the real frame from crates/qq-tui/tests/goldens and docs/guide/tui.md § Layout: the top row (`qq workspace › session … model 12% ctx $0.04`), `▌ YOU` / `QQ` message headers, tool rows in the TUI's columns (glyph, verb, argument, detail, elapsed), an awaiting `◇ Edit` expanded to its `◇ approval needed` header, path, hunk with line numbers, and the `y once a session w workspace n deny` key line, the rule (`◐ activity elapsed ttft turn ──── ? help ^K commands ^O detail`), and the `✎ Answer the approval above` / `› Ask QQ...` composer. The sessions mock is the real right-hand sidebar (NEEDS YOU / WORKING / IDLE / DONE, children indented, `N new`, truncated status lines) beside a transcript with its `related sessions` cell. Glyphs and colors follow view/tools.rs and view/sidebar.rs; the spinner cycles ◐◓◑◒ like TOOL_SPINNER and stops under reduced motion. Copy fixes against the guide: config layering order, `qq serve` default port, endpoint compatibility. Removes the unused ApprovalPrompt component.
Landing copy now says what the guide says and no more: the hero names the durable event log and its consequences (sessions survive restarts, many agents at once); the approval section explains once / session / workspace grants and that nothing overrides `forbidden`; the verdict table header names `auto` as the TUI default and uses the TUI's `✕`; surfaces name `qq run`'s read-only default and exit codes; providers explain that config holds names, never secrets. The landing and 404 pages opt out of edit links (every generated page carries its own into docs/guide), the 404 is excluded from search, and the sessions mock's two QQ lines no longer repeat each other. docs/README.md and AGENTS.md point at the site.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Plan slice OB12 of
docs/plans/onboarding-ux.md. Linear: ENG-896. Supersedes OB11 (wiki mirror).What ships
The v0-designed Astro 5 + Starlight site, under
website/, deployed to https://retsu-ai.github.io/qq/ (Pages is enabled with source = GitHub Actions; the first deploy happens when this merges).docs/guide/(Alt-A/Alt-D, verdict examples, NEEDS YOU/WORKING/IDLE/DONE,12% ctx $0.04, SQLite, Windows, MIT). The fake—star count is gone./install.sh: the reviewed installer, socurl -fsSL https://retsu-ai.github.io/qq/install.sh | shis real. README and the install guide now use that URL.Single source of truth
Nothing under
website/holds guide text.scripts/sync-docs.mjsruns before every build and:src/content/docs/docs/<name>.mdfromdocs/guide/<name>.md(README.md→ the/docs/index; title from the H1; description fromsidebar.json;editUrlback to the guide);docs/guide/(design notes, runbooks) points at GitHub;install.shtopublic/, records the workspace version fromCargo.toml;Generated files are gitignored.
scripts/check-links.mjswalksdist/after the build and fails on any unresolved internal href or#fragment— 447 checked today, so renaming a heading another page links to breaks the build until the link follows.Decisions
site.config.mjspluspublic/CNAME(runbook has the steps).tui#sessionsandheadless#qq-serve. Those topics are candidate guides, not site work.dist/,.astro/, the Vite plugin that patched Starlight'sprint.cssimport for the v0 preview proxy, the root pnpm-workspace wrapper (the site is one package now), the fixedlastUpdateddate default, and two unused components (StatusPill,ErrorCard).The landing mocks are the real TUI
The v0 mocks were a generic terminal window (title-bar dots, a shell prompt typing
qq, a rounded approval card, a two-panel session "board"). They now reproduce the frame fromcrates/qq-tui/tests/goldensanddocs/guide/tui.md § Layout:qq my-project › add dry-run … anthropic/claude-sonnet-5 12% ctx $0.04▌ YOU/QQmessage headers on the sky rail; tool rows in the TUI's columns (glyph · verb · argument · detail · elapsed)◇ Editexpanded inline to◇ approval needed, the path, the@@hunk with line numbers, andy once a session w workspace n deny◐ preparing tool call 6.2s ttft 0.8s turn 1 ──── ? help ^K commands ^O detailand the✎ Answer the approval above/› Ask QQ...composerNEEDS YOU/WORKING/IDLE/DONE, children indented,1 new, truncated status lines) beside a transcript with itsrelated sessions ↳cellGlyphs and colors follow
view/tools.rsandview/sidebar.rs(●muted done,◐sky running — cycling◐◓◑◒likeTOOL_SPINNER, off under reduced motion —◇gold awaiting,○idle,✕rose failed). Verified by measuring the DOM through CDP: every row is one line-height, columns align across rows, nothing clips at 1400px or 420px.Toolchain: nub, no Nix in CI
Install and build with
nub(nub ci,nub run build), which is already in the Nix dev shell and reads the pnpm-format lockfile andpnpm-workspace.yaml(theesbuild/sharpbuild-script allow-list) as they are. CI usesnubjs/setup-nub— a ~1s archive install that provisions the Node pinned inpackage.jsonenginesand caches the store — so the job takes ~30s with no Nix evaluation.tsconfig.jsoninlines Astro'sstrictpreset because nub 0.9.3 mis-resolvesextendsthrough packageexportswildcards (nubjs/nub#804, fixed upstream, not yet released); one comment marks it for reverting.CI / deploy
.github/workflows/website.yml:buildon every PR touchingwebsite/**,docs/guide/**,install.sh, orCargo.toml;deploy(viaactions/deploy-pages,github-pagesenvironment) only on push tomainor manual dispatch.Docs
website/README.md(maintainer doc),docs/runbooks/website.md(change/add a page, build, deploy, custom domain),docs/README.md,AGENTS.mdrepository map,docs/guide/install.md+README.md(site URL), plan and ledger (OB12 in review, OB11 superseded, OB5/8/9 → Shipped).Verification
nub ci && nub run build— sync 12 pages,astro check0 errors, 14 pages built, 13 indexed, 447 links resolvenub run preview:/qq/,/qq/docs/…,/qq/install.sh,/qq/pagefind/pagefind.js, sitemap → 200;/qq/nope/→ 404; landing showsv0.1.4and the site install URLnix flake check --no-build,bash tests/install_sh.shFollow-ups
extends: "astro/tsconfigs/strict"once a nub release carries the #804 fix.nub run previewfor type size and light-mode contrast before merging.