Skip to content

fix(docs): publish /graphics/api/ after failed #7 Pages deploy#8

Merged
cursor[bot] merged 1 commit into
mainfrom
cursor/fix-pages-api-deploy-61ad
Jul 20, 2026
Merged

fix(docs): publish /graphics/api/ after failed #7 Pages deploy#8
cursor[bot] merged 1 commit into
mainfrom
cursor/fix-pages-api-deploy-61ad

Conversation

@bdbarnett

Copy link
Copy Markdown
Contributor

Summary

PR #7 added the Sourcey API reference, but the merge deploy never published it. The homepage still serves the pre-#7 site, and https://pydevices.github.io/graphics/api/ returns 404.

Root cause: Deploy Pages site failed on push to main (run 29725265495) because docs/scripts/generate_reference.py calls git describe --tags --abbrev=0, and the default actions/checkout shallow clone has no tags (fatal: No names found, cannot describe anything.). Deploy was skipped after that failure.

Fix

  • Checkout with fetch-depth: 0 and fetch-tags: true so CI can resolve a release line
  • Make release_tag() fall back to the newest local tag, then unreleased, instead of crashing
  • Teach verify-site.mjs to require the fuller checkout settings
  • Regenerate the checked-in reference snapshot against current main

Validation

  • npm ci --prefix docs
  • npm run check --prefix docs (136 Python entries, 61 native C functions)
  • Confirmed a depth-1 clone reproduces the original git describe failure
  • Confirmed fallbacks return the newest tag / unreleased when describe fails

After merge, the existing Pages workflow should deploy _site/api/ and the homepage API links will go live.

Open in Web Open in Cursor 

The #7 Deploy Pages run failed because `git describe --tags` needs tags
that the default shallow Actions checkout does not fetch, so `/api/`
never published. Fetch full history/tags in CI and fall back when no
release tag can be resolved.

Co-authored-by: Brad Barnett <bdbarnett@users.noreply.github.com>
@cursor
cursor Bot marked this pull request as ready for review July 20, 2026 07:56
@cursor
cursor Bot merged commit df47b39 into main Jul 20, 2026
1 check passed
@cursor
cursor Bot deleted the cursor/fix-pages-api-deploy-61ad branch July 20, 2026 07:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants