Writing the docs¶
The site is built with Zensical from docs/, configured in
zensical.toml, and published to GitHub Pages by .github/workflows/docs.yml.
Preview and build¶
uv run zensical serve # http://localhost:8000, reloads on save
uv run zensical build --clean # writes site/
uv run python scripts/check_seo.py site
Every page¶
Start every page with front matter:
---
title: What the page is about, in words people search for
description: One or two sentences, 50 to 160 characters, that make someone click.
---
- The
titlebecomes the browser and search result title; it must be unique. - The
descriptionbecomes the meta description and the social card text. - Add the page to
navinzensical.toml, and to anllms.txtsection if it is new. - Link with relative paths to
.mdfiles; the build warns about broken links.
Tool pages¶
Each tool has docs/tools/<tool>.md with a parameter table. The row for each parameter
starts with the parameter in backticks, for example | `symbols` |. A test compares
the tables with the live tool schemas and fails when a parameter is missing, so update the
page with the code.
What the build produces¶
sitemap.xmland canonical links, fromsite_url.- A social card image and Open Graph and Twitter tags for every page (the
socialplugin). - Meta descriptions for pages without one (the
meta-descriptionsplugin; set them anyway). llms.txtand a Markdown copy of each page for AI assistants (thellmstxtplugin).- SoftwareApplication JSON-LD on the home page and a helpful 404 page (
overrides/).
Checks¶
scripts/check_seo.pyfails when a page lacks a unique title, a 50-160 character description, an Open Graph image, a canonical URL in the sitemap, or whenllms.txt, the 404 page or the home page's JSON-LD is missing.- Lighthouse CI (
lighthouserc.json) requires an SEO score of at least 0.95 on the home page, the tool overview and the installation page.
Both run in the docs workflow on every pull request and every push to main, and the site
is deployed only when they pass.