|
1442 | 1442 | <artifactId>asciidoctor-maven-plugin</artifactId>
|
1443 | 1443 | <configuration>
|
1444 | 1444 | <sourceDirectory>${refdocs.build.directory}</sourceDirectory>
|
1445 |
| - <outputDirectory>${project.build.directory}/generated-docs/reference/html</outputDirectory> |
| 1445 | + <resources> |
| 1446 | + <resource> |
| 1447 | + <directory>${refdocs.build.directory}</directory> |
| 1448 | + <excludes> |
| 1449 | + <exclude>**/*.*adoc</exclude> |
| 1450 | + </excludes> |
| 1451 | + </resource> |
| 1452 | + </resources> |
1446 | 1453 | <attributes>
|
1447 | 1454 | <spring-boot-docs-version>${revision}</spring-boot-docs-version>
|
1448 | 1455 | <spring-boot-repo>${spring-boot-repo}</spring-boot-repo>
|
|
1465 | 1472 | </goals>
|
1466 | 1473 | <configuration>
|
1467 | 1474 | <backend>html5</backend>
|
| 1475 | + <sourceDocumentExtensions> |
| 1476 | + <sourceDocumentExtension>adoc</sourceDocumentExtension> |
| 1477 | + <sourceDocumentExtension>htmladoc</sourceDocumentExtension> |
| 1478 | + </sourceDocumentExtensions> |
| 1479 | + <outputDirectory>${project.build.directory}/generated-docs/reference/html</outputDirectory> |
1468 | 1480 | <sourceHighlighter>highlight.js</sourceHighlighter>
|
1469 | 1481 | <doctype>book</doctype>
|
1470 | 1482 | <attributes>
|
|
1478 | 1490 | </attributes>
|
1479 | 1491 | </configuration>
|
1480 | 1492 | </execution>
|
| 1493 | + <execution> |
| 1494 | + <id>generate-htmlsingle-documentation</id> |
| 1495 | + <phase>prepare-package</phase> |
| 1496 | + <goals> |
| 1497 | + <goal>process-asciidoc</goal> |
| 1498 | + </goals> |
| 1499 | + <configuration> |
| 1500 | + <backend>html5</backend> |
| 1501 | + <sourceDocumentExtensions> |
| 1502 | + <sourceDocumentExtension>htmlsingleadoc</sourceDocumentExtension> |
| 1503 | + </sourceDocumentExtensions> |
| 1504 | + <outputDirectory>${project.build.directory}/generated-docs/reference/htmlsingle</outputDirectory> |
| 1505 | + <sourceHighlighter>highlight.js</sourceHighlighter> |
| 1506 | + <doctype>book</doctype> |
| 1507 | + <attributes> |
| 1508 | + <highlightjsdir>js/highlight</highlightjsdir> |
| 1509 | + <highlightjs-theme>atom-one-dark-reasonable</highlightjs-theme> |
| 1510 | + <linkcss>true</linkcss> |
| 1511 | + <imagesdir>./images</imagesdir> |
| 1512 | + <icons>font</icons> |
| 1513 | + <stylesdir>css/</stylesdir> |
| 1514 | + <stylesheet>spring.css</stylesheet> |
| 1515 | + </attributes> |
| 1516 | + </configuration> |
| 1517 | + </execution> |
| 1518 | + <execution> |
| 1519 | + <id>generate-pdf-documentation</id> |
| 1520 | + <phase>prepare-package</phase> |
| 1521 | + <goals> |
| 1522 | + <goal>process-asciidoc</goal> |
| 1523 | + </goals> |
| 1524 | + <configuration> |
| 1525 | + <backend>pdf</backend> |
| 1526 | + <sourceDocumentExtensions> |
| 1527 | + <sourceDocumentExtension>pdfadoc</sourceDocumentExtension> |
| 1528 | + </sourceDocumentExtensions> |
| 1529 | + <outputDirectory>${project.build.directory}/generated-docs/reference/pdf</outputDirectory> |
| 1530 | + <resources> |
| 1531 | + <resource> |
| 1532 | + <directory>${refdocs.build.directory}</directory> |
| 1533 | + <excludes> |
| 1534 | + <exclude>**/*</exclude> |
| 1535 | + </excludes> |
| 1536 | + </resource> |
| 1537 | + </resources> |
| 1538 | + </configuration> |
| 1539 | + </execution> |
1481 | 1540 | </executions>
|
1482 | 1541 | </plugin>
|
1483 | 1542 | <plugin>
|
|
0 commit comments