Skip to content

Display current release by default on docs.sourcegraph.com and update it on every release

Administrator requested to merge mrn/update-doc-default-branch into main

Created by: mrnugget

This PR does two things:

  1. 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.
  2. It extends the yarn run release release:publish command (that's run as part of a release) to rewrite the "defaultContentBranch" in the docsite config in deploy-sourcegraph-dot-com on every release.

The end result?

  1. docs.sourcegraph.com shows the docs of the current release by default
  2. 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.

Merge request reports

Loading