Skip to content

docs: publish the docs on GitHub Pages, one build per line - #419

Merged
CaffeinatedCoder merged 1 commit into
mainfrom
docs/417-docs-site
Oct 25, 2026
Merged

CaffeinatedCoder merged 1 commit into
mainfrom
docs/417-docs-site

Conversation

@CaffeinatedCoder

Copy link
Copy Markdown
Owner

Closes #417

Problem

The consumer docs could only be read as Markdown on GitHub. GitHub shows main, which is the 11 preview line, while dotnet add package installs 10.x. The consumer guides and the contributor pages sat side by side with no navigation between them, and there was no search and no API reference.

Change

  • site/: the DocFX config, the navigation (toc.yml) and build.sh.
    • The pages are the Markdown files as they are, nothing copied or rewritten, so claims.json keeps quoting what readers see.
    • The root README is the home page. The guides, package READMEs, changelog and contributor pages are pages too, so every relative link in the docs resolves. LICENSE and the skill files are copied as resources.
    • The API reference comes from the published assemblies (four packages, 201 pages), not from the csproj files, so DocFX never loads the preview SDK through MSBuild.
  • .github/workflows/docs.yml: builds release/10.x into /10.x/ and main into /11.x/, then deploys both with actions/deploy-pages.
    • Both builds use main's config. release/10.x gets no copy: a push there publishes through workflow_run on the .NET workflow, which always runs main's file.
    • That trigger runs only for a push in this repository, and checks release/10.x out by name.
    • A PR into main builds both lines and publishes nothing.
    • Actions are pinned to SHAs, and the workflow lints clean with actionlint 1.7.7.
  • site/root/: the root redirects to 10.x/ until v11.0.0. versions.html lists both lines and is linked from every page's "Versions" menu entry.
  • .config/dotnet-tools.json: pins DocFX 2.81.0, which has a net11.0 build, so it runs on the RC2 SDK without roll-forward.
  • Docs: CONTRIBUTING.md#the-documentation-site covers how it's built, adding a page, links, and the switch at v11.0.0. There's also an AGENTS.md structure entry, a README sentence under the Documentation table, and a Docs: line under 11.0.0-preview.1 ### Added.

There's nothing to cherry-pick. When 10.3.0 opens on release/10.x, its section can take the same Docs: line, because the 10.x pages go live with this PR.

Tests

  • site/build.sh built both lines locally with 0 warnings and 0 errors: main on the RC2 SDK, and a release/10.x worktree on its own 10.0.x SDK.
  • I assembled the two outputs the way the publish job does and checked them in a browser: / redirects to /10.x/README.html, the header shows the line, the navigation and the API pages render, and versions.html lists both lines.
  • Link check, seeded: a broken link added to docs/why.md in the 10.x worktree fails the build with exit 255 (InvalidFileLink) and names the line. Reverted.
  • dotnet test test/CodoMetis.ValueRanges.Conventions.Tests: 409 passed.
  • Not verified yet: the deploy job itself. It runs only on main, so the first real deployment happens when this merges. Pages is already set to "GitHub Actions".

🤖 Generated with Claude Code

DocFX builds the README, the guides, the package READMEs, the changelog,
the contributor pages and an API reference from the published assemblies'
XML docs. The pages are the Markdown files as they are, so claims.json
keeps quoting what readers see.

One config on main builds release/10.x into /10.x/ and main into /11.x/.
The root redirects to 10.x until v11.0.0. A push to release/10.x
publishes through workflow_run on the .NET workflow, so that branch needs
no copy of site/ or docs.yml. Warnings are errors, so a broken link fails
the build, including on PRs into main.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@CaffeinatedCoder CaffeinatedCoder added this to the 10.3.0 milestone Oct 25, 2026
@CaffeinatedCoder CaffeinatedCoder added documentation Improvements or additions to documentation area/release Versioning, changelogs, release wiring labels Oct 25, 2026
@CaffeinatedCoder
CaffeinatedCoder merged commit f6a1dc3 into main Oct 25, 2026
14 of 15 checks passed
@CaffeinatedCoder
CaffeinatedCoder deleted the docs/417-docs-site branch October 25, 2026 11:04
CaffeinatedCoder added a commit that referenced this pull request Oct 25, 2026
…hrough (#424, port)

From main's #425: a Docs badge, the walkthrough pointer beside Getting
started, the June 2026 article badges moved to a dated line, every
package README linking the site and the walkthrough, and
PackageProjectUrl opening the site.

On 10.x, the changelog line goes under 10.3.0 ### Changed. In the
package changelogs it replaces "No change in this package." The README
also takes the documentation-site sentence the articles line follows,
which main has had since #419. The Discussions line beside it on main
(#414) isn't part of this port.

(cherry picked from commit 150d9ef)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/release Versioning, changelogs, release wiring documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Docs site: publish docs/ to GitHub Pages, one build per line, the stable line by default

1 participant