Skip to content

Keep Sphinx doctrees out of published HTML - #27

Merged
urfeex merged 1 commit into
mainfrom
avoid_daily_deploys
Nov 4, 2026
Merged

urfeex merged 1 commit into
mainfrom
avoid_daily_deploys

Conversation

@urfeex

@urfeex urfeex commented Nov 3, 2026

Copy link
Copy Markdown
Member

Otherwise changes in the binary .doctree/* files will be deployed every day. Keeping these out of the source tree makes the deployment job only deploy if things have actually changed.

Otherwise changes in the binary .doctree/* files will be deployed every day.
Keeping these out of the source tree makes the deployment job only deploy if
things have actually changed.
@urfeex
urfeex requested review from urrsk and a balanced review from Copilot November 3, 2026 20:04

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

There are no active review issues for the change separating Sphinx’s doctree cache from the published HTML output.

No open issues 🎉

What changed in this PR

Moves Sphinx’s doctree cache outside the published HTML directory so binary cache changes do not trigger unnecessary documentation deployments.

Changes:

  • Sets a separate, per-distribution doctree directory using Sphinx’s -d option.
  • Keeps the existing HTML output locations unchanged.
File Description
scripts/​build_docs.sh Stores doctrees in _build/doctrees/${distro}, outside the published HTML tree.

Review effort: Balanced

@urfeex
urfeex merged commit f5431d0 into main Nov 4, 2026
2 checks passed
@urfeex
urfeex deleted the avoid_daily_deploys branch November 4, 2026 09:39
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.

3 participants