CI and Pages
The documentation site lives in docs/ and uses Starlight with pnpm.
Local Commands
Section titled “Local Commands”cd docspnpm installpnpm devpnpm buildThe local preview path includes the base path:
http://127.0.0.1:4321/xue_hua_webviewThe Simplified Chinese documentation path is:
http://127.0.0.1:4321/xue_hua_webview/zhCode CI
Section titled “Code CI”.github/workflows/ci.yml runs for pull requests and manual dispatch. Jobs use
the current minimum supported Flutter line and the current 3.44 stable line.
The workflow:
- analyzes and tests every Dart package on each supported Flutter line, including the example application;
- runs web tests in Chrome and builds the web example;
- runs Android native unit tests and builds an APK on both supported Flutter lines;
- compiles the iOS and macOS examples on both supported Flutter lines, and compiles the Linux and Windows examples on the minimum line, so native plugin code is validated on its host OS.
GitHub Pages
Section titled “GitHub Pages”The workflow file is .github/workflows/docs.yml. It runs on a push to main
only when a file under docs/ changes, or by manual dispatch.
Build flow:
- Checks out the repository.
- Installs pnpm 10.19.0.
- Installs Node 24 with pnpm caching enabled.
- Runs
pnpm install --frozen-lockfileindocs/. - Runs
pnpm build. - Uploads
docs/dist. - Deploys with GitHub Pages Actions.
Production URL
Section titled “Production URL”Astro config:
site: 'https://matkurban.github.io',base: '/xue_hua_webview',Deployed URL:
https://matkurban.github.io/xue_hua_webviewSimplified Chinese URL:
https://matkurban.github.io/xue_hua_webview/zhIn GitHub repository settings, Pages source must be set to GitHub Actions.