Repository navigation
docs: add a documentation site and split the pages by Diátaxis type - #26
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This pull request adds a documentation site and sorts the documentation pages by their Diátaxis type.
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.website/src/css/custom.cssmaps 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.Docsworkflow builds the site on every push tomainand deploys it to GitHub Pages athttps://push-based.github.io/iterward/. GitHub Pages is already set to deploy from GitHub Actions.create-a-loop.md,mcp-setup.md, andbackground-agents.md.mcp.mdkeeps the tools and their results,testing.mdbecomes a how-to guide, and the engine's tests move to the repository README.Notes for the reviewer
website/, outsidepackages/*, sonx releasestill covers onlyiterward.ci.ymlbuilds the site when the site or the package changes. The build fails on a broken link or anchor.iterward initcopies the default loop's README into the user's repository. The steps of "Make a loop of your own" moved todocs/create-a-loop.md, so the copy links to that page.npm auditreports 38 advisories, up from 12. The 16 critical ones come fromtinypoolinside Docusaurus, a build-time dependency of the site that the published package doesn't include. The fix needstinypool2.x, which Docusaurus 3.10.2 doesn't accept.mcp.md#register-the-servermoves tomcp-setup.md#pin-the-engine-version. No other anchor changes.Test plan
npx nx run-many -t lint typecheck build testpasses for both projects.