Skip to content

ci(docs): deploy VitePress to GitHub Pages on push to main - #4

Merged
JS-mark merged 1 commit into
mainfrom
feat/v0.2-complete
Jun 7, 2026
Merged

ci(docs): deploy VitePress to GitHub Pages on push to main#4
JS-mark merged 1 commit into
mainfrom
feat/v0.2-complete

Conversation

@JS-mark

@JS-mark JS-mark commented Jun 7, 2026

Copy link
Copy Markdown
Owner
  • new: .github/workflows/docs.yml — build on PRs touching apps/docs (or CI/lockfile inputs), deploy on main pushes only. Uses the standard configure-pages → upload-pages-artifact → deploy-pages chain.
  • shared.ts: thread base through DOCS_BASE env var so production builds get '/Bridgent/' (the project page URL) while local dev/preview keep '/'. CI workflow sets the env explicitly.
  • apps/docs/public/.nojekyll: empty file so GitHub Pages serves VitePress's _assets/ etc verbatim instead of running Jekyll.

One-time repo setup the maintainer still has to do:
Settings → Pages → Source = "GitHub Actions"

If a custom domain (e.g. bridgent.ai) gets pointed at the page later, flip DOCS_BASE to '/' in the workflow and add CNAME in apps/docs/public.

- new: .github/workflows/docs.yml — build on PRs touching apps/docs (or
  CI/lockfile inputs), deploy on main pushes only. Uses the standard
  configure-pages → upload-pages-artifact → deploy-pages chain.
- shared.ts: thread `base` through DOCS_BASE env var so production
  builds get '/Bridgent/' (the project page URL) while local
  dev/preview keep '/'. CI workflow sets the env explicitly.
- apps/docs/public/.nojekyll: empty file so GitHub Pages serves
  VitePress's `_assets/` etc verbatim instead of running Jekyll.

One-time repo setup the maintainer still has to do:
  Settings → Pages → Source = "GitHub Actions"

If a custom domain (e.g. bridgent.ai) gets pointed at the page later,
flip DOCS_BASE to '/' in the workflow and add CNAME in apps/docs/public.
@JS-mark
JS-mark merged commit 2ad8dc0 into main Jun 7, 2026
4 checks passed
@JS-mark
JS-mark deleted the feat/v0.2-complete branch June 7, 2026 14:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant