Skip to content

Wiki publishing

The source of these pages is the root wiki directory, outside the Copier-rendered template.

Edit the Markdown files in the source repository. The Publish wiki workflow runs on main-branch pushes that touch wiki pages or the publishing workflow; it can also be run manually from the Actions tab. Only main can publish. The publisher copies top-level Markdown pages into the existing GitHub wiki repository, commits changes and pushes normally. It does not force-push or delete other pages. A page with the same filename is replaced by the source version; edit managed pages in the source repository, not the wiki UI. Removing a source page does not delete its previously published counterpart.

Enable Wikis in the repository settings and create an initial Home page through the GitHub wiki UI if one does not exist. GitHub requires an initial page before the wiki can be cloned.

The workflow uses the built-in job token with contents: write by default. An explicitly configured WIKI_TOKEN takes precedence. If the token cannot push to the wiki, configure a repository Actions secret named WIKI_TOKEN with a Git credential authorized to write that wiki, then rerun. Keep the token in Actions secrets, never in a file or commit. A classic personal access token with public_repo scope is an option for this public repository; set an expiration and revoke it when no longer needed.

Verify a successful run in Actions and inspect the published wiki. Repeated runs with identical sources should make no new commit.

The local workflow is a thin caller of the central wiki-publish.yml reusable workflow. Publishing logic and its tests live in ci-workflows. See the central setup guide. Neither the caller nor the wiki directory is copied into generated projects.

Documentation website and AI-readable files

Section titled “Documentation website and AI-readable files”

The same source pages also build a Starlight site through the central wiki-pages workflow. Set Settings → Pages → Source to GitHub Actions before the first deployment. The website publishes HTML, a sitemap, llms.txt, llms-full.txt and individual Markdown mirrors. Edit wiki/ once; both publication workflows use it. These website files are not copied into generated applications.

The centralized structured-data generator adds JSON-LD in the HTML head only. It does not add metadata panels or breadcrumbs to the rendered page body.

The optional homepage feature cards use the standard Starlight documentation layout, retaining both documentation navigation and the on-page table of contents. Configure the site title and card rendering in wiki/_Site.json and edit the Highlights list in wiki/Home.md.