|
14 | 14 | <description>Spring Shell reference documentation</description> |
15 | 15 | <properties> |
16 | 16 | <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> |
19 | 18 | <asciidoctorj.version>2.5.1</asciidoctorj.version> |
20 | 19 | <jruby.version>9.2.17.0</jruby.version> |
21 | 20 | <spring-doc-resources.version>0.2.5</spring-doc-resources.version> |
|
152 | 151 | <version>${asciidoctor.maven.plugin.version}</version> |
153 | 152 | <dependencies> |
154 | 153 | <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> |
163 | 157 | </dependency> |
164 | 158 | </dependencies> |
165 | 159 | <executions> |
166 | 160 | <execution> |
167 | | - <id>generate-html</id> |
168 | | - <phase>generate-resources</phase> |
| 161 | + <id>generate-html-documentation</id> |
| 162 | + <phase>prepare-package</phase> |
169 | 163 | <goals> |
170 | 164 | <goal>process-asciidoc</goal> |
171 | 165 | </goals> |
172 | 166 | <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> |
190 | 168 | </configuration> |
191 | 169 | </execution> |
192 | 170 |
|
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> |
232 | 171 | </executions> |
233 | 172 |
|
234 | 173 | <configuration> |
|
237 | 176 | <doctype>book</doctype> |
238 | 177 | <attributes> |
239 | 178 | <version>${project.version}</version> |
| 179 | + <project-version>${project.version}</project-version> |
240 | 180 | <projectName>${project.name}</projectName> |
241 | 181 | <projectVersion>${project.version}</projectVersion> |
242 | 182 | <snippets>${project.build.directory}/refdocs/snippets/</snippets> |
243 | 183 | <allow-uri-read>true</allow-uri-read> |
| 184 | + <toc>left</toc> |
244 | 185 | <toclevels>4</toclevels> |
245 | 186 | <numbered>true</numbered> |
246 | 187 | <baseDir>${project.basedir}</baseDir> |
| 188 | + <starter-artifactId>org.springframework.shell:spring-shell-starter</starter-artifactId> |
247 | 189 | </attributes> |
248 | 190 | </configuration> |
249 | 191 |
|
|
0 commit comments