Skip to content

Commit e157700

Browse files
committed
Update to Antora 3.0.1
Closes gh-2038
1 parent 1b18d64 commit e157700

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
@@ -20,8 +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:
2525
- require: ./antora/extensions/version-fix.js
2626
- require: ./antora/extensions/major-minor-segment.js
27-
- 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
@@ -29,7 +29,7 @@ dependencies {
2929
}
3030

3131
antora {
32-
antoraVersion = "3.0.0-alpha.8"
32+
antoraVersion = "3.0.1"
3333
arguments = ["--fetch"]
3434
}
3535

0 commit comments

Comments
 (0)