You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs: migrate hosting from GitHub Pages to IC asset canister (#439)
* docs: migrate hosting from GitHub Pages to IC asset canister
- 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.
* docs: update custom domain to cli.internetcomputer.org
Copy file name to clipboardExpand all lines: docs-site/README.md
+19-11Lines changed: 19 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -96,23 +96,31 @@ Removes `dist/` and `.astro/` directories
96
96
97
97
## Deployment
98
98
99
-
The site is automatically deployed to GitHub Pages:
100
-
-**URL**: https://dfinity.github.io/icp-cli/
101
-
-**Workflow**: `.github/workflows/docs.yml`
102
-
-**Trigger**: Push to `main` branch (docs or docs-site changes)
99
+
The site is hosted on an IC asset canister and served at `https://cli.internetcomputer.org`.
103
100
104
-
The workflow:
105
-
1. Installs dependencies
106
-
2. Runs `npm run build`
107
-
3. Uploads the `dist/` directory as a GitHub Pages artifact
108
-
4. Deploys to GitHub Pages
101
+
**Canister ID**: `ak73b-maaaa-aaaad-qlbgq-cai`
102
+
103
+
### How it works
104
+
105
+
1.**`.github/workflows/docs.yml`** builds documentation and pushes built files to the `docs-deployment` branch (one directory per version: `0.1/`, `0.2/`, `main/`, etc.)
106
+
2.**`.github/workflows/docs-deploy.yml`** triggers on pushes to `docs-deployment` and deploys the entire branch to the IC asset canister
107
+
108
+
### Triggers
109
+
110
+
-**Push to `main`**: Rebuilds `/main/` docs and root files (`index.html`, `versions.json`, IC config)
0 commit comments