Skip to content

main · v2.1 (preview)

Documentation website

Maintainers · Decision record · CurrentMarkdownAgent index

Status: Current. The website, its Markdown exports and the checks that the documentation workflow runs are built and pass for both deployment paths, and the website is published at https://docs.allors.com/immersive/, beneath the Allors documentation home, from the repository’s Pages source GitHub Actions.

This record describes the documentation website of Immersive: what was decided, what was reused from Allors3 and what remains to do. The writing guide owns the editorial rules and Terminology owns the vocabulary. The pages live in docs/src/content/docs/; the website instructions cover local development, validation and publication.

Immersive adopts the Allors documentation standard as first implemented for Allors3 in allors3 pull request #284, merged as commit 33452c88c0e99b2db1243c4de0a061da23f0ae0c on main, inspected on 2026-10-18. The Allors documentation home is intended to present the Allors platforms and a collection of supporting open-source tools, each product publishing its own documentation beneath its own path. Immersive is one of the supporting tools; its documentation is smaller than a platform’s and proportional to its scope, with the same writing and accuracy standard.

AreaDecision
ReadersHuman documentation serves users of the weaver and the libraries, and maintainers. Agent instructions in AGENTS.md point to the same content.
SiteAstro with Starlight. docs/ is the website project, with the content in docs/src/content/docs/. User and maintainer content have separate navigation groups.
AuthoringMarkdown. MDX and components are available when a page needs them; none is used yet.
HostingGitHub Pages, built with GitHub Actions, at the path /immersive/ beneath the shared origin https://docs.allors.com, whose root is the Allors documentation home, with / also validated. The sidebar’s first entry links to the home, and the link checker leaves that link to the home’s own build. The origin’s own site and its custom domain belong to the documentation home, not to this repository.
Version contextPages and exports identify the documented version as main · v2.1 (preview), following version.json and the published preview packages.
VisualsMermaid where suitable; the dependency diagram in How weaving works is the first. No interactive component yet.
Language and structureOxford English, precise practitioner terminology and Diátaxis, as defined in the writing guide.
ChecksThe tooling tests, the Astro check, the production build with exports, the link check, a test that the control reference matches the libraries, and browser tests with accessibility checks, for both deployment paths.

The following files were copied from the Allors3 implementation at the commit above, with the project-specific changes listed below:

FileChange for Immersive
astro.config.mjsTitle, description, sidebar entries; the title is read from site.mjs.
site.mjsAdds title; sets the repository, version and the default base path /immersive/.
integrations/exports.mjsThe agent index heading and description are built from site.mjs.
integrations/source-links.mjsUnchanged at the adoption. It wrote a link to a page in a subfolder with a backslash on Windows; since #6 it gives the path forward slashes on every platform. The fix comes from Allors3 and is in every copy of the tooling.
integrations/scrollable-content.mjsUnchanged.
scripts/check-links.mjsThe default base path. Target paths in its messages use forward slashes on every platform, so that its tests pass on Windows; port this to Allors3.
src/content.config.ts, src/components/PageTitle.astro, src/styles/documentation.css, public/favicon.ico, tsconfig.json, playwright.config.ts, .gitignoreUnchanged.
package.json, package-lock.jsonThe package name; the pinned dependency versions are identical.
tests/exports.test.mjs, tests/links.test.mjs, tests/source-links.test.mjs, tests/fixtures/anchors.mdBase paths, repository paths and version strings. Since #6, source-links.test.mjs also checks a link to a page in a subfolder.
tests/browser/documentation.spec.tsThe page names, the diagram and the table it exercises; the workspace example tests were dropped.
.github/workflows/documentation.ymlThe base path matrix, and the sources of the Windows Forms and Avalonia libraries as trigger paths, so that a library change runs the control-table test.

Two additions are specific to Immersive: scripts/controls-table.mjs generates the rows of the tables of Substituted controls and testers from the library sources and from its own list of tester members, and tests/controls.test.mjs fails when the rows differ from that output or a tester is missing from the page.

This second adoption shows what a shared implementation would contain: the three integrations, the link checker, the title component, the stylesheet, the content schema, the tooling tests and the workflow, parametrized by the values now in site.mjs. Extracting them is a decision for the Allors documentation home; until then, keep the copies identical where the table says so, and port fixes between the repositories.

Since #9 the values that differed between the copies of the tooling are in site.mjs: the description of the website, which astro.config.mjs and exports.mjs held, the audiences, which the content schema and exports.mjs read, the root of the repository, which source-links.mjs reads, and the base path, from which check-links.mjs takes its default. The agent index, llms.txt, introduces itself with the description of the website. This copy also gained the plug-in focusable-code-blocks.mjs, which the other copies had: every code block gets its tabindex when the page is built, and the browser tests check it. The link checker leaves two kinds of link to the build that publishes their target: the link to the documentation home, and links into the documentation areas, which the copy of the home needs. With the same change in the other four copies, ten files are the same, byte for byte, in all five: the four integrations, the link checker, the content schema, the page title component, the stylesheet and the Playwright and TypeScript configuration. A copy differs in site.mjs, astro.config.mjs, its tests, its workflow and its content.

Since #10 the website takes mermaid 12 and shows every diagram at its natural size: astro.config.mjs sets flowchart.useMaxWidth to false, and the stylesheet gives a diagram neither a minimum nor a maximum width. A label is 16px on every screen, and a diagram that is wider than its column scrolls. Before, the stylesheet gave every diagram a minimum width of 34rem, which enlarged the narrower diagrams that mermaid 12 draws. The rule is the same in the five copies of the tooling. It covers flowcharts, the one kind of diagram in use; another kind needs its own useMaxWidth.

On 2026-10-19 the following ran locally from docs/ for the base paths /immersive/ and /: npm test, npm run check, npm run build, npm run check:links and npm run test:browser, as the website instructions describe. The examples in Getting started were run from a clean directory against the published 2.1.10-preview packages, and the observed failure of the MSBuild package and its validated change are recorded in Run the weaver and Weaver internals.

Automated checks do not establish that an explanation is accurate or clear. The writing guide requires editorial review of changed pages and of representative exports.

  • Decide with the other Allors repositories whether to extract the reused tooling.
  • Revisit this record when the MSBuild package is changed and when Allors.Immersive.Avalonia is published.