Skip to content
Edit this page View source of this page

Write and publish your docs

Choose where to write

  • Use website/ for public material that helps users adopt and use your project. Zensical builds these pages into the site.
  • Use docs/ for repository development guidance and design records used by contributors and coding agents. Zensical's site build reads website/, so a change under docs/ alone won't change the public site.

The root README.md is the introduction people see on GitHub. Link from it to the public site for longer guides.

Add or update a page

  1. Edit the Markdown under website/. Use relative links to other public pages, such as ../get-started/initialize-python.md.
  2. Add new pages to nav in zensical.toml where readers would look for them. Update links when moving a page.
  3. In a new repository, update the site name, description, author, repository URL, and final site URL in zensical.toml. Update edit_uri if your default branch or documentation folder changes so Edit this page still opens the right file. Replace links specific to the original template when they no longer apply.

Preview locally

From the repository root, start the preview server and open the address it prints.

mise run docs

When you're finished previewing, stop the server. Check the Markdown and produce the same site output used by the GitHub workflow.

rumdl check website
uvx zensical build --clean

Deploy with GitHub Pages

  1. Open Settings → Pages in your repository on GitHub and set Source to GitHub Actions.
  2. Merge a change to website/, zensical.toml, or the documentation workflow into main or master.
  3. In the Actions tab, open the Documentation workflow and follow the URL from the deployment job after it succeeds.

The build runs on qualifying pull requests before merging. If the workflow builds the site but doesn't publish it, check the Pages source setting and the deploy job log. Documentation workflow triggers · Zensical configuration