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 readswebsite/, so a change underdocs/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
- Edit the Markdown under
website/. Use relative links to other public pages, such as../get-started/initialize-python.md. - Add new pages to
navinzensical.tomlwhere readers would look for them. Update links when moving a page. - In a new repository, update the site name, description, author, repository URL, and final site URL in
zensical.toml. Updateedit_uriif 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
- Open Settings → Pages in your repository on GitHub and set Source to GitHub Actions.
- Merge a change to
website/,zensical.toml, or the documentation workflow intomainormaster. - 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