Deployment (Rspack + GitHub Pages)
This site is built with Rspack via Rspress (which uses Rsbuild → Rspack).
Stack
- Bundler:
@rspack/core2.2.2(explicit dep indocs/package.json) - Docs framework:
@rspress/core2.0.19(rspress dev/build/previewwrap Rspack) - Config:
docs/rspress.config.ts(base: "/react-native-marked/",builderConfigforwarded to Rspack) - Output:
docs/doc_build
Local
GitHub Pages
Workflow .github/workflows/docs.yml runs on push: main (and PRs for build check):
yarn install --frozen-lockfile(root)yarn --cwd docs install --frozen-lockfile(ifdocs/yarn.lockexists, else falls back to root)yarn docs:build→docs/doc_buildactions/upload-pages-artifact@v3withpath: docs/doc_buildactions/deploy-pages@v4(needsSettings → Pages → Source: GitHub Actions)
rspress.config.ts base: "/react-native-marked/" is required for project pages (https://gmsgowtham.github.io/react-native-marked/). For a custom domain, change base: "/" and add docs/docs/public/CNAME (served from the Rspress root-relative public/ dir).
See also rspack docs: https://rspack.rs and rspress docs: https://rspress.rs