Skip to content

Commit

Permalink
Use spring-html Asciidoctor backend.
Browse files Browse the repository at this point in the history
Closes gh-744
  • Loading branch information
mp911de committed Nov 25, 2022
1 parent 495ebd6 commit 4636010
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 35 deletions.
4 changes: 1 addition & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
<mockk.version>1.13.2</mockk.version>
<mockito-core.version>4.9.0</mockito-core.version>
<spring.version>6.0.2</spring.version>
<spring-asciidoctor-backends.version>0.0.3</spring-asciidoctor-backends.version>
<spring-data-bom.version>2022.0.0</spring-data-bom.version>
<spring-security-bom.version>6.0.0</spring-security-bom.version>
<reactor.version>2022.0.0</reactor.version>
Expand Down Expand Up @@ -497,9 +498,6 @@
<quiet>true</quiet>
<javadocDirectory>${shared.resources}/javadoc</javadocDirectory>
<overview>${shared.resources}/javadoc/overview.html</overview>
<stylesheetfile>
${shared.resources}/javadoc/spring-javadoc.css
</stylesheetfile>
<!-- copies doc-files subdirectory which contains image resources -->
<docfilessubdirs>true</docfilessubdirs>
<doclint>none</doclint>
Expand Down
46 changes: 14 additions & 32 deletions spring-vault-distribution/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -68,17 +68,6 @@
</generated-docs.directory>
</properties>

<dependencies>
<dependency>
<groupId>io.spring.docresources</groupId>
<artifactId>spring-doc-resources</artifactId>
<version>0.2.5</version>
<scope>provided</scope>
<type>zip</type>
<optional>true</optional>
</dependency>
</dependencies>

<repositories>
<repository>
<id>spring-libs-milestone</id>
Expand Down Expand Up @@ -116,24 +105,6 @@
</configuration>
</execution>

<execution>
<id>unpack-doc-resources</id>
<goals>
<goal>unpack-dependencies</goal>
</goals>
<phase>generate-resources</phase>
<configuration>
<includeGroupIds>io.spring.docresources
</includeGroupIds>
<includeArtifactIds>spring-doc-resources
</includeArtifactIds>
<includeTypes>zip</includeTypes>
<excludeTransitive>true</excludeTransitive>
<outputDirectory>
${generated-asciidoc-sources.directory}
</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>

Expand Down Expand Up @@ -227,8 +198,14 @@
<target>

<!-- Copy files for the single-file HTML version -->
<copy failonerror="false" todir="${project.root}/target/site/reference/html/images">
<fileset dir="${generated-docs.directory}/images" />
<copy failonerror="false" todir="${project.root}/target/site/reference/html">
<fileset dir="${generated-docs.directory}">
<include name="img/**"/>
<include name="images/**"/>
<include name="css/**"/>
<include name="js/**"/>
<include name="**/*.html"/>
</fileset>
</copy>

<copy todir="${project.root}/target/site/reference/html/">
Expand Down Expand Up @@ -273,6 +250,11 @@
<artifactId>asciidoctorj-epub3</artifactId>
<version>1.5.1</version>
</dependency>
<dependency>
<groupId>io.spring.asciidoctor.backends</groupId>
<artifactId>spring-asciidoctor-backends</artifactId>
<version>${spring-asciidoctor-backends.version}</version>
</dependency>
</dependencies>
<executions>

Expand All @@ -288,7 +270,7 @@
</sourceDirectory>
<sourceDocumentName>index.adoc
</sourceDocumentName>
<backend>html5</backend>
<backend>spring-html</backend>
<outputDirectory>${generated-docs.directory}
</outputDirectory>
<sourceHighlighter>highlight.js
Expand Down

0 comments on commit 4636010

Please sign in to comment.