Skip to content

Commit 9d09796

Browse files
committed
[DOCS] Include docs on permanently unreleased branches only (elastic#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.
1 parent bc7aff9 commit 9d09796

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

docs/Versions.asciidoc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,16 @@ endif::[]
5858
:javadoc-license: {rest-high-level-client-javadoc}/org/elasticsearch/protocol/xpack/license
5959
:javadoc-watcher: {rest-high-level-client-javadoc}/org/elasticsearch/protocol/xpack/watcher
6060

61+
///////
62+
Permanently unreleased branches (master, n.X)
63+
///////
64+
ifeval::["{source_branch}"=="master"]
65+
:permanently-unreleased-branch:
66+
endif::[]
67+
ifeval::["{source_branch}"=="{major-version}"]
68+
:permanently-unreleased-branch:
69+
endif::[]
70+
6171
///////
6272
Shared attribute values are pulled from elastic/docs
6373
///////

docs/reference/index.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ include::ingest.asciidoc[]
4444

4545
include::ilm/index.asciidoc[]
4646

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

4949
include::autoscaling/index.asciidoc[]
5050

0 commit comments

Comments
 (0)