docs: restructure navigation, merge pages, trim reference
What
-
The docs sidebar is reordered and sectioned: Extend sits right after Features, Test filters and Debugging join Features, Community packages moves to a new last group "Ecosystem", and the engine pages move to the Reference tab. Each group has an icon, and "Hosted browsers and devices" is split into Browsers, Devices, and Browsers and devices.
-
Five pages fold into their neighbours, each with a redirect:
Old page Now /bug-bash/explore#bug-bashes/mcp-server/coding-agents#let-the-agent-use-the-app/browser/reference/web/engine-servers/reference/engine-protocol#engine-servers/agentic-vs-deterministic/core-concepts -
Core concepts is an overview that opens with a fully deterministic test, then a mixed one. Coding agents (552 to 241 lines), Debugging (557 to 254) and the quickstart's config table are shorter, with the detail moved to reference.
-
New reference pages for the desktop and Electron engines.
-
Every English page has a new one-sentence
descriptionthat names what people search for, and 12 pages get akeywordslist./coreis titled "Browser and device automation". -
The reference pages lose implementation detail and all JSDoc inside declaration blocks: 159,400 words to about 136,000.
Why
- The sidebar was one column of 68 links with weak section headings, vendor pages sat in the middle, and core features under Extend were at the bottom.
- Search ranked badly because descriptions left out the obvious words: Mobile never said "iOS" or "Android", Desktop was the 14th result for "macOS".
- Several pages were thin or duplicated a neighbour, and the Electron and desktop engines had no reference.
- Reference entries stated each fact twice, once in prose and once in JSDoc, next to internals a caller cannot act on.
How it works
docs/docs.jsoncarries the new order, a groupicon, nested groups under "Hosted browsers and devices", and five redirects.scripts/check-docs-anchors.tsandscripts/check-docs-translations.tsnow walk nested groups;scripts/check-docs-translations.test.tscovers it.- Merged pages:
docs/explore.mdx(bug bashes),docs/coding-agents.mdx(MCP guide),docs/reference/web.mdx(browser guide),docs/reference/engine-protocol.mdx(engine servers),docs/core-concepts.mdx(agentic or deterministic). Inbound links in English pages,skills/,plugins/and the READMEs point at the new anchors, andscripts/check-docs-examples.tsmaps the browser provider example to its new page. The translated copies of the removed pages are deleted and links in translated pages are retargeted. - Detail cut from guides moved to the page that owns it: "Split a long flow into goals" to
docs/agent-steps.mdx; trace, artifact,report.json, step and pause detail from Debugging todocs/reference/{config,reporters,cli,screen,errors}.mdx; MCP session mechanics todocs/reference/mcp.mdx. docs/reference/desktop.mdxanddocs/reference/electron.mdxare written frompackages/desktop/srcandpackages/electron/src. The two guides keep the task flow and link to them.- Reference declarations show signatures and types only. A default, limit, unit or error that lived only in a JSDoc comment moved into the entry's prose or a field table first.
.dev/skills/authoring-docs/SKILL.mdstates the new rule and allows group icons. docs/reference/engine.mdxdispose: the entry said it runs "including wheninitnever ran". It runs onceinitwas called (packages/core/src/engine/index.ts), which the entry now says.
Decisions a reviewer would ask about:
- Debugging stays a page. It is the only guide for traces, stepping and pausing; it was cut to the workflow instead.
- The polling schedule (0, 20, 50 ms, then every 100 ms) stays once, on
pollCondition, because engine authors rely on it. It is gone fromexpectandwaitForURL. - Translations were not rewritten. The translated pages of the rewritten guides keep their old text. Where a translated page would link to a section only the English page has, it links to the page instead, and the four new sidebar groups have labels in every language.
Merge order
The docs site must support nested groups and group icons before this merges. Its current build fails on a nested group in docs.json.
Issue
None.
Verified
Ran it locally: yes
pnpm checkpasses, includingdocs:check: 439 pages compile, 7,792 anchor links resolve, examples, package managers, logos and error codes.- Rendered on the docs site locally: every changed URL returns 200 and the five old URLs redirect to the destinations above.
- Review bots raised 17 accuracy points on English pages (for example which checks confirm a recording, when
afterAllruns,openAppwithoutrelaunch). Each was checked againstpackages/*/srcand fixed. - A reviewer with no context checked the two new reference pages, the new Throws rows and a sample of about 45 moved facts against
packages/*/src. Its findings are fixed in this head.
| Before | After |
|---|---|
New Electron reference:
Not verified: the rewritten coding agents page was checked against the old page and the reference, not line by line against source. The translated pages were not read.
Checklist
- Changeset added (
pnpm changeset) for any change to a published package, or the change is testbed, docs, or CI only. - Breaking change: title carries
!, the changeset body names what breaks and what replaces it, and the deprecation warning landed a window earlier (stability policy in CONTRIBUTING.md). - Docs updated in the same PR: the
docs/**/*.mdxpage for the behavior, andskills/e2e/if the skill describes it. - Contract change: emitted
.d.tsreviewed,tests/types/sdk-types.tsupdated; wire change edits the schema and both fixtures. - Engine contract change (
e2e/engine): changesets fore2e,@e2e-dev/web, and@e2e-dev/mobile.
Summary by CodeRabbit
- Documentation
- Added guidance for splitting long agent workflows into clear goals, with examples covering waits, UI wording, and handling failed goals.
- Expanded coding-agent, exploratory testing, migration, debugging, and testing guidance with updated workflows and examples.
- Added desktop and Electron API references, and reorganized navigation to group platform and extension guides.
- Consolidated MCP, browser, and engine-server guidance into current documentation sections; updated links across supported languages.
- Refreshed quickstart and reference content with clearer descriptions, examples, and troubleshooting guidance. Removed standalone agentic-versus-deterministic, bug-bash, and engine-server guides.