Skip to Content
GitHub Pages Deployment

GitHub Pages Deployment

The docs site lives in:

docs-site/

It uses Bun, Nextra, Next static export, and GitHub Actions.

Local Build

cd docs-site bun install bun run build

Static output:

docs-site/out/

Project Pages Base Path

Project Pages usually serve at:

https://<owner>.github.io/<repo>/

When GITHUB_ACTIONS=true, next.config.mjs sets basePath to the repository name, such as /LightFlow.

Workflow

The workflow is:

.github/workflows/docs-pages.yml

It installs dependencies, builds the static site, uploads docs-site/out/, and deploys to Pages.

Set repository Pages source to GitHub Actions.

Multi-Language Routes

The exported site serves:

/zh/ /en/

The root page lets users choose a language. No middleware is required, so this works with static export.

Last updated on
MIT OR Apache-2.0 Licensed.