docs: migrate hosting from GitHub Pages to IC asset canister#439
Merged
docs: migrate hosting from GitHub Pages to IC asset canister#439
Conversation
- Remove /icp-cli/ base prefix from astro config and version switcher - Add IC asset canister config (icp.yaml, .ic-assets.json5, .well-known/ic-domains) - Add docs-deploy.yml workflow to deploy docs-deployment branch to IC mainnet - Update docs.yml to push built assets to docs-deployment instead of gh-pages - Update VERSIONED_DOCS.md, CONTRIBUTING.md, and README with new deployment info The docs-deployment branch has been bootstrapped from gh-pages (path rewrites applied) and is already deployed to ak73b-maaaa-aaaad-qlbgq-cai. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Member
Author
Post-merge: rebuild old version docsAfter merging, the Fix by triggering a rebuild for each old version: # Rebuild /0.1/
git push origin docs/v0.1
# Rebuild /0.2/ (branch doesn't exist yet, create from latest tag)
git checkout v0.2.1-beta.0 # or latest v0.2.x tag
git checkout -b docs/v0.2
git push origin docs/v0.2Each push triggers |
raymondk
approved these changes
Mar 17, 2026
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.
Closes #438
What this does
Moves docs hosting from
dfinity.github.io/icp-cli/to an IC asset canister athttps://cli.internetcomputer.org.Key changes:
/icp-cli/base path prefix — URLs are nowcli.icp.build/0.2/...instead ofdfinity.github.io/icp-cli/0.2/...docs.ymlnow pushes built assets todocs-deploymentbranch instead ofgh-pagesdocs-deploy.ymlworkflow deploysdocs-deploymentto the IC asset canister on every push to that branchicp.yaml,.ic-assets.json5,.well-known/ic-domainsAlready done (pre-merge):
docs-deploymentbranch bootstrapped fromgh-pages(path rewrites applied, IC config added)ak73b-maaaa-aaaad-qlbgq-caialready triggered — verify athttps://ak73b-maaaa-aaaad-qlbgq-cai.icp0.ioBefore merging
https://ak73b-maaaa-aaaad-qlbgq-cai.icp0.iolooks correct (all versions, version switcher, links)DFX_IDENTITY_DESIGN_TEAMsecret — thedocs-deploy.ymlworkflow requires itcli.internetcomputer.org→icp1.io)After merging
The first push to
mainwill rebuild and redeploy all content.gh-pagesis not modified by this PR — leave it untouched until the new deployment is confirmed working. Once confirmed, replacegh-pageswith redirect pages (/icp-cli/*→cli.icp.build/*) as described in #438.The
docs-deploymentbranch and canister already exist. Merging only changes what CI does going forward — it does not affect the already-deployed content.