Add Spring Security 5.6.0-RC1

This commit is contained in:
Rob Winch
2021-11-11 15:59:41 -06:00
parent a3e658872c
commit c93595969e
2 changed files with 35 additions and 1 deletions

View File

@@ -0,0 +1,32 @@
// https://gitlab.com/antora/antora/-/issues/132#note_712132072
'use strict'
module.exports.register = (pipeline, { config }) => {
pipeline.on('contentAggregated', ({ contentAggregate }) => {
console.log("version-fix.js")
contentAggregate.forEach(aggregate => {
if (aggregate.name === "" && aggregate.displayVersion === 5.6) {
aggregate.name = "ROOT";
aggregate.version = "5.6.0-RC1"
aggregate.startPage = "ROOT:index.adoc"
aggregate.displayVersion = `${aggregate.version}`
delete aggregate.prerelease
}
out(aggregate);
})
})
}
function out(args) {
console.log(JSON.stringify(args, no_data, 2));
}
function no_data(key, value) {
if (key == "data" || key == "files") {
return value ? "__data__" : value;
}
return value;
}