Skip to content

Build the docs site with Zensical in Material's look, and show every component - #383

Merged
smelfungus merged 2 commits into
masterfrom
docs-zensical
Nov 5, 2026
Merged

smelfungus merged 2 commits into
masterfrom
docs-zensical

Conversation

@smelfungus

Copy link
Copy Markdown
Member

Follows #381 and #382.

  • The site looks like a documentation site. Zensical, the successor to Material for MkDocs, builds it in Material's classic look, the one Coil's docs use: the pages in five sections in a sidebar, each with an icon, search, a light, dark and automatic scheme, a contents list on each page and copy buttons on code. Jekyll's minimal theme, its layout, nav include and _config.yml go.
  • Nothing found before is lost. Every page keeps its address (setup.html and so on), its title and its search description, and the sitemap stays. scripts/docs-llms-txt.py writes llms.txt from mkdocs.yml's nav and each page's front matter, as the Liquid template did; only its summary line changes, to the new site description. A template override adds the Open Graph and Twitter tags jekyll-seo-tag wrote.
  • docs.yml builds and publishes it. A pull request that touches the docs gets a strict build, which fails on a link to a page, image or heading that does not exist. A push to master publishes to GitHub Pages. Only the top level of docs/ and its images are built.
  • Every component page shows its component. Channel sliders, Theming, Localization and Without Material get screenshots of what their code draws, recorded as screenshot-test references like the others and copied to docs/images by copyGoldensToDocs. Localization shows an HSL picker in Egyptian Arabic, right to left.
  • CONTRIBUTING's Documentation section says how a page joins the sidebar and how to preview the site.

Before merging: Pages must build from GitHub Actions rather than from master's /docs (Settings, Pages, Source). Until the first deployment from docs.yml, the current site stays up.

The site builds with zensical build --strict without issues; in the built site every internal link, image and anchor resolves, and each page has one <h1>. llms.txt matches the current one line for line but for its summary. validateDebugScreenshotTest passes with the four new references, and the 30 existing ones are unchanged.

…component

The site was Jekyll's minimal theme: a fixed grey column, small type, and the list of pages at the foot of each page. Zensical, the successor to Material for MkDocs, now builds it in Material's classic look: the pages in five sections in a sidebar, each with an icon, search, a light, dark and automatic scheme, a contents list on each page and copy buttons on code. Every page keeps its address, its title and its search description, and the sitemap stays.

docs.yml builds the site on every pull request that touches it, failing on a broken link, and publishes it to GitHub Pages from master, so Pages builds from GitHub Actions rather than from master's docs folder. scripts/docs-llms-txt.py writes llms.txt from mkdocs.yml's nav and each page's front matter, as the Jekyll template did, and a template override adds the Open Graph tags jekyll-seo-tag wrote. Only the top level of docs/ and its images are built.

The channel sliders, theming, localization and Without Material pages get screenshots of what their code draws, recorded as screenshot-test references like the others.
Python 3.15 is the current release, and Zensical's wheels are abi3 from 3.11, so they install on it as they are. Dependabot watched Gradle and the actions but not pip, so a new Zensical would have gone unnoticed; it now proposes one each week, as it does the rest.
@smelfungus
smelfungus merged commit 6b04462 into master Nov 5, 2026
5 checks passed
@smelfungus
smelfungus deleted the docs-zensical branch November 5, 2026 18:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant