Skip to content

Commit

Permalink
[DOCS] Include docs on permanently unreleased branches only (#51743)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jrodewig committed Feb 11, 2020
1 parent 97f6e97 commit c82a050
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions docs/Versions.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -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
///////
Expand Down
2 changes: 1 addition & 1 deletion docs/reference/index.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ include::ingest.asciidoc[]

include::ilm/index.asciidoc[]

ifeval::["{release-state}"=="unreleased"]
ifdef::permanently-unreleased-branch[]

include::autoscaling/index.asciidoc[]

Expand Down

0 comments on commit c82a050

Please sign in to comment.