Build the docs site
Build the site
Section titled “Build the site”The site’s source is site/ in the Agents repo. From the repo’s root, run:
bin/agentsctl site buildIt builds the static HTML into a folder outside the repo and prints where, agents-site in the system’s temp folder unless --out <folder> names another. Building again leaves the same files. The folder must be outside the repo, since Astro writes .astro/ beside what it builds and git does not ignore that folder in site/. The command builds a copy under .scratch/ and removes it. test/step255.ts and test/step274.ts check the build.
Add a page
Section titled “Add a page”Each page is a Markdown file under site/src/content/docs/, with a title in its frontmatter. The sidebar has one group per folder:
start/is Get started.use/is Use Agents.server/is Run a server.pipelines/is Pipelines.reference/is Reference.contribute/is Contribute.
Each group lists its folder by itself, so a new page needs no change to site/astro.config.ts. Reference is the exception. Its pages sit in subfolders, each a nested group that the config names, so a new page goes in one of them, and a new subfolder needs its own entry in the config. Set sidebar.order in the frontmatter to place a page within its group. Link to another page with a relative path, such as ../server/, so links still work when the site is served under a path.
Publish the site
Section titled “Publish the site”GitHub Pages serves the site at https://tayler-id.github.io/agents/. .github/workflows/pages.yaml builds it and deploys it. Land merges with the job’s token, which starts no push workflow, so follow.yaml dispatches pages.yaml after each pull request lands, and the site is rebuilt from main. A person can also dispatch it from the Actions tab. Pages serves the site under /agents/, so the workflow sets AGENTS_SITE_BASE, which site/astro.config.ts reads. bin/agentsctl site build leaves it unset and builds the site for the root.
Keep history out
Section titled “Keep history out”The site describes Agents as it works today. It holds no plans, status or decisions, and its one record of the past is the Change log page. test/step255.ts fails when a built page, the change log included, or a file under site/ holds the repo path of the specs, the plans, the build plan, the build log, the decisions or the handoff.
The change log
Section titled “The change log”Every build writes the Change log page from git history, below the text in reference/changelog.md. Each squash merge on main is one line, numbered by its pull request and typed from its title, so a pull request’s title is what people read there. Nobody edits the list. shared/changelog.ts holds the few entries whose titles the page leaves out, and test/step1244.ts checks the whole log against test/names.ts.