This document describes how to perform a docs release. In general, this should be done by one of the release managers in the list at https://github.com/knative/release.
To release a new version of the docs you must:
You cannot release a new version of the docs until the Knative components have built their new release. This is because the website references these releases in various locations.
Check the following components for the new release:
-
Check on the
#docs
Slack channel to make sure the release is ready. In the future, we should automate this so the check isn't needed. -
Using the GitHub UI, create a
release-X.Y
branch based onmain
.
To generate the new version of the docs, you must update the hack/build.sh
script in the main branch to reference the new release.
We keep the last 4 releases available per our support window.
To generate the new docs version:
-
In
hack/build.sh
on the main branch, updateVERSIONS
andRELEASE_BRANCHES
to include the new version, and remove the oldest. Order matters, most recent first.For example:
VERSIONS=("1.2" "1.1" "1.0" "0.26") RELEASE_BRANCHES=("knative-v1.2.0" "knative-v1.1.0" "knative-v1.0.0" "v0.26.0")
-
PR the result to main.
TODO: add information about how the docs are built and served using Netlify