Skip to content

Commit c8342fc

Browse files
committed
Use antora-extensions 1.10.0
1 parent 1b0c4d6 commit c8342fc

File tree

4 files changed

+53
-7
lines changed

4 files changed

+53
-7
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,5 @@ s101plugin.state
2828

2929
!.idea/checkstyle-idea.xml
3030
!.idea/externalDependencies.xml
31+
32+
node_modules

docs/antora-playbook.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
antora:
2+
extensions:
3+
- require: '@springio/antora-extensions'
4+
root_component_name: 'security'
5+
site:
6+
title: Spring Security
7+
url: https://docs.spring.io/spring-security/reference
8+
robots: allow
9+
git:
10+
ensure_git_suffix: false
11+
content:
12+
sources:
13+
- url: https://github.com/spring-projects/spring-security
14+
branches: [main, '5.{{6..9},{1..9}+({0..9})}.x', '6.+({0..9}).x']
15+
tags: ['5.{{6..9},{1..9}+({0..9})}.{0..99}?(-RC+({0..9}))', '6.+({0..9}).+({0..9})?(-{RC,M}*)','!(5.6.{0..10}*)', '!(5.7.{0..8}*)', '!(5.8.{0..3}?({-RC,-M}+({0..9})))','!(6.0.{0..3}*)','!(6.1.0*)']
16+
start_path: docs
17+
asciidoc:
18+
attributes:
19+
page-stackoverflow-url: https://stackoverflow.com/tags/spring-security
20+
page-related-doc-categories: security
21+
page-related-doc-projects: framework,graphql
22+
hide-uri-scheme: '@'
23+
tabs-sync-option: '@'
24+
extensions:
25+
- '@asciidoctor/tabs'
26+
- '@springio/asciidoctor-extensions'
27+
urls:
28+
latest_version_segment_strategy: redirect:to
29+
latest_version_segment: ''
30+
redirect_facility: httpd
31+
ui:
32+
bundle:
33+
url: https://github.com/spring-io/antora-ui-spring/releases/download/v0.4.11/ui-bundle.zip
34+
snapshot: true
35+
runtime:
36+
log:
37+
failure_level: warn

docs/package.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"dependencies": {
3+
"antora": "3.2.0-alpha.4",
4+
"@antora/atlas-extension": "1.0.0-alpha.2",
5+
"@antora/collector-extension": "1.0.0-alpha.3",
6+
"@asciidoctor/tabs": "1.0.0-beta.6",
7+
"@springio/antora-extensions": "1.10.0",
8+
"@springio/asciidoctor-extensions": "1.0.0-alpha.10"
9+
}
10+
}

docs/spring-security-docs.gradle

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,11 @@ apply plugin: 'io.spring.convention.docs'
77
apply plugin: 'java'
88

99
antora {
10-
playbook = 'cached-antora-playbook.yml'
11-
playbookProvider {
12-
repository = 'spring-projects/spring-security'
13-
branch = 'docs-build'
14-
path = 'lib/antora/templates/per-branch-antora-playbook.yml'
15-
checkLocalBranch = true
16-
}
1710
options = [clean: true, fetch: !project.gradle.startParameter.offline, stacktrace: true]
11+
environment = [
12+
'BUILD_REFNAME': 'HEAD',
13+
'BUILD_VERSION': project.version,
14+
]
1815
}
1916

2017
tasks.named("generateAntoraYml") {

0 commit comments

Comments
 (0)