See https://github.com/bpftrace/website for instructions on working with a Docusaurus site.
The docs directory holds documentation for the in-development, unreleased bpftrace version. It should regularly pull in the docs from the bpftrace source repository.
The versioned_docs directory holds snapshots of the docs from each released version. The latest version should be duplicated as both version-x.y and version-latest, to facilitate permalinks.
- Update the versioned documentation snapshots:
rm -rf versioned_docs/version-latest
cp -r docs versioned_docs/version-latest
cp -r docs versioned_docs/version-x.y
- Add the new version to
versions.json, directly underneath"latest". - In
docusaurus.config.js, update the version number inconfig.presets.docs.versionsto refer to the new release.