Add Spring Security 5.6.0-RC1
This commit is contained in:
parent
a3e658872c
commit
c93595969e
|
@ -7,9 +7,10 @@ asciidoc:
|
|||
content:
|
||||
sources:
|
||||
- url: https://github.com/spring-io/spring-generated-docs
|
||||
branches: [spring-projects/spring-security/*]
|
||||
branches: [spring-projects/spring-security/main,spring-projects/spring-security/*.x,spring-projects/spring-security/*-RC*,spring-projects/spring-security/*-M*]
|
||||
- url: https://github.com/spring-projects/spring-security
|
||||
branches: [main,5.6.x]
|
||||
tags: [5.6.0-RC1]
|
||||
start_path: docs
|
||||
urls:
|
||||
latest_version_segment_strategy: redirect:to
|
||||
|
@ -22,5 +23,6 @@ ui:
|
|||
|
||||
pipeline:
|
||||
extensions:
|
||||
- require: ./antora/extensions/version-fix.js
|
||||
- require: ./antora/extensions/major-minor-segment.js
|
||||
- require: ./antora/extensions/root-component-name.js
|
||||
|
|
|
@ -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;
|
||||
}
|
Loading…
Reference in New Issue