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.
Follow these steps to release a new documentation version.
-
Update
versions.ymlThe
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
-
(Optional) Update legacy URL mappings
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 [ '9.0+', '8.19', '8.18', '8.17', ... ]ImportantThe first version in the
mappingslist is treated as the "current" version in documentation version dropdown.See
legacy-url-mappings.ymlfor more information. -
Release a new version of docs-builder
Version updates and content set additions require a release of docs-builder. Contact the Docs Eng team for assistance.
-
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.