docs: restructure navigation, merge pages, trim reference

Merged
OK
16h ago
+5020-12169

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 pageNow
    /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 description that names what people search for, and 12 pages get a keywords list. /core is 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

  1. docs/docs.json carries the new order, a group icon, nested groups under "Hosted browsers and devices", and five redirects. scripts/check-docs-anchors.ts and scripts/check-docs-translations.ts now walk nested groups; scripts/check-docs-translations.test.ts covers it.
  2. 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, and scripts/check-docs-examples.ts maps the browser provider example to its new page. The translated copies of the removed pages are deleted and links in translated pages are retargeted.
  3. 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 to docs/reference/{config,reporters,cli,screen,errors}.mdx; MCP session mechanics to docs/reference/mcp.mdx.
  4. docs/reference/desktop.mdx and docs/reference/electron.mdx are written from packages/desktop/src and packages/electron/src. The two guides keep the task flow and link to them.
  5. 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.md states the new rule and allows group icons.
  6. docs/reference/engine.mdx dispose: the entry said it runs "including when init never ran". It runs once init was 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 from expect and waitForURL.
  • 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 check passes, including docs: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 afterAll runs, openApp without relaunch). Each was checked against packages/*/src and 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.
BeforeAfter
core concepts beforecore concepts after
test reference beforetest reference after

New Electron reference:

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/**/*.mdx page for the behavior, and skills/e2e/ if the skill describes it.
  • Contract change: emitted .d.ts reviewed, tests/types/sdk-types.ts updated; wire change edits the schema and both fixtures.
  • Engine contract change (e2e/engine): changesets for e2e, @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.