|
@@ -16,13 +16,14 @@
|
|
|
<maven.compiler.source>8</maven.compiler.source>
|
|
|
<maven.compiler.target>8</maven.compiler.target>
|
|
|
|
|
|
- <asciidoctor-maven-plugin.version>2.2.4</asciidoctor-maven-plugin.version>
|
|
|
+ <asciidoctor.maven.plugin.version>3.0.0</asciidoctor.maven.plugin.version>
|
|
|
+ <asciidoctorj.version>2.5.13</asciidoctorj.version>
|
|
|
+ <asciidoctorj.diagram.version>2.3.1</asciidoctorj.diagram.version>
|
|
|
+ <jruby.version>9.4.6.0</jruby.version>
|
|
|
|
|
|
- <!-- <asciidoctorj.version>2023.26</asciidoctorj.version>-->
|
|
|
- <!-- <asciidoctorj-diagram.version>2.2.10</asciidoctorj-diagram.version>-->
|
|
|
<!-- <asciidoctorj-pdf.version>2.3.9</asciidoctorj-pdf.version>-->
|
|
|
<spring-asciidoctor-backends.version>0.0.7</spring-asciidoctor-backends.version>
|
|
|
-<!-- <jruby.version>9.4.3.0</jruby.version>-->
|
|
|
+
|
|
|
|
|
|
</properties>
|
|
|
|
|
@@ -77,12 +78,41 @@
|
|
|
<plugin>
|
|
|
<groupId>org.asciidoctor</groupId>
|
|
|
<artifactId>asciidoctor-maven-plugin</artifactId>
|
|
|
- <version>${asciidoctor-maven-plugin.version}</version>
|
|
|
+ <version>${asciidoctor.maven.plugin.version}</version>
|
|
|
+ <dependencies>
|
|
|
+ <dependency>
|
|
|
+ <groupId>io.spring.asciidoctor.backends</groupId>
|
|
|
+ <artifactId>spring-asciidoctor-backends</artifactId>
|
|
|
+ <version>0.0.7</version>
|
|
|
+ </dependency>
|
|
|
+ <!-- Comment this section to use the default jruby artifact provided by the plugin -->
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.jruby</groupId>
|
|
|
+ <artifactId>jruby</artifactId>
|
|
|
+ <version>${jruby.version}</version>
|
|
|
+ </dependency>
|
|
|
+ <!-- Comment this section to use the default AsciidoctorJ artifact provided by the plugin -->
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.asciidoctor</groupId>
|
|
|
+ <artifactId>asciidoctorj</artifactId>
|
|
|
+ <version>${asciidoctorj.version}</version>
|
|
|
+ </dependency>
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.asciidoctor</groupId>
|
|
|
+ <artifactId>asciidoctorj-diagram</artifactId>
|
|
|
+ <version>${asciidoctorj.diagram.version}</version>
|
|
|
+ </dependency>
|
|
|
+ </dependencies>
|
|
|
<configuration>
|
|
|
<sourceDirectory>src/docs/asciidoc</sourceDirectory>
|
|
|
<!-- Attributes common to all output formats -->
|
|
|
+ <requires>
|
|
|
+<!-- <require>asciidoctor-bibliography</require>-->
|
|
|
+<!-- <require>plantuml</require>-->
|
|
|
+ <require>asciidoctor-diagram</require>
|
|
|
+ </requires>
|
|
|
<attributes>
|
|
|
- <sourcedir>${project.build.sourceDirectory}</sourcedir>
|
|
|
+<!-- <sourcedir>${project.build.sourceDirectory}</sourcedir>-->
|
|
|
<!-- <relative-basedir>true</relative-basedir>-->
|
|
|
<lang>zh-CN</lang>
|
|
|
<base-url>https://doc.itlym.cn/</base-url>
|
|
@@ -93,10 +123,6 @@
|
|
|
<!-- <require>${project.basedir}/src/main/resources/nofollow_processor.rb</require>-->
|
|
|
<!-- </requires>-->
|
|
|
<!-- 引用 -->
|
|
|
- <requires>
|
|
|
- <require>asciidoctor-bibliography</require>
|
|
|
- <require>plantuml</require>
|
|
|
- </requires>
|
|
|
<doctype>article</doctype>
|
|
|
<docdir>.</docdir>
|
|
|
</attributes>
|
|
@@ -110,49 +136,18 @@
|
|
|
</goals>
|
|
|
<configuration>
|
|
|
<backend>spring-html</backend>
|
|
|
+ <attributes>
|
|
|
+ <imagesdir>./images</imagesdir>
|
|
|
+ <toc>left</toc>
|
|
|
+ <icons>font</icons>
|
|
|
+ <sectanchors>true</sectanchors>
|
|
|
+ <idprefix/>
|
|
|
+ <idseparator>-</idseparator>
|
|
|
+ </attributes>
|
|
|
</configuration>
|
|
|
</execution>
|
|
|
</executions>
|
|
|
- <dependencies>
|
|
|
- <dependency>
|
|
|
- <groupId>io.spring.asciidoctor.backends</groupId>
|
|
|
- <artifactId>spring-asciidoctor-backends</artifactId>
|
|
|
- <version>${spring-asciidoctor-backends.version}</version>
|
|
|
- </dependency>
|
|
|
-<!-- <dependency>-->
|
|
|
-<!-- <groupId>org.jruby</groupId>-->
|
|
|
-<!-- <artifactId>jruby-complete</artifactId>-->
|
|
|
-<!-- <version>${jruby.version}</version>-->
|
|
|
-<!-- </dependency>-->
|
|
|
- </dependencies>
|
|
|
</plugin>
|
|
|
-
|
|
|
- <!-- copy resources to be served -->
|
|
|
- <!-- <plugin>-->
|
|
|
- <!-- <groupId>org.apache.maven.plugins</groupId>-->
|
|
|
- <!-- <artifactId>maven-resources-plugin</artifactId>-->
|
|
|
- <!-- <version>2.6</version>-->
|
|
|
- <!-- <executions>-->
|
|
|
- <!-- <execution>-->
|
|
|
- <!-- <id>copy-asciidoc-resources</id>-->
|
|
|
- <!-- <phase>process-resources</phase>-->
|
|
|
- <!-- <goals>-->
|
|
|
- <!-- <goal>copy-resources</goal>-->
|
|
|
- <!-- </goals>-->
|
|
|
- <!-- <configuration>-->
|
|
|
- <!-- <resources>-->
|
|
|
- <!-- <resource>-->
|
|
|
- <!-- <directory>target/generated-docs</directory>-->
|
|
|
- <!-- <includes>-->
|
|
|
- <!-- <include>**/*</include>-->
|
|
|
- <!-- </includes>-->
|
|
|
- <!-- </resource>-->
|
|
|
- <!-- </resources>-->
|
|
|
- <!-- <outputDirectory>src/main/resources/static</outputDirectory>-->
|
|
|
- <!-- </configuration>-->
|
|
|
- <!-- </execution>-->
|
|
|
- <!-- </executions>-->
|
|
|
- <!-- </plugin>-->
|
|
|
</plugins>
|
|
|
</build>
|
|
|
|