Fix 2.6.2 reference docs
Closes gh-2035
This commit is contained in:
15
spring-session-docs/antora/extensions/version-fix.js
Normal file
15
spring-session-docs/antora/extensions/version-fix.js
Normal 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
|
||||
}
|
||||
})
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user