Skip to content

Commit c82a050

Browse files
committed
[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.
1 parent 97f6e97 commit c82a050

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

docs/Versions.asciidoc

+10
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

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ include::ingest.asciidoc[]
4040

4141
include::ilm/index.asciidoc[]
4242

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

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

0 commit comments

Comments
 (0)