Description
Currently, bumping doc versions for a release is a manual process that requires updates in multiple repos. We also have to update the version attributes when new branches are cut. It's easy to miss a step or fat-finger a change and end up with bad links that we either don't know about or that end up breaking the build weeks later.
We can do a couple things to make this easier & less error prone:
-
Isolate the doc version related attribute definitions for each product in separate files. These version files should live in the docs directory for each product. That way, they're versioned along with the rest of the docs and you don't have to go hunting in a separate repo to see what your doc version is set to. Elasticsearch and Beats already do this. We need to move the Logstash version attributes out of the index file & update X-Pack and Kibana to use local version files instead of the shared files in the docs repo.
-
Create a script we (anyone) can use to bump the versions. The script should allow bumping the versions in all of the repos, or just selected repos. Something like:
bump-versions --branch 5.6 --version 5.6.4 --repo all
bump-versions --branch 6.x --major 6.x --version 6.1.0 --state unreleased --repo logstash