-
Notifications
You must be signed in to change notification settings - Fork 24.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[DOCS] Include docs on permanently unreleased branches only #51743
Conversation
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.
Pinging @elastic/es-docs (>docs) |
Pinging @elastic/es-distributed (:Distributed/Autoscaling) |
Pinging @elastic/es-search (:Search/EQL) |
ifeval::["{source_branch}"=="master"] | ||
:permanently-unreleased-branch: | ||
endif::[] | ||
ifeval::["{source_branch}"=="{major-version}"] | ||
:permanently-unreleased-branch: | ||
endif::[] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is messier than preferred, but Asciidoctor does not currently support complex conditions:
asciidoctor/asciidoctor#1786
Thanks @jrodewig. This is a better user experience and prevents the possibility of 404s from search results for this content. |
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.
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.
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 PR was reverted with #52066 as a potential solution for #52050. It was then discovered that this PR and that issue were unrelated. I've re-pushed the original commits for this PR to master and 7.x. This is also reflected in the backport commits comment: |
Adds the ability to display docs on permanently unreleased branches,
such as
master
and7.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
.