Skip to content

docs: Migrate documentation from Sphinx to Zensical - #66

Merged
jacopo-massa merged 4 commits into
mainfrom
docs/zensical-migration
Nov 12, 2026
Merged

jacopo-massa merged 4 commits into
mainfrom
docs/zensical-migration

Conversation

@jacopo-massa

Copy link
Copy Markdown
Member

Replace the Sphinx documentation build with Zensical, convert guides and Python docstrings to Markdown, and generate the API reference automatically with api-autonav and mkdocstrings. The Python changes affect documentation only; runtime logic is unchanged.

  • Add Mermaid diagrams, annotated quickstart code, code copying and line selection, and instant navigation. Link previews remain disabled; no tags plugin is enabled.
  • Include the root CHANGELOG.md in the site, retain the standalone homepage, and add a copyable installation command aligned with the configuration cards.
  • Keep theme overrides under docs/overrides, simplify the API sidebar, widen the documentation layout, and position the generator credit on the right of the footer.
  • Redirect legacy Sphinx guide and API URLs, exclude legacy build output, and update README links, contributor instructions, Makefile targets and Read the Docs to publish _site/.

Validation:

  • Strict Zensical build passed using the locked dependencies and an isolated output directory.
  • All pre-commit checks passed, including Ruff, formatting, mypy, TOML and YAML validation.
  • Compared Python ASTs with main: all 27 changed Python files differ only in documentation strings.
  • Browser checks covered API navigation, link previews before disabling them, Mermaid diagrams, changelog, legacy API redirects, footer, and the installation CTA on desktop and mobile. Copy success and denied clipboard access were also checked.

The new documentation uses directory-style URLs. Legacy redirects depend on the host serving the custom 404 page. GitHub repository statistics use the theme defaults and may be unavailable when GitHub rate limits requests.

vdecaro and others added 4 commits November 12, 2026 15:55
mkdocstrings renders docstrings as Markdown, so the reStructuredText roles,
code-block directives and links left in them become autorefs links, fenced
code and Markdown links.

Also fix the docstrings griffe flags: parameters documented under names that
are not in the signature, an unindented continuation line, and empty
Args/Returns sections.
Replace Sphinx and the pydata theme with Zensical:

- pages move from docs/source/overview/*.rst to docs/overview/*.md; tabs,
  cards and dropdowns map to Zensical's Markdown extensions, and example
  code is included through snippets
- the API reference is generated per module by api-autonav and
  mkdocstrings instead of autosummary
- the landing page becomes the home.html template override, and custom.css
  maps the ember palette onto the Zensical theme
- a 404 override sends Sphinx-era .html URLs to their new clean URLs
- Read the Docs, make docs and the contributing guide build with
  `zensical build --strict`
@codecov

codecov Bot commented Nov 12, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (55e56e0) to head (02c2bd3).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main       #66   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          385       385           
  Lines         8814      8814           
  Branches      1013      1013           
=========================================
  Hits          8814      8814           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@jacopo-massa
jacopo-massa merged commit 22a2746 into main Nov 12, 2026
14 of 15 checks passed
@jacopo-massa
jacopo-massa deleted the docs/zensical-migration branch November 12, 2026 17:16
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.

2 participants