1
1
configurations {
2
- asciidoctorExt
2
+ asciidoctorExtensions
3
3
}
4
4
5
5
dependencies {
6
- asciidoctorExt( " io.spring.asciidoctor:spring-asciidoctor-extensions-block-switch :0.5.0 " )
6
+ asciidoctorExtensions " io.spring.asciidoctor.backends :spring-asciidoctor-backends :0.0.3 "
7
7
}
8
8
9
9
repositories {
10
10
maven {
11
11
url " https://repo.spring.io/release"
12
- mavenContent {
13
- includeGroup " io.spring.asciidoctor"
14
- }
15
12
}
16
13
}
17
14
@@ -68,20 +65,6 @@ pluginManager.withPlugin("kotlin") {
68
65
}
69
66
}
70
67
71
- task downloadResources (type : Download ) {
72
- def version = " 0.2.5"
73
- src " https://repo.spring.io/release/io/spring/docresources/" +
74
- " spring-doc-resources/$version /spring-doc-resources-${ version} .zip"
75
- dest project. file(" $buildDir /docs/spring-doc-resources.zip" )
76
- onlyIfModified true
77
- useETag " all"
78
- }
79
-
80
- task extractDocResources (type : Copy , dependsOn : downloadResources) {
81
- from project. zipTree(downloadResources. dest);
82
- into " $buildDir /docs/spring-docs-resources/"
83
- }
84
-
85
68
asciidoctorj {
86
69
def docRoot = ' https://docs.spring.io'
87
70
def docsSpringFramework = " ${ docRoot} /spring-framework/docs/${ project.version} "
@@ -115,17 +98,19 @@ asciidoctorj {
115
98
*/
116
99
asciidoctor {
117
100
baseDirFollowsSourceDir()
118
- configurations ' asciidoctorExt '
101
+ configurations " asciidoctorExtensions "
119
102
sources {
120
103
include ' *.adoc'
121
104
}
122
105
outputDir " $buildDir /docs/ref-docs/html5"
106
+ outputOptions {
107
+ backends " spring-html"
108
+ }
123
109
logDocuments = true
124
110
resources {
125
111
from(sourceDir) {
126
112
include ' images/*.png' , ' css/**' , ' js/**'
127
113
}
128
- from extractDocResources
129
114
}
130
115
}
131
116
@@ -135,7 +120,7 @@ asciidoctor {
135
120
*/
136
121
asciidoctorPdf {
137
122
baseDirFollowsSourceDir()
138
- configurations ' asciidoctorExt '
123
+ configurations ' asciidoctorExtensions '
139
124
sources {
140
125
include ' *.adoc'
141
126
}
0 commit comments