|
@@ -21,6 +21,7 @@
|
|
|
<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.6</spring-asciidoctor-backends.version>
|
|
|
<jruby.version>9.4.3.0</jruby.version>
|
|
|
|
|
|
</properties>
|
|
@@ -49,10 +50,15 @@
|
|
|
<configuration>
|
|
|
<!--<outputDirectory>${project.build.directory}/shoulder-specs/${project.version}</outputDirectory>-->
|
|
|
<outputDirectory>${project.build.directory}/shoulder-specs</outputDirectory>
|
|
|
+
|
|
|
+ <!-- 默认是所有文件-->
|
|
|
<!--<sourceDocumentName>book.adoc</sourceDocumentName>
|
|
|
<imagesDir>./</imagesDir>-->
|
|
|
+
|
|
|
+ <!-- 不在将所有文件都生成到同一个目录中,而是将输出文件生成到相同的目录结构中。-->
|
|
|
<preserveDirectories>true</preserveDirectories>
|
|
|
- <sourceDirectory>src/docs/asciidoc/generated</sourceDirectory>
|
|
|
+ <!-- -->
|
|
|
+ <sourceDirectory>${basedir}/src/main/asciidoc</sourceDirectory>
|
|
|
<attributes>
|
|
|
<endpoint-url>http://example.org</endpoint-url>
|
|
|
<sourcedir>${project.build.sourceDirectory}</sourcedir>
|
|
@@ -72,9 +78,12 @@
|
|
|
</goals>
|
|
|
<configuration>
|
|
|
<backend>html5</backend>
|
|
|
+ <embedAssets>true</embedAssets>
|
|
|
+
|
|
|
<!-- coderay prettify -->
|
|
|
- <sourceHighlighter>coderay</sourceHighlighter>
|
|
|
<attributes>
|
|
|
+ <!-- <backend>spring-html</backend>-->
|
|
|
+ <sourceHighlighter>coderay</sourceHighlighter>
|
|
|
<imagesdir>/images</imagesdir>
|
|
|
<toc>left</toc>
|
|
|
<icons>font</icons>
|
|
@@ -114,57 +123,40 @@
|
|
|
</execution>-->
|
|
|
</executions>
|
|
|
<dependencies>
|
|
|
- <!-- Comment this section to use the default jruby artifact provided by the plugin -->
|
|
|
- <dependency>
|
|
|
- <groupId>org.jruby</groupId>
|
|
|
- <artifactId>jruby-complete</artifactId>
|
|
|
- <version>${jruby.version}</version>
|
|
|
- </dependency>
|
|
|
+
|
|
|
+ <!-- OPTIONAL Comment this section to use the default jruby artifact provided by the plugin -->
|
|
|
+<!-- <dependency>-->
|
|
|
+<!-- <groupId>org.jruby</groupId>-->
|
|
|
+<!-- <artifactId>jruby-complete</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>
|
|
|
- <dependency>
|
|
|
+
|
|
|
+ <!--<dependency>
|
|
|
<groupId>org.asciidoctor</groupId>
|
|
|
<artifactId>asciidoctorj-pdf</artifactId>
|
|
|
<version>${asciidoctorj-pdf.version}</version>
|
|
|
- </dependency>
|
|
|
+ </dependency>-->
|
|
|
+ <!-- <dependency>-->
|
|
|
+ <!-- <groupId>io.spring.asciidoctor.backends</groupId>-->
|
|
|
+ <!-- <artifactId>spring-asciidoctor-backends</artifactId>-->
|
|
|
+ <!-- <version>${spring-asciidoctor-backends.version}</version>-->
|
|
|
+ <!-- </dependency>-->
|
|
|
+
|
|
|
</dependencies>
|
|
|
</plugin>
|
|
|
|
|
|
-
|
|
|
- <!--打包插件-->
|
|
|
- <!--<plugin>
|
|
|
- <groupId>org.apache.maven.plugins</groupId>
|
|
|
- <artifactId>maven-assembly-plugin</artifactId>
|
|
|
- <executions>
|
|
|
- <execution>
|
|
|
- <id>assemble</id>
|
|
|
- <phase>package</phase>
|
|
|
- <goals>
|
|
|
- <goal>single</goal>
|
|
|
- </goals>
|
|
|
- <configuration>
|
|
|
- <descriptors>
|
|
|
- <descriptor>assembly.xml</descriptor>
|
|
|
- </descriptors>
|
|
|
- <!–<recompressZippedFiles>true</recompressZippedFiles>–>
|
|
|
- <finalName>shoulder-specs-${project.version}</finalName>
|
|
|
- <appendAssemblyId>false</appendAssemblyId>
|
|
|
- <outputDirectory>target/</outputDirectory>
|
|
|
- <workDirectory>target/assembly/work</workDirectory>
|
|
|
- <tarLongFileMode>gnu</tarLongFileMode>
|
|
|
- </configuration>
|
|
|
- </execution>
|
|
|
- </executions>
|
|
|
- </plugin>-->
|
|
|
</plugins>
|
|
|
</build>
|
|
|
|