Fix 2.6.2 reference docs

Closes gh-2035
This commit is contained in:
Eleftheria Stein
2022-02-22 15:43:37 +01:00
parent 14756984fd
commit 1b18d64220
2 changed files with 16 additions and 0 deletions

View File

@@ -22,5 +22,6 @@ ui:
pipeline:
extensions:
- require: ./antora/extensions/version-fix.js
- require: ./antora/extensions/major-minor-segment.js
- require: ./antora/extensions/root-component-name.js

View File

@@ -0,0 +1,15 @@
'use strict'
module.exports.register = (pipeline, { config }) => {
pipeline.on('contentAggregated', ({ contentAggregate }) => {
contentAggregate.forEach(aggregate => {
if (aggregate.version === "2.6.2" &&
aggregate.prerelease == "-SNAPSHOT") {
aggregate.version = "2.6.2"
aggregate.displayVersion = `${aggregate.version}`
delete aggregate.prerelease
}
})
})
}