Skip to content

chore: switch the Read the Docs build to Zensical - #40

Merged
tastybento merged 2 commits into
developfrom
chore/switch-to-zensical
Sep 7, 2026
Merged

tastybento merged 2 commits into
developfrom
chore/switch-to-zensical

Conversation

@tastybento

Copy link
Copy Markdown
Member

Mirrors BentoBoxWorld/docs#102 and BentoBoxWorld/docs#104. Material for MkDocs reaches end of life on 2026-11-05; Zensical is its successor from the same team, reads the same mkdocs.yml, and runs the main.py macros natively.

Changes

  • .readthedocs.yml – Python 3.12, install requirements-zensical.txt, run zensical build and copy site/ to the output directory, per the official Read the Docs Zensical guide.
  • mkdocs.yml – explicit site_url: https://docs.bentobox.world/zh-cn/latest/ (Zensical cannot read READTHEDOCS_CANONICAL_URL) and theme.variant: classic to keep the Material look. MkDocs passes the extra key through.
  • .github/workflows/zensical.yml – runs the same build on every push and PR and checks macros and the footer override rendered.
  • requirements-zensical.txtzensical==0.0.59 (pre-1.0, so pinned) plus PyYAML/requests. requirements.txt is kept as the MkDocs fallback.
  • CLAUDE.md – build instructions updated.

Verified locally (Zensical 0.0.59, Python 3.12): the site builds, the canonical link is https://docs.bentobox.world/zh-cn/latest/…, the classic theme and the footer override render.

Note: Zensical reports a number of pre-existing anchor does not exist warnings in this repo (mostly BentoBox/Translate-BentoBox-and-addons.md, FAQ.md, Glossary.md): in-page #anchor links whose targets are English heading slugs that no longer match the translated headings. They do not fail the build and are unrelated to this change, but are worth a follow-up.

Rollback is a one-file revert of .readthedocs.yml. Known difference: no "last updated" footer line, as Zensical has no git-revision-date-localized support yet.

🤖 Generated with Claude Code

https://claude.ai/code/session_01AtaKe95zrGF2Do7h3FfNBS

tastybento and others added 2 commits September 6, 2026 17:30
Mirrors BentoBoxWorld/docs#102 and #104. Material for MkDocs reaches end
of life on 2026-11-05; Zensical reads the same mkdocs.yml and runs the
main.py macros natively, and the local build output matches.

- .readthedocs.yml: Python 3.12, install requirements-zensical.txt, run
  zensical build and copy site/ to the output directory.
- mkdocs.yml: explicit site_url (Zensical cannot read
  READTHEDOCS_CANONICAL_URL) and theme.variant: classic.
- .github/workflows/zensical.yml: builds with Zensical on every push/PR.
- CLAUDE.md updated; requirements.txt kept as the MkDocs fallback.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AtaKe95zrGF2Do7h3FfNBS
python.install is only run for sphinx/mkdocs builds, so with build.jobs
alone the zensical command was not found on Read the Docs.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AtaKe95zrGF2Do7h3FfNBS
@tastybento
tastybento merged commit 84f8202 into develop Sep 7, 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