Release & auto-publishing
The docs (and API reference) publish themselves. A GitHub Actions workflow rebuilds and deploys to GitHub Pages:
- on every push to
masterthat touches docs, the SDK API surface or the workflow itself, - on every published GitHub Release,
- and manually via Run workflow (workflow_dispatch).
What the workflow does
- Checks out the repo with submodules (
libs-massif,libs-external). - Generates the Android Javadoc and iOS Jazzy reference from the SWIG bindings into
website/static/api/{android,ios}. - Builds the Docusaurus site (
npm ci && npm run build). - Uploads the result and deploys to GitHub Pages.
The workflow file is
.github/workflows/docs.yml.
One-time setup
Enable Pages for the repository:
- Settings → Pages → Build and deployment → Source: GitHub Actions.
- Push to
master(or run the workflow manually). The site publishes tohttps://massif-maps.github.io/MassifMaps/.
Versioned docs (optional)
Docusaurus supports versioned docs. To snapshot the current docs for a release tag:
cd website
npm run docusaurus docs:version 5.0.0
This freezes docs/ into versioned_docs/version-5.0.0/ and adds a version dropdown. Commit the
snapshot; the workflow will publish all versions. Do this per major/minor release you want to keep
browsable.