[DOCS] Include docs on permanently unreleased branches only (#51743)

Adds the ability to display docs on permanently unreleased branches,
such as `master` and `7.x`.

Also updates how the autoscaling and EQL docs are included.
Currently, these feature-flag docs would display on any unreleased
branches that contain the changes, such as 7.7.
This commit is contained in:
James Rodewig 2020-02-06 14:44:20 -05:00
parent d1d9c40e71
commit 6fe8f1649b
2 changed files with 11 additions and 1 deletions

View File

@ -58,6 +58,16 @@ endif::[]
:javadoc-license: {rest-high-level-client-javadoc}/org/elasticsearch/protocol/xpack/license
:javadoc-watcher: {rest-high-level-client-javadoc}/org/elasticsearch/protocol/xpack/watcher
///////
Permanently unreleased branches (master, n.X)
///////
ifeval::["{source_branch}"=="master"]
:permanently-unreleased-branch:
endif::[]
ifeval::["{source_branch}"=="{major-version}"]
:permanently-unreleased-branch:
endif::[]
///////
Shared attribute values are pulled from elastic/docs
///////

View File

@ -44,7 +44,7 @@ include::ingest.asciidoc[]
include::ilm/index.asciidoc[]
ifeval::["{release-state}"=="unreleased"]
ifdef::permanently-unreleased-branch[]
include::autoscaling/index.asciidoc[]