|
130 | 130 | <smallrye-mutiny>1.6.0</smallrye-mutiny> |
131 | 131 | <slf4j>1.7.32</slf4j> |
132 | 132 | <spring>6.0.0-SNAPSHOT</spring> |
| 133 | + <spring-asciidoctor-backends.version>0.0.3</spring-asciidoctor-backends.version> |
133 | 134 | <spring-hateoas>2.0.0-M5</spring-hateoas> |
134 | 135 | <spring-plugin>3.0.0-M1</spring-plugin> |
135 | 136 | <servlet-api>5.0.0</servlet-api> |
|
268 | 269 |
|
269 | 270 | <properties> |
270 | 271 | <shared.resources>${project.build.directory}/shared-resources</shared.resources> |
271 | | - <generated-asciidoc-sources.directory>${project.build.directory}/generated-asciidoc-sources/source/ |
272 | | - </generated-asciidoc-sources.directory> |
| 272 | + <generated-asciidoc-sources.directory>${project.build.directory}/generated-asciidoc-sources/source/</generated-asciidoc-sources.directory> |
273 | 273 | <generated-docs.directory>${project.build.directory}/generated-docs</generated-docs.directory> |
274 | 274 | <maven.test.skip>true</maven.test.skip> |
275 | 275 | <aspectj.skip>true</aspectj.skip> |
|
279 | 279 | </properties> |
280 | 280 |
|
281 | 281 | <dependencies> |
282 | | - <dependency> |
283 | | - <groupId>io.spring.docresources</groupId> |
284 | | - <artifactId>spring-doc-resources</artifactId> |
285 | | - <version>0.2.5</version> |
286 | | - <type>zip</type> |
287 | | - <optional>true</optional> |
288 | | - </dependency> |
289 | 282 | <dependency> |
290 | 283 | <groupId>org.springframework.data.build</groupId> |
291 | 284 | <artifactId>spring-data-build-resources</artifactId> |
|
317 | 310 | <groupId>org.apache.maven.plugins</groupId> |
318 | 311 | <artifactId>maven-dependency-plugin</artifactId> |
319 | 312 | <executions> |
320 | | - <execution> |
321 | | - <id>unpack-doc-resources</id> |
322 | | - <goals> |
323 | | - <goal>unpack-dependencies</goal> |
324 | | - </goals> |
325 | | - <phase>generate-resources</phase> |
326 | | - <configuration> |
327 | | - <includeGroupIds>io.spring.docresources</includeGroupIds> |
328 | | - <includeArtifactIds>spring-doc-resources</includeArtifactIds> |
329 | | - <includeTypes>zip</includeTypes> |
330 | | - <excludeTransitive>true</excludeTransitive> |
331 | | - <outputDirectory>${generated-asciidoc-sources.directory}</outputDirectory> |
332 | | - </configuration> |
333 | | - </execution> |
334 | 313 | <execution> |
335 | 314 | <id>unpack-shared-resources</id> |
336 | 315 | <goals> |
|
395 | 374 | </goals> |
396 | 375 | </execution> |
397 | 376 |
|
398 | | - <execution> |
399 | | - <id>create-generated-docs-resources</id> |
400 | | - <phase>process-resources</phase> |
401 | | - <configuration> |
402 | | - <target> |
403 | | - <copy failonerror="false" todir="${generated-asciidoc-sources.directory}/"> |
404 | | - <fileset dir="${project.root}/src/main/asciidoc" includes="**/*.adoc"/> |
405 | | - </copy> |
406 | | - <copy failonerror="false" todir="${generated-asciidoc-sources.directory}/images/"> |
407 | | - <fileset dir="${project.root}/src/main/asciidoc/images"/> |
408 | | - </copy> |
409 | | - |
410 | | - <copy todir="${generated-docs.directory}"> |
411 | | - <fileset dir="${generated-asciidoc-sources.directory}"> |
412 | | - <include name="css/**"/> |
413 | | - <include name="js/**"/> |
414 | | - </fileset> |
415 | | - </copy> |
416 | | - </target> |
417 | | - </configuration> |
418 | | - <goals> |
419 | | - <goal>run</goal> |
420 | | - </goals> |
421 | | - </execution> |
422 | | - |
423 | 377 | <execution> |
424 | 378 | <id>rename-reference-docs</id> |
425 | 379 | <phase>prepare-package</phase> |
426 | 380 | <configuration> |
427 | 381 | <target> |
428 | 382 |
|
429 | 383 | <!-- Copy files for the single-file HTML version --> |
430 | | - <copy failonerror="false" todir="${project.root}/target/site/reference/html/images"> |
431 | | - <fileset dir="${generated-docs.directory}/images"/> |
432 | | - </copy> |
433 | | - |
434 | | - <!-- Copy shared resources. Spring Data ones first to override the ones shared --> |
435 | | - <copy failonerror="false" todir="${project.root}/target/site/reference/html/"> |
436 | | - <fileset dir="${shared.resources}"> |
437 | | - <include name="css/**"/> |
438 | | - <include name="js/**"/> |
439 | | - </fileset> |
440 | | - </copy> |
441 | | - |
442 | | - <copy failonerror="false" todir="${project.root}/target/site/reference/html/"> |
443 | | - <fileset dir="${generated-asciidoc-sources.directory}"> |
| 384 | + <copy failonerror="false" todir="${project.root}/target/site/reference/html"> |
| 385 | + <fileset dir="${generated-docs.directory}"> |
| 386 | + <include name="img/**"/> |
| 387 | + <include name="images/**"/> |
444 | 388 | <include name="css/**"/> |
445 | 389 | <include name="js/**"/> |
| 390 | + <include name="**/*.html"/> |
446 | 391 | </fileset> |
447 | 392 | </copy> |
448 | 393 |
|
449 | | - <copy failonerror="false" todir="${project.root}/target/site/reference/html/"> |
450 | | - <fileset dir="${generated-docs.directory}" includes="*.html"/> |
451 | | - </copy> |
452 | | - |
453 | 394 | <!-- Copy and rename the Epub file --> |
454 | 395 | <copy failonerror="false" file="${generated-docs.directory}/index.pdf" tofile="${project.root}/target/site/reference/pdf/${dist.id}-reference.pdf"/> |
455 | 396 |
|
|
493 | 434 | <goal>process-asciidoc</goal> |
494 | 435 | </goals> |
495 | 436 | <configuration> |
496 | | - <sourceDirectory>${generated-asciidoc-sources.directory}</sourceDirectory> |
497 | 437 | <sourceDocumentName>index.adoc</sourceDocumentName> |
498 | | - <backend>html5</backend> |
| 438 | + <backend>spring-html</backend> |
499 | 439 | <outputDirectory>${generated-docs.directory}</outputDirectory> |
500 | 440 | <attributes> |
501 | 441 | <source-highlighter>highlight.js</source-highlighter> |
|
504 | 444 | <linkcss>true</linkcss> |
505 | 445 | <sectanchors>true</sectanchors> |
506 | 446 | <stylesdir>./css</stylesdir> |
507 | | - <stylesheet>spring.css</stylesheet> |
| 447 | + <stylesheet>site.css</stylesheet> |
508 | 448 | <toc>left</toc> |
509 | 449 | </attributes> |
510 | 450 | </configuration> |
|
532 | 472 | </attributes> |
533 | 473 | </configuration> |
534 | 474 |
|
| 475 | + <dependencies> |
| 476 | + <dependency> |
| 477 | + <groupId>io.spring.asciidoctor.backends</groupId> |
| 478 | + <artifactId>spring-asciidoctor-backends</artifactId> |
| 479 | + <version>${spring-asciidoctor-backends.version}</version> |
| 480 | + </dependency> |
| 481 | + </dependencies> |
535 | 482 | </plugin> |
536 | 483 |
|
537 | 484 | <!-- |
|
0 commit comments