Update Antora
Issue gh-2327
This commit is contained in:
9
lib/antora/extensions/fix-component-name-display.js
Normal file
9
lib/antora/extensions/fix-component-name-display.js
Normal file
@@ -0,0 +1,9 @@
|
||||
'use strict'
|
||||
|
||||
module.exports.register = function () {
|
||||
this.once('contentAggregated', ({ contentAggregate }) => {
|
||||
contentAggregate.forEach((componentVersionBucket) => {
|
||||
Object.assign(componentVersionBucket, { name: 'session', display: 'Spring Session', title: 'Spring Session' })
|
||||
})
|
||||
})
|
||||
}
|
||||
@@ -9,7 +9,8 @@ const TASK_NAME=':spring-session-docs:generateAntora'
|
||||
* Set of tags that contain a collector config, but the antora command fails on GitHub Actions.
|
||||
*/
|
||||
const VERSIONS_TO_OVERRIDE = [
|
||||
'6.0.0-RC1'
|
||||
'2.6.3',
|
||||
'2.7.2',
|
||||
]
|
||||
|
||||
/**
|
||||
|
||||
@@ -8,6 +8,9 @@ module.exports.register = function () {
|
||||
componentVersionBucket.version += componentVersionBucket.prerelease
|
||||
componentVersionBucket.prerelease = true
|
||||
}
|
||||
if (componentVersionBucket.version === '2.7.2') {
|
||||
delete componentVersionBucket.prerelease
|
||||
}
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user