Skip to content

Commit 9528e4b

Browse files
committed
Customize for ldap
1 parent 502b9d3 commit 9528e4b

File tree

3 files changed

+29
-72
lines changed

3 files changed

+29
-72
lines changed

antora-playbook.yml

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

antora.yml

Lines changed: 4 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
name: framework
1+
name: ldap
22
version: true
3-
title: Spring Framework Documentation
3+
title: Spring LDAP
44
nav:
55
- modules/ROOT/nav.adoc
66
ext:
77
collector:
88
run:
9-
command: gradlew -q -PbuildSrc.skipTests=true "-Dorg.gradle.jvmargs=-Xmx3g -XX:+HeapDumpOnOutOfMemoryError" :spring-boot-project:spring-boot-docs:generateAntoraResources
9+
command: gradlew -q -PbuildSrc.skipTests=true "-Dorg.gradle.jvmargs=-Xmx3g -XX:+HeapDumpOnOutOfMemoryError" generateAntoraYml
1010
local: true
1111
scan:
1212
dir: ./build/generated-antora-resources
@@ -16,17 +16,4 @@ asciidoc:
1616
attribute-missing: 'warn'
1717
# FIXME: the copyright is not removed
1818
# FIXME: The package is not renamed
19-
chomp: 'all'
20-
import-java: 'example$docs-src/main/java/org/springframework/docs'
21-
spring-framework-main-code: 'https://github.com/spring-projects/spring-framework/tree/main'
22-
docs-site: 'https://docs.spring.io'
23-
docs-spring: "{docs-site}/spring-framework/docs/{spring-version}"
24-
docs-spring-framework: '{docs_site}/spring-framework/docs/{spring-version}'
25-
api-spring-framework: '{docs-spring-framework}/javadoc-api/org/springframework'
26-
docs-graalvm: 'https://www.graalvm.org/22.3/reference-manual'
27-
docs-spring-boot: '{docs-site}/spring-boot/docs/current/reference'
28-
docs-spring-gemfire: '{docs_site}/spring-gemfire/docs/current/reference'
29-
docs-spring-security: '{docs_site}/spring-security/reference'
30-
gh-rsocket: 'https://github.com/rsocket'
31-
gh-rsocket-extensions: '{gh-rsocket}/rsocket/blob/master/Extensions'
32-
gh-rsocket-java: '{gh-rsocket}/rsocket-java{gh-rsocket}/rsocket-java'
19+
chomp: 'all'

build.gradle

Lines changed: 25 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ buildscript {
1313
}
1414
}
1515

16+
plugins {
17+
id 'io.spring.antora.generate-antora-yml' version '0.0.1'
18+
id 'org.antora' version '1.0.0'
19+
}
20+
1621
apply plugin: 'io.spring.convention.root'
1722
apply plugin: 'io.spring.convention.docs'
1823
apply plugin: 'io.spring.javaformat'
@@ -32,26 +37,27 @@ nohttp {
3237
source.exclude "buildSrc/build/**"
3338
}
3439

35-
asciidoctor {
36-
outputDir = new File("$buildDir/docs")
37-
attributes([
38-
copycss : '',
39-
icons : 'font',
40-
'source-highlighter': 'prettify',
41-
sectanchors : '',
42-
toc2: '',
43-
idprefix: '',
44-
idseparator: '-',
45-
doctype: 'book',
46-
numbered: '',
47-
'spring-ldap-version' : project.version,
48-
revnumber : project.version
49-
])
50-
options = [
51-
eruby: 'erubis'
52-
]
40+
41+
antora {
42+
playbook = 'cached-antora-playbook.yml'
43+
playbookProvider {
44+
repository = 'spring-projects/spring-ldap'
45+
branch = 'docs-build'
46+
path = 'lib/antora/templates/per-branch-antora-playbook.yml'
47+
checkLocalBranch = true
48+
}
49+
options = [clean: true, fetch: !project.gradle.startParameter.offline, stacktrace: true]
50+
}
51+
52+
53+
54+
tasks.named("generateAntoraYml") {
55+
asciidocAttributes = project.provider( {
56+
return ['project-version': project.version]
57+
} )
5358
}
5459

60+
5561
s101 {
5662
configurationDirectory = project.file("etc/s101")
5763
}
@@ -60,7 +66,7 @@ allprojects {
6066
if (!['spring-ldap-bom', 'spring-security-docs'].contains(project.name)) {
6167
apply plugin: 'io.spring.javaformat'
6268
apply plugin: 'checkstyle'
63-
69+
6470
pluginManager.withPlugin("io.spring.convention.checkstyle", { plugin ->
6571
configure(plugin) {
6672
dependencies {

0 commit comments

Comments
 (0)