Skip to content

Commit 96e5e67

Browse files
committed
Update to Antora 3.0.0
1 parent d5483f7 commit 96e5e67

File tree

5 files changed

+7
-49
lines changed

5 files changed

+7
-49
lines changed

docs/antora-playbook.yml

+1-2
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@ ui:
2121
url: https://github.com/spring-io/antora-ui-spring/releases/download/latest/ui-bundle.zip
2222
snapshot: true
2323

24-
pipeline:
24+
antora:
2525
extensions:
2626
- require: ./antora/extensions/version-fix.js
2727
- require: ./antora/extensions/major-minor-segment.js
28-
- require: ./antora/extensions/root-component-name.js

docs/antora/extensions/major-minor-segment.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33

44
const { posix: path } = require('path')
55

6-
module.exports.register = (pipeline, { config }) => {
7-
pipeline.on('contentClassified', ({ contentCatalog }) => {
6+
module.exports.register = function({ config }) {
7+
this.on('contentClassified', ({ contentCatalog }) => {
88
contentCatalog.getComponents().forEach(component => {
99
const componentName = component.name;
1010
const generationToVersion = new Map();
@@ -197,4 +197,4 @@ function no_data(key, value) {
197197
return value ? "__data__" : value;
198198
}
199199
return value;
200-
}
200+
}

docs/antora/extensions/root-component-name.js

-40
This file was deleted.

docs/antora/extensions/version-fix.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@
22
'use strict'
33

44

5-
module.exports.register = (pipeline, { config }) => {
6-
7-
pipeline.on('contentAggregated', ({ contentAggregate }) => {
5+
module.exports.register = function({ config }) {
6+
this.on('contentAggregated', ({ contentAggregate }) => {
87
contentAggregate.forEach(aggregate => {
98
if (aggregate.name === "" && aggregate.displayVersion === 5.6) {
109
aggregate.name = "ROOT";

docs/spring-security-docs.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ apply plugin: 'io.spring.convention.docs'
77
apply plugin: 'java'
88

99
antora {
10-
antoraVersion = "3.0.0-alpha.8"
10+
antoraVersion = "3.0.0"
1111
arguments = ["--fetch", "--stacktrace"]
1212
}
1313

0 commit comments

Comments
 (0)