Migrate docs to spring-asciidoctor-backends
- Use io.spring.asciidoctor.backends:spring-asciidoctor-backends:0.0.5 - Backport #722 - Fixes #723
This commit is contained in:
@@ -14,8 +14,7 @@
|
|||||||
<description>Spring Shell reference documentation</description>
|
<description>Spring Shell reference documentation</description>
|
||||||
<properties>
|
<properties>
|
||||||
<asciidoctor.maven.plugin.version>2.2.2</asciidoctor.maven.plugin.version>
|
<asciidoctor.maven.plugin.version>2.2.2</asciidoctor.maven.plugin.version>
|
||||||
<asciidoctorj.pdf.version>1.5.4</asciidoctorj.pdf.version>
|
<spring-asciidoctor-backends.version>0.0.5</spring-asciidoctor-backends.version>
|
||||||
<asciidoctorj.epub.version>1.5.1</asciidoctorj.epub.version>
|
|
||||||
<asciidoctorj.version>2.5.1</asciidoctorj.version>
|
<asciidoctorj.version>2.5.1</asciidoctorj.version>
|
||||||
<jruby.version>9.2.17.0</jruby.version>
|
<jruby.version>9.2.17.0</jruby.version>
|
||||||
<spring-doc-resources.version>0.2.5</spring-doc-resources.version>
|
<spring-doc-resources.version>0.2.5</spring-doc-resources.version>
|
||||||
@@ -152,83 +151,23 @@
|
|||||||
<version>${asciidoctor.maven.plugin.version}</version>
|
<version>${asciidoctor.maven.plugin.version}</version>
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.asciidoctor</groupId>
|
<groupId>io.spring.asciidoctor.backends</groupId>
|
||||||
<artifactId>asciidoctorj-pdf</artifactId>
|
<artifactId>spring-asciidoctor-backends</artifactId>
|
||||||
<version>${asciidoctorj.pdf.version}</version>
|
<version>${spring-asciidoctor-backends.version}</version>
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.asciidoctor</groupId>
|
|
||||||
<artifactId>asciidoctorj-epub3</artifactId>
|
|
||||||
<version>${asciidoctorj.epub.version}</version>
|
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
<executions>
|
<executions>
|
||||||
<execution>
|
<execution>
|
||||||
<id>generate-html</id>
|
<id>generate-html-documentation</id>
|
||||||
<phase>generate-resources</phase>
|
<phase>prepare-package</phase>
|
||||||
<goals>
|
<goals>
|
||||||
<goal>process-asciidoc</goal>
|
<goal>process-asciidoc</goal>
|
||||||
</goals>
|
</goals>
|
||||||
<configuration>
|
<configuration>
|
||||||
<backend>html5</backend>
|
<backend>spring-html</backend>
|
||||||
<attributes>
|
|
||||||
<source-highlighter>highlight.js</source-highlighter>
|
|
||||||
<project-version>${project.version}</project-version>
|
|
||||||
<project-artifactId>${project.artifactId}</project-artifactId>
|
|
||||||
<toc>left</toc>
|
|
||||||
<toc-levels>4</toc-levels>
|
|
||||||
<sectanchors>true</sectanchors>
|
|
||||||
<sectnums />
|
|
||||||
<docinfo>shared</docinfo>
|
|
||||||
<stylesdir>css/</stylesdir>
|
|
||||||
<stylesheet>spring.css</stylesheet>
|
|
||||||
<linkcss>true</linkcss>
|
|
||||||
<icons>font</icons>
|
|
||||||
<highlightjsdir>js/highlight</highlightjsdir>
|
|
||||||
<highlightjs-theme>github</highlightjs-theme>
|
|
||||||
</attributes>
|
|
||||||
</configuration>
|
</configuration>
|
||||||
</execution>
|
</execution>
|
||||||
|
|
||||||
<execution>
|
|
||||||
<id>generate-pdf</id>
|
|
||||||
<phase>generate-resources</phase>
|
|
||||||
<goals>
|
|
||||||
<goal>process-asciidoc</goal>
|
|
||||||
</goals>
|
|
||||||
<configuration>
|
|
||||||
<outputDirectory>${project.build.directory}/site/reference/pdf</outputDirectory>
|
|
||||||
<backend>pdf</backend>
|
|
||||||
<sourceHighlighter>coderay</sourceHighlighter>
|
|
||||||
<attributes>
|
|
||||||
<project-version>${project.version}</project-version>
|
|
||||||
<project-artifactId>${project.artifactId}</project-artifactId>
|
|
||||||
<icons>font</icons>
|
|
||||||
<pagenums />
|
|
||||||
<sectnums />
|
|
||||||
<toc />
|
|
||||||
</attributes>
|
|
||||||
</configuration>
|
|
||||||
</execution>
|
|
||||||
<execution>
|
|
||||||
<id>generate-epub</id>
|
|
||||||
<phase>generate-resources</phase>
|
|
||||||
<goals>
|
|
||||||
<goal>process-asciidoc</goal>
|
|
||||||
</goals>
|
|
||||||
<configuration>
|
|
||||||
<backend>epub3</backend>
|
|
||||||
<sourceHighlighter>coderay</sourceHighlighter>
|
|
||||||
<attributes>
|
|
||||||
<project-version>${project.version}</project-version>
|
|
||||||
<project-artifactId>${project.artifactId}</project-artifactId>
|
|
||||||
<icons>font</icons>
|
|
||||||
<pagenums />
|
|
||||||
<sectnums />
|
|
||||||
<toc />
|
|
||||||
</attributes>
|
|
||||||
</configuration>
|
|
||||||
</execution>
|
|
||||||
</executions>
|
</executions>
|
||||||
|
|
||||||
<configuration>
|
<configuration>
|
||||||
@@ -237,13 +176,16 @@
|
|||||||
<doctype>book</doctype>
|
<doctype>book</doctype>
|
||||||
<attributes>
|
<attributes>
|
||||||
<version>${project.version}</version>
|
<version>${project.version}</version>
|
||||||
|
<project-version>${project.version}</project-version>
|
||||||
<projectName>${project.name}</projectName>
|
<projectName>${project.name}</projectName>
|
||||||
<projectVersion>${project.version}</projectVersion>
|
<projectVersion>${project.version}</projectVersion>
|
||||||
<snippets>${project.build.directory}/refdocs/snippets/</snippets>
|
<snippets>${project.build.directory}/refdocs/snippets/</snippets>
|
||||||
<allow-uri-read>true</allow-uri-read>
|
<allow-uri-read>true</allow-uri-read>
|
||||||
|
<toc>left</toc>
|
||||||
<toclevels>4</toclevels>
|
<toclevels>4</toclevels>
|
||||||
<numbered>true</numbered>
|
<numbered>true</numbered>
|
||||||
<baseDir>${project.basedir}</baseDir>
|
<baseDir>${project.basedir}</baseDir>
|
||||||
|
<starter-artifactId>org.springframework.shell:spring-shell-starter</starter-artifactId>
|
||||||
</attributes>
|
</attributes>
|
||||||
</configuration>
|
</configuration>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user