Documentation workflow
The Documentation workflow lives in .github/workflows/docs.yml. It builds the public site with Zensical and publishes successful push builds to GitHub Pages.
What triggers a build
A pull request targeting main or master can trigger a build when it is opened, reopened, or updated. A push to either branch can also trigger a build. In both cases, the change must touch at least one watched path.
website/**zensical.toml.github/workflows/docs.yml
A qualifying pull request runs the build for review. A qualifying push also uploads site/ as the Pages artifact. The deploy job waits for that build, publishes the artifact to the github-pages environment, and reports the site URL. Editing only internal files under docs/ does not trigger a build.
Diagnose a failed run
In the Actions tab, open the Documentation run and check which job failed. For a build failure, reproduce the workflow command from the repository root.
uvx zensical build --clean
For a deploy failure after a successful build, check Settings → Pages in the destination repository. The publishing source must be GitHub Actions. If you change the output directory or the publishing branch, review the workflow's artifact path and branch filters at the same time.
Write and publish your docs · Configure a Pages publishing source