Skip to content

Commit

Permalink
[DOCS] Include docs on permanently unreleased branches only (elastic#…
Browse files Browse the repository at this point in the history
…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.
  • Loading branch information
jrodewig authored Feb 6, 2020
1 parent 3c99964 commit f21b641
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 f21b641

Please sign in to comment.