Release a new documentation version
When a new version of the Elastic Stack (or another versioned product) is released, the docs site must be updated to recognize it. This process primarily involves updating version metadata in the shared site configuration.
Generally, each release requires the following people:
- A member of the docs team to perform release prep
- A member of the docs engineering team to support publishing those changes to staging and prod.
Before you start your release, you should identify who from each of these teams will facilitate the release.
Follow these steps to release a new documentation version. There are two phases to releasing a new version:
- Release prep: Prepare the relevant docs-builder changes. This can be done anytime before release day, and can be performed by any member of the docs team.
- Release day activities: Merge your changes and push them to our staging and production environments. These steps must be performed on release day, and require support from docs engineering.
Anytime before release day, you can prepare the release-related changes. These changes can be bundled into a single PR.
Do not merge these changes until release day.
-
[docs-builder PR] Update
versions.ymlThis action can be performed by any member of the docs team. It's also automated for many products.
The
versions.ymlfile defines the base (minimum) and current (latest) versions of each versioned product family.Example:
versioning_systems: stack: &stack base: 9.0 current: 9.1.0- Update the
currentversion to reflect the newly released version. - Only update the
baseversion if you're dropping support for an older version.
Refer to
versions.ymlfor more information. - Update the
-
[docs-builder PR] (Optional) Bump the version branch
This action can be performed by any member of the docs team.
If you use the tagged branching strategy, and your release corresponds with a new branch in the repository that holds your documentation, then you also need to bump the
currentandnextbranch in the docs configuration.This step is not always required, depending on your branching strategy. For example, if you only have branches for major versions of your product (e.g. 1 and 2), and you're already publishing your docs from the
1branch, then you don't need to bump the version branch to release version 1.2 or 1.2.3 of your documentation.In
assembler.yml, specifying the newcurrentandnextbranches for your repository:your-product: current: 1.1 next: 1.2Some people use
mainormasterfor theirnextbranch. In this case, thenextvalue doesn't need to be changed.Tag the PR with the
cilabel. After CI runs, confirm that the intended version branches are publishing to the link service. When links are being published as intended, they can be found at the following URL, where repo is your repo name and branch is your newly configured branch:elastic-docs-link-index.s3.us-east-2.amazonaws.com/elastic/<repo>/<branch>/links.jsonRerun the
validate-assemblercheck on the PR.
-
[docs-builder PR] (Optional) Update legacy URL mappings
This action can be performed by any member of the docs team.
If you're releasing a version older than the current
base, or restoring support for a previously removed version, you may need to update thelegacy-url-mappings.ymlfile.This file maps legacy URL paths (like
en/elasticsearch/reference/) to the list of versions that exist at that path.For example, to release the 8.19 version of the Elastic Stack, update the
stackversions array to include the new version number:- stack: &stack [ '8.19', '8.18', '8.17', ... ]See
legacy-url-mappings.ymlfor more information.
Merge your changes and push them to our staging and production environments on release day.
-
[docs-builder PR] Merge the config change
Merge the
versions.ymlchanges and any assembler and legacy URL mapping changes. Anyone from the docs team can merge the PR, but it must be approved by docs engineering or docs tech leads.Optionally, docs engineering or docs tech leads can invoke the Synchronize version & config updates action manually on
docs-internal-workflows, which opens two configuration update PRs:stagingandprod.This action also runs on a cron job, but can be triggered manually if the change is time-sensitive.
-
Merge the config change to staging
This action must be performed by docs engineering.
Approve and merge the
stagingconfiguration update PR.Optionally, manually invoke the release automation to staging.
This action also runs on a cron job, but can be triggered manually if the change is time-sensitive.
Before you merge the config change to prod in the next step, make sure that the workflow run is green and wait for 10 to 15 minutes for any alerts to be raised.
-
Merge the config change to prod and release to production
This action must be performed by docs engineering.
- Approve and merge the
prodconfiguration update PR. - Manually invoke the release automation to production. Monitor it to make sure that it's green.
- Let the requester or docs release coordinator know the docs have been updated.
- Approve and merge the
-
Confirm
applies_tometadataCumulative documentation relies on version metadata through
applies_toblocks, which use version definitions inversions.yml.Check the built output to ensure
applies_tochanges are correctly rendering.