Skip to content

CI and Pages

The documentation site lives in docs/ and uses Starlight with pnpm.

Terminal window
cd docs
pnpm install
pnpm dev
pnpm build

The local preview path includes the base path:

http://127.0.0.1:4321/webview_all

The Simplified Chinese documentation path is:

http://127.0.0.1:4321/webview_all/zh

The workflow file is .github/workflows/docs.yml. It runs on every push to main and on manual dispatch.

Build flow:

  1. Checks out the repository.
  2. Installs pnpm 10.19.0.
  3. Installs Node 22 with pnpm caching enabled.
  4. Runs pnpm install --frozen-lockfile in docs/.
  5. Runs pnpm build.
  6. Uploads docs/dist.
  7. Deploys with GitHub Pages Actions.

Astro config:

site: 'https://abandoft.github.io',
base: '/webview_all',

Deployed URL:

https://abandoft.github.io/webview_all

Simplified Chinese URL:

https://abandoft.github.io/webview_all/zh

In GitHub repository settings, Pages source must be set to GitHub Actions.