Skip to content

ci: deploy docs to GitHub Pages#62

Merged
suleimansh merged 1 commit into
mainfrom
ci/deploy-docs-pages
Jun 27, 2026
Merged

ci: deploy docs to GitHub Pages#62
suleimansh merged 1 commit into
mainfrom
ci/deploy-docs-pages

Conversation

@suleimansh

Copy link
Copy Markdown
Member

Makes the docs site reachable. Pages is already enabled on the repo with GitHub Actions as the source.

What

  • .github/workflows/deploy-docs.yml - builds the VitePress site and deploys it to GitHub Pages, on pushes to main that touch docs/** (or the workflow itself) and via manual workflow_dispatch. Standard configure-pages -> upload-pages-artifact -> deploy-pages flow with pages: write / id-token: write permissions and a pages concurrency group.
  • config.ts - base is now process.env.DOCS_BASE || '/'. The workflow sets DOCS_BASE=/gemstack/ so assets resolve under the project-pages path; local dev and a future custom domain keep the root base.

Result

On merge, the site publishes at https://gemstack-land.github.io/gemstack/.

Follow-ups (not blocking)

  • When gemstack.land is ready, attach it as the Pages custom domain and remove DOCS_BASE from the workflow (base returns to /).
  • Repoint the interim GitHub blob links in the rudder docs (ai.md / mcp.md) and this repo's README to the live site.

Verified locally: DOCS_BASE=/gemstack/ pnpm --filter @gemstack/docs docs:build is green and bakes /gemstack/ into the asset URLs. No changeset.

Add a Pages deploy workflow (build VitePress, upload, deploy) triggered on
docs changes to main and via manual dispatch. Pages source is set to GitHub
Actions; the site publishes at https://gemstack-land.github.io/gemstack/.

config.ts gains a configurable base (process.env.DOCS_BASE || '/'). The
workflow sets DOCS_BASE=/gemstack/ for the project-pages URL; local dev and a
future custom domain keep the root base. Drop that env from the workflow once
gemstack.land is attached.
@suleimansh suleimansh added the documentation Improvements or additions to documentation label Jun 27, 2026
@suleimansh suleimansh self-assigned this Jun 27, 2026
@suleimansh suleimansh merged commit db08318 into main Jun 27, 2026
1 check passed
@suleimansh suleimansh deleted the ci/deploy-docs-pages branch June 27, 2026 19:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant