How to configure the reports site
How to configure the reports site
Section titled “How to configure the reports site”The harness ships an Astro/Starlight site that renders your reports/ (and the
Diátaxis docs/) for local human reading. In the template it is the published
docs site and demonstrates the bundled example report; in an instantiated harness
it is your primary local mode of reading research. This guide shows how to choose
which surface leads, toggle the optional site plugins, and read your reports
locally. For the underlying control plane, see the site block in the
configuration reference and
site-toggle.sh.
Before you begin
Section titled “Before you begin”- Have the core runtime installed (
jqfor the toggles) plusnodeto build the site (npm installonce). - The one file you edit is
harness.config.json; the toggles write its.siteblock. You never hand-editastro.config.mjs— it reads.siteat build time.
Read your reports locally
Section titled “Read your reports locally”npm installnpm run dev # serve with live reload; or: npm run build && npm run previewnpm run reports is an alias for the local reader. A clone is activated
reports-primary at instantiation (see below), so your reports lead the sidebar. For
the full step-by-step (the local URL and base path, production preview, and
troubleshooting), see How to run and browse the local site.
Choose the leading surface
Section titled “Choose the leading surface”bash scripts/site-toggle.sh primary reports # Reports lead the sidebarbash scripts/site-toggle.sh primary docs # docs lead; Reports come afterbash scripts/site-toggle.sh primary auto # reports when any report exists, else docsThe site landing (/) stays the docs index in every case; primary only orders
the sidebar groups. Rebuild (npm run build) to apply.
Toggle an optional plugin
Section titled “Toggle an optional plugin”bash scripts/site-toggle.sh plugin imageZoom on # click-to-zoom imagesbash scripts/site-toggle.sh plugin linksValidator on # fail the build on broken linksbash scripts/site-toggle.sh plugin llmsTxt off # stop emitting llms.txtbash scripts/site-toggle.sh plugin mermaid off # stop rendering mermaid fencesllmsTxt and mermaid are installed and on by default; imageZoom and
linksValidator are installed and off by default. Note linksValidator fails the
build on any broken internal link, including links to non-page report siblings —
enable it only once your reports’ links resolve.
Activation in a clone
Section titled “Activation in a clone”When you instantiate the harness with copier copy --trust, a post-copy task runs
site-toggle.sh primary reports so the clone boots reports-primary. The --trust
flag is required for copier to run the task; without it the clone stays
docs-primary and you can run the toggle yourself. The bundled example report is
deliberately not copied into clones — your first /start populates your own topic.
Do it conversationally
Section titled “Do it conversationally”The /configure command is a concierge over all of
this: it toggles packs and site features, manages ontologies and topics, and
re-runs the gates. For example, ask it to “make reports the primary surface and
turn on image zoom” and it drives the same scripts and validates the result.