Conversation
Switch from actions/deploy-pages (whole-site overwrite) to pushing subdirectories on a gh-pages branch. This enables versioned release docs, dev docs from main, and PR preview deployments. - Rewrite docs.yml to deploy /dev/ on push to main - Add docs-release.yml for /<version>/ + /latest/ + index.html on tag - Add docs-pr-preview.yml for /pr/<number>/ with PR comment - Add docs-pr-cleanup.yml to remove previews on PR close - Extract shared deploy logic into composite action - Add override_site_url.py script using tomlkit Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Contributor
|
📖 Docs preview: https://taisakuma.github.io/improved-octo-fortnight/pr/10/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
actions/deploy-pages(whole-site overwrite) to pushing subdirectories on agh-pagesbranch/dev/on push tomain,/<version>/+/latest/+ rootindex.htmlon tag push/pr/<number>/on PR open/update with a preview comment, clean up on PR closescripts/override_site_url.pyusingtomlkitto overridesite_urlfor subdirectory buildsTest plan
main→/dev/deployed on gh-pages/pr/<number>/deployed, comment with preview URL appears/pr/<number>/removedv0.1.0→/0.1.0/,/latest/, and rootindex.htmldeployedgh-pages(already done via API)🤖 Generated with Claude Code