Display current release by default on docs.sourcegraph.com and update it on every release
Created by: mrnugget
This PR does two things:
- It changes the docs.sourcegraph.com templates to show the current release version ("3.19") as the default in the dropdown menu (when no version is selected) and reorders the items in the dropdown menu.
- It extends the
yarn run release release:publish
command (that's run as part of a release) to rewrite the"defaultContentBranch"
in thedocsite
config indeploy-sourcegraph-dot-com
on every release.
The end result?
- docs.sourcegraph.com shows the docs of the current release by default
- We update docs.sourcegraph.com to the new release when we run
yarn run release release:publish
.
Did I test this?
Yes, I tested the docsite
template changes locally and I ran the yarn run release release:publish
script locally to automatically create this PR https://github.com/sourcegraph/deploy-sourcegraph-dot-com/pull/3254 which I will merge once this PR is merged.