Skip to content

Commit

Permalink
Update to Antora 3.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
rwinch committed Jan 5, 2022
1 parent d5483f7 commit 96e5e67
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 49 deletions.
3 changes: 1 addition & 2 deletions docs/antora-playbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ ui:
url: https://github.com/spring-io/antora-ui-spring/releases/download/latest/ui-bundle.zip
snapshot: true

pipeline:
antora:
extensions:
- require: ./antora/extensions/version-fix.js
- require: ./antora/extensions/major-minor-segment.js
- require: ./antora/extensions/root-component-name.js
6 changes: 3 additions & 3 deletions docs/antora/extensions/major-minor-segment.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

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

module.exports.register = (pipeline, { config }) => {
pipeline.on('contentClassified', ({ contentCatalog }) => {
module.exports.register = function({ config }) {
this.on('contentClassified', ({ contentCatalog }) => {
contentCatalog.getComponents().forEach(component => {
const componentName = component.name;
const generationToVersion = new Map();
Expand Down Expand Up @@ -197,4 +197,4 @@ function no_data(key, value) {
return value ? "__data__" : value;
}
return value;
}
}
40 changes: 0 additions & 40 deletions docs/antora/extensions/root-component-name.js

This file was deleted.

5 changes: 2 additions & 3 deletions docs/antora/extensions/version-fix.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@
'use strict'


module.exports.register = (pipeline, { config }) => {

pipeline.on('contentAggregated', ({ contentAggregate }) => {
module.exports.register = function({ config }) {
this.on('contentAggregated', ({ contentAggregate }) => {
contentAggregate.forEach(aggregate => {
if (aggregate.name === "" && aggregate.displayVersion === 5.6) {
aggregate.name = "ROOT";
Expand Down
2 changes: 1 addition & 1 deletion docs/spring-security-docs.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ apply plugin: 'io.spring.convention.docs'
apply plugin: 'java'

antora {
antoraVersion = "3.0.0-alpha.8"
antoraVersion = "3.0.0"
arguments = ["--fetch", "--stacktrace"]
}

Expand Down

0 comments on commit 96e5e67

Please sign in to comment.