Commit Graph
2 Commits
Author SHA1 Message Date
Adrià Arrufat 6c50c000cb docs: simplify the reference generator
Read browser tool schemas from Schema.all() instead of re-parsing them,
format table rows through Anchor/Cell formatters, share one flag writer
between traits and hints, and use mcp/tools.zig's browser_tool_list
directly. Group headings move next to the generator, and an addGenerator
helper in build.zig drives both the skills and docs steps.
2026-10-12 22:38:49 +02:00
Adrià Arrufat e5a7d3fab2 docs: generate reference partials with zig build docs
Render MDX partials for the docs site from the registries the runtime
serves, so the browser tools, MCP tools and agent REPL command references
can't drift from the code:

- browser-tools.mdx: every tool, grouped, with its description, an
  argument table from its input schema, and its script/navigation/page
  state traits.
- mcp-tools.mdx: titles and annotation hints per tool, linking to the
  browser tools reference, plus the MCP-only tools and resources.
- agent-commands.mdx: meta, LLM and browser slash commands in the syntax
  the REPL parses.

Tool.group() assigns each tool its docs section as an exhaustive switch,
so a new tool can't ship undocumented. The release workflow attaches the
partials to each release as lightpanda-docs.tar.gz for the docs repo to
pull.
2026-10-12 22:33:17 +02:00