Skip to content

Commit 9a643c8

Browse files
committed
Update to Antora 3.0.1
Closes gh-2038
1 parent 282f774 commit 9a643c8

File tree

6 files changed

+9
-50
lines changed

6 files changed

+9
-50
lines changed

spring-session-docs/antora-playbook.yml

Lines changed: 1 addition & 2 deletions
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

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

Lines changed: 3 additions & 3 deletions
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+
}

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

Lines changed: 0 additions & 40 deletions
This file was deleted.

spring-session-docs/antora/extensions/version-fix.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
'use strict'
22

3-
module.exports.register = (pipeline, { config }) => {
3+
module.exports.register = function({ config }) {
44

5-
pipeline.on('contentAggregated', ({ contentAggregate }) => {
5+
this.on('contentAggregated', ({ contentAggregate }) => {
66
contentAggregate.forEach(aggregate => {
77
if (aggregate.version === "2.6.2" &&
88
aggregate.prerelease == "-SNAPSHOT") {

spring-session-docs/local-antora-playbook.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ ui:
2020
url: https://github.com/spring-io/antora-ui-spring/releases/download/latest/ui-bundle.zip
2121
snapshot: true
2222

23-
pipeline:
23+
antora:
2424
extensions:
25+
- require: ./antora/extensions/version-fix.js
2526
- require: ./antora/extensions/major-minor-segment.js
26-
- require: ./antora/extensions/root-component-name.js

spring-session-docs/spring-session-docs.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ dependencies {
2828
}
2929

3030
antora {
31-
antoraVersion = "3.0.0-alpha.8"
31+
antoraVersion = "3.0.1"
3232
arguments = ["--fetch"]
3333
}
3434

0 commit comments

Comments
 (0)