Skip to content

chore: Fix docs deploy building other versions - #1997

Merged
TwitchBronBron merged 1 commit into
masterfrom
docs-build-fixes
Nov 20, 2026
Merged

TwitchBronBron merged 1 commit into
masterfrom
docs-build-fixes

Conversation

@TwitchBronBron

Copy link
Copy Markdown
Member

Docs deploys fail at the v1 step (run): a local clone doesn't copy origin/* refs, so site.mjs can't check out origin/v1. Deploys always run master's copy, so these fixes need to land here (#1996 brings the same ones to v1).

  • site.mjs fetches the version branch's exact ref into its clone instead.
  • The docs workflow only triggers on version branches (v[0-9]+), not branches like v1-docs-website.
  • The dev server no longer throws an uncaught error when search preloads before its index is built.

Verified by CI's build-docs step, which builds v1 from origin/v1.

🤖 Generated with Claude Code

A local clone doesn't copy origin/* refs, so building v1 from origin/v1 failed with 'unable to read tree'. Fetch that exact ref instead. Also only trigger on version branches (v1, v12), and don't throw when the dev server preloads search before its index is built.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@TwitchBronBron TwitchBronBron changed the title Fix docs deploy building other versions chore: Fix docs deploy building other versions Nov 20, 2026
@TwitchBronBron
TwitchBronBron enabled auto-merge (squash) November 20, 2026 19:35
@TwitchBronBron
TwitchBronBron enabled auto-merge (squash) November 20, 2026 19:35
@TwitchBronBron
TwitchBronBron merged commit fbba631 into master Nov 20, 2026
8 checks passed
@TwitchBronBron
TwitchBronBron deleted the docs-build-fixes branch November 20, 2026 19:42
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