Skip to content

docs: add a documentation site and split the pages by Diátaxis type - #26

Merged
Karnaukhov-kh merged 2 commits into
mainfrom
docs/docusaurus
Nov 16, 2026
Merged

Karnaukhov-kh merged 2 commits into
mainfrom
docs/docusaurus

Conversation

@Karnaukhov-kh

Copy link
Copy Markdown
Member

Summary

This pull request adds a documentation site and sorts the documentation pages by their Diátaxis type.

  • Site. website/ holds a Docusaurus 3.10.2 site that renders the package's own Markdown files: the package README, packages/iterward/docs/, and the default loop's READMEs. The site has no pages of its own, so each page has one source.
  • Theme. website/src/css/custom.css maps the PushBased design system onto the Docusaurus variables: the violet and slate scales, Geist and Geist Mono, and the 8px radius. The design system has one light theme, so the dark theme is derived from the same scales.
  • Deployment. The Docs workflow builds the site on every push to main and deploys it to GitHub Pages at https://push-based.github.io/iterward/. GitHub Pages is already set to deploy from GitHub Actions.
  • Pages. Three how-to guides move out of mixed pages: create-a-loop.md, mcp-setup.md, and background-agents.md. mcp.md keeps the tools and their results, testing.md becomes a how-to guide, and the engine's tests move to the repository README.

Notes for the reviewer

  • The site lives in website/, outside packages/*, so nx release still covers only iterward.
  • ci.yml builds the site when the site or the package changes. The build fails on a broken link or anchor.
  • iterward init copies the default loop's README into the user's repository. The steps of "Make a loop of your own" moved to docs/create-a-loop.md, so the copy links to that page.
  • npm audit reports 38 advisories, up from 12. The 16 critical ones come from tinypool inside Docusaurus, a build-time dependency of the site that the published package doesn't include. The fix needs tinypool 2.x, which Docusaurus 3.10.2 doesn't accept.
  • The root README's link to mcp.md#register-the-server moves to mcp-setup.md#pin-the-engine-version. No other anchor changes.

Test plan

  • npx nx run-many -t lint typecheck build test passes for both projects.
  • Checked in a browser: the dev server and the production build, the light and dark color schemes, the Mermaid diagram, the code blocks, and a 375px viewport.

Sort the pages by their Diátaxis type. The how-to steps move out of the MCP
server page, the testing page, and the default loop's README into pages of
their own: create a loop, set up the MCP server, and launch an agent in the
background.

The MCP server page keeps the tools and their results, the testing page
becomes a how-to guide, and the engine's tests move to the repository README.
The site in website/ renders the package's own Markdown files, so the pages
have one source: the README, docs/, and the default loop's READMEs. Its theme
maps the PushBased design system onto Docusaurus, and its sidebar groups the
pages by their Diátaxis type.

The Docs workflow builds the site on every push to main and deploys it to
GitHub Pages. The build fails on a broken link or anchor.
@Karnaukhov-kh
Karnaukhov-kh merged commit a79bafd into main Nov 16, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant