Skip to content

Commit 62af000

Browse files
committed
Docs: Fix rendering of APIs that mention version (#41154)
Fixes rendering the `version_qualified` attribute in the docs. This attribute includes `-SNAPSHOT` but does not include `-alpha` or `-beta` and represents the `version` field as returned by `GET /` or `GET /_cat/plugins`. Without this change we just drop the entire line on the floor rather than render it so the output looks bad.
1 parent 3be4136 commit 62af000

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

docs/Versions.asciidoc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
:version: 7.1.0
2+
////
3+
bare_version never includes -alpha or -beta
4+
////
5+
:bare_version: 7.1.0
26
:major-version: 7.x
37
:prev-major-version: 6.x
48
:lucene_version: 8.0.0
@@ -42,6 +46,7 @@ ifeval::["{release-state}"=="unreleased"]
4246
:percolator-client-javadoc: https://snapshots.elastic.co/javadoc/org/elasticsearch/plugin/percolator-client/{version}-SNAPSHOT
4347
:matrixstats-client-javadoc: https://snapshots.elastic.co/javadoc/org/elasticsearch/plugin/aggs-matrix-stats-client/{version}-SNAPSHOT
4448
:rank-eval-client-javadoc: https://snapshots.elastic.co/javadoc/org/elasticsearch/plugin/rank-eval-client/{version}-SNAPSHOT
49+
:version_qualified: {bare_version}-SNAPSHOT
4550
endif::[]
4651

4752
ifeval::["{release-state}"!="unreleased"]
@@ -55,6 +60,7 @@ ifeval::["{release-state}"!="unreleased"]
5560
:percolator-client-javadoc: https://artifacts.elastic.co/javadoc/org/elasticsearch/plugin/percolator-client/{version}
5661
:matrixstats-client-javadoc: https://artifacts.elastic.co/javadoc/org/elasticsearch/plugin/aggs-matrix-stats-client/{version}
5762
:rank-eval-client-javadoc: https://artifacts.elastic.co/javadoc/org/elasticsearch/plugin/rank-eval-client/{version}
63+
:version_qualified: {bare_version}
5864
endif::[]
5965

6066
:javadoc-client: {rest-high-level-client-javadoc}/org/elasticsearch/client

0 commit comments

Comments
 (0)