Skip to content

Add zensical as an alternative docs build path#199

Merged
koaning merged 2 commits intomainfrom
koaning/zensical-port
May 1, 2026
Merged

Add zensical as an alternative docs build path#199
koaning merged 2 commits intomainfrom
koaning/zensical-port

Conversation

@koaning
Copy link
Copy Markdown
Owner

@koaning koaning commented May 1, 2026

Summary

  • Adds a zensical.toml that mirrors mkdocs.yml (theme, nav, mkdocstrings, markdown extensions) so zensical build renders the existing mkdocs/ source without touching content.
  • New scripts/post_zensical.py copies markdown sources into site/ (rendering reference pages from the built HTML) and patches gallery MD links that zensical's link rewriter collapses into the API URL.
  • Adds a Demos page (mkdocs/demos.md) with three YouTube embeds, plus .youtube-embed CSS for responsive 16:9 iframes.
  • Wires GitHub Pages deployment via the artifact flow in .github/workflows/docs.yml, and adds make docs-zensical / docs-zensical-serve Makefile targets; the existing mkdocs targets are unchanged.

Test plan

  • make docs-zensical builds with no warnings (currently ~1.5s).
  • make docs-zensical-serve and visit http://localhost:8000/: gallery renders, "API" link goes to the rendered page, "MD" link serves raw markdown, /demos/ shows three embedded videos, /llms.txt is reachable.
  • make docs (mkdocs side-by-side) still builds.
  • Flip Pages source to "GitHub Actions" before merging — the new workflow uses actions/deploy-pages, not the legacy gh-pages branch.

Vincent D. Warmerdam added 2 commits May 1, 2026 17:48
- New zensical.toml ports the mkdocs.yml setup (theme, nav, mkdocstrings,
  markdown extensions) so `zensical build` renders the existing mkdocs/
  source without touching content.
- New scripts/post_zensical.py copies .md sources into site/ (rendering
  reference pages from HTML) and patches gallery MD links that zensical's
  link rewriter collapses into the API URL.
- New mkdocs/demos.md plus a Demos nav entry, with .youtube-embed CSS for
  responsive 16:9 iframes.
- New .github/workflows/docs.yml deploys via the GitHub Pages artifact flow.
- Makefile gains `docs-zensical` and `docs-zensical-serve` targets; the
  existing mkdocs targets are unchanged.
- Delete mkdocs.yml and scripts/copy_docs_md.py.
- Drop mkdocs / mkdocs-material / mkdocs-jupyter / mkdocs-section-index /
  mkdocs-include-markdown-plugin / mkdocs-git-revision-date-localized-plugin /
  mike from the docs extras; mkdocstrings[python] stays for zensical's compat
  layer.
- Inline the HTML→markdown helpers from copy_docs_md.py into post_zensical.py
  so it's self-contained.
- Replace the mkdocs Makefile targets with `docs` / `docs-serve` calling the
  zensical pipeline.
@koaning koaning merged commit 5b90f0d into main May 1, 2026
2 checks passed
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