Skip to content

Commit 60287c7

Browse files
committed
Migrate docs to spring-asciidoctor-backends
- Use io.spring.asciidoctor.backends:spring-asciidoctor-backends:0.0.5 - Backport #722 - Fixes #723
1 parent efe8d56 commit 60287c7

File tree

1 file changed

+10
-68
lines changed

1 file changed

+10
-68
lines changed

spring-shell-docs/pom.xml

Lines changed: 10 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@
1414
<description>Spring Shell reference documentation</description>
1515
<properties>
1616
<asciidoctor.maven.plugin.version>2.2.2</asciidoctor.maven.plugin.version>
17-
<asciidoctorj.pdf.version>1.5.4</asciidoctorj.pdf.version>
18-
<asciidoctorj.epub.version>1.5.1</asciidoctorj.epub.version>
17+
<spring-asciidoctor-backends.version>0.0.5</spring-asciidoctor-backends.version>
1918
<asciidoctorj.version>2.5.1</asciidoctorj.version>
2019
<jruby.version>9.2.17.0</jruby.version>
2120
<spring-doc-resources.version>0.2.5</spring-doc-resources.version>
@@ -152,83 +151,23 @@
152151
<version>${asciidoctor.maven.plugin.version}</version>
153152
<dependencies>
154153
<dependency>
155-
<groupId>org.asciidoctor</groupId>
156-
<artifactId>asciidoctorj-pdf</artifactId>
157-
<version>${asciidoctorj.pdf.version}</version>
158-
</dependency>
159-
<dependency>
160-
<groupId>org.asciidoctor</groupId>
161-
<artifactId>asciidoctorj-epub3</artifactId>
162-
<version>${asciidoctorj.epub.version}</version>
154+
<groupId>io.spring.asciidoctor.backends</groupId>
155+
<artifactId>spring-asciidoctor-backends</artifactId>
156+
<version>${spring-asciidoctor-backends.version}</version>
163157
</dependency>
164158
</dependencies>
165159
<executions>
166160
<execution>
167-
<id>generate-html</id>
168-
<phase>generate-resources</phase>
161+
<id>generate-html-documentation</id>
162+
<phase>prepare-package</phase>
169163
<goals>
170164
<goal>process-asciidoc</goal>
171165
</goals>
172166
<configuration>
173-
<backend>html5</backend>
174-
<attributes>
175-
<source-highlighter>highlight.js</source-highlighter>
176-
<project-version>${project.version}</project-version>
177-
<project-artifactId>${project.artifactId}</project-artifactId>
178-
<toc>left</toc>
179-
<toc-levels>4</toc-levels>
180-
<sectanchors>true</sectanchors>
181-
<sectnums />
182-
<docinfo>shared</docinfo>
183-
<stylesdir>css/</stylesdir>
184-
<stylesheet>spring.css</stylesheet>
185-
<linkcss>true</linkcss>
186-
<icons>font</icons>
187-
<highlightjsdir>js/highlight</highlightjsdir>
188-
<highlightjs-theme>github</highlightjs-theme>
189-
</attributes>
167+
<backend>spring-html</backend>
190168
</configuration>
191169
</execution>
192170

193-
<execution>
194-
<id>generate-pdf</id>
195-
<phase>generate-resources</phase>
196-
<goals>
197-
<goal>process-asciidoc</goal>
198-
</goals>
199-
<configuration>
200-
<outputDirectory>${project.build.directory}/site/reference/pdf</outputDirectory>
201-
<backend>pdf</backend>
202-
<sourceHighlighter>coderay</sourceHighlighter>
203-
<attributes>
204-
<project-version>${project.version}</project-version>
205-
<project-artifactId>${project.artifactId}</project-artifactId>
206-
<icons>font</icons>
207-
<pagenums />
208-
<sectnums />
209-
<toc />
210-
</attributes>
211-
</configuration>
212-
</execution>
213-
<execution>
214-
<id>generate-epub</id>
215-
<phase>generate-resources</phase>
216-
<goals>
217-
<goal>process-asciidoc</goal>
218-
</goals>
219-
<configuration>
220-
<backend>epub3</backend>
221-
<sourceHighlighter>coderay</sourceHighlighter>
222-
<attributes>
223-
<project-version>${project.version}</project-version>
224-
<project-artifactId>${project.artifactId}</project-artifactId>
225-
<icons>font</icons>
226-
<pagenums />
227-
<sectnums />
228-
<toc />
229-
</attributes>
230-
</configuration>
231-
</execution>
232171
</executions>
233172

234173
<configuration>
@@ -237,13 +176,16 @@
237176
<doctype>book</doctype>
238177
<attributes>
239178
<version>${project.version}</version>
179+
<project-version>${project.version}</project-version>
240180
<projectName>${project.name}</projectName>
241181
<projectVersion>${project.version}</projectVersion>
242182
<snippets>${project.build.directory}/refdocs/snippets/</snippets>
243183
<allow-uri-read>true</allow-uri-read>
184+
<toc>left</toc>
244185
<toclevels>4</toclevels>
245186
<numbered>true</numbered>
246187
<baseDir>${project.basedir}</baseDir>
188+
<starter-artifactId>org.springframework.shell:spring-shell-starter</starter-artifactId>
247189
</attributes>
248190
</configuration>
249191

0 commit comments

Comments
 (0)