Skip to content

Commit b5fa9e8

Browse files
committed
Fix the non-index pages
1 parent 80d16ec commit b5fa9e8

File tree

4 files changed

+28
-6
lines changed

4 files changed

+28
-6
lines changed

build-tools-internal/src/main/resources/templates/breaking-changes.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,19 @@ If you are migrating from a version prior to version 9.0, you must first upgrade
1414
<%
1515
for(bundle in changelogBundles) {
1616
def version = bundle.version
17-
def versionWithoutSeparator = bundle.versionWithoutSeparator
17+
def versionForIds = bundle.version.toString().equals('9.0.0') ? bundle.versionWithoutSeparator : bundle.version
1818
def changelogsByTypeByArea = bundle.changelogsByTypeByArea
1919
def unqualifiedVersion = bundle.unqualifiedVersion
20+
def coming = !bundle.bundle.released
21+
22+
if (coming) {
23+
print "\n"
24+
print "```{applies_to}\n"
25+
print "stack: coming ${version}\n"
26+
print "```"
27+
}
2028
%>
21-
## ${unqualifiedVersion} [elasticsearch-${versionWithoutSeparator}-breaking-changes]
29+
## ${unqualifiedVersion} [elasticsearch-${versionForIds}-breaking-changes]
2230
<%
2331
if (!changelogsByTypeByArea['breaking']) {
2432
print "\nNo breaking changes in this version.\n"

build-tools-internal/src/main/resources/templates/deprecations.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,19 @@ To give you insight into what deprecated features you’re using, {{es}}:
1818
<%
1919
for(bundle in changelogBundles) {
2020
def version = bundle.version
21-
def versionWithoutSeparator = bundle.versionWithoutSeparator
21+
def versionForIds = bundle.version.toString().equals('9.0.0') ? bundle.versionWithoutSeparator : bundle.version
2222
def changelogsByTypeByArea = bundle.changelogsByTypeByArea
2323
def unqualifiedVersion = bundle.unqualifiedVersion
24+
def coming = !bundle.bundle.released
25+
26+
if (coming) {
27+
print "\n"
28+
print "```{applies_to}\n"
29+
print "stack: coming ${version}\n"
30+
print "```"
31+
}
2432
%>
25-
## ${unqualifiedVersion} [elasticsearch-${versionWithoutSeparator}-deprecations]
33+
## ${unqualifiedVersion} [elasticsearch-${versionForIds}-deprecations]
2634
<%
2735
if (!changelogsByTypeByArea['deprecation']) {
2836
print "\nNo deprecations in this version.\n"

docs/release-notes/breaking-changes.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@ If you are migrating from a version prior to version 9.0, you must first upgrade
1212

1313
% ## Next version [elasticsearch-nextversion-breaking-changes]
1414

15-
## 9.0.1 [elasticsearch-901-breaking-changes]
15+
```{applies_to}
16+
stack: coming 9.0.1
17+
```
18+
## 9.0.1 [elasticsearch-9.0.1-breaking-changes]
1619

1720
No breaking changes in this version.
1821

docs/release-notes/deprecations.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,10 @@ To give you insight into what deprecated features you’re using, {{es}}:
1616

1717
% ## Next version [elasticsearch-nextversion-deprecations]
1818

19-
## 9.0.1 [elasticsearch-901-deprecations]
19+
```{applies_to}
20+
stack: coming 9.0.1
21+
```
22+
## 9.0.1 [elasticsearch-9.0.1-deprecations]
2023

2124
No deprecations in this version.
2225

0 commit comments

Comments
 (0)