Skip to content

Commit 49f1626

Browse files
Jay Bryantgregturn
authored andcommitted
SWS-1086 - Updated reference documentation.
Update look and feel to current team standards.
1 parent b25f597 commit 49f1626

File tree

2 files changed

+76
-8
lines changed

2 files changed

+76
-8
lines changed

pom.xml

Lines changed: 73 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@
122122
<xmlunit.version>1.5</xmlunit.version>
123123
<xws-security.version>3.0</xws-security.version>
124124
<xom.version>1.2.5</xom.version>
125+
<docs.resources.version>0.1.3.RELEASE</docs.resources.version>
125126
</properties>
126127

127128
<dependencyManagement>
@@ -187,7 +188,13 @@
187188
<version>${woodstox.version}</version>
188189
<scope>test</scope>
189190
</dependency>
190-
191+
<dependency>
192+
<groupId>io.spring.docresources</groupId>
193+
<artifactId>spring-doc-resources</artifactId>
194+
<version>${docs.resources.version}</version>
195+
<type>zip</type>
196+
<optional>true</optional>
197+
</dependency>
191198
</dependencies>
192199

193200
<build>
@@ -520,7 +527,52 @@
520527
<id>docs</id>
521528

522529
<build>
530+
523531
<plugins>
532+
<plugin>
533+
<groupId>org.apache.maven.plugins</groupId>
534+
<artifactId>maven-dependency-plugin</artifactId>
535+
<executions>
536+
<execution>
537+
<id>unpack-doc-resources</id>
538+
<goals>
539+
<goal>unpack-dependencies</goal>
540+
</goals>
541+
<phase>generate-resources</phase>
542+
<inherited>false</inherited>
543+
<configuration>
544+
<includeGroupIds>io.spring.docresources</includeGroupIds>
545+
<includeArtifactIds>spring-doc-resources</includeArtifactIds>
546+
<includeTypes>zip</includeTypes>
547+
<excludeTransitive>true</excludeTransitive>
548+
<outputDirectory>${project.build.directory}/refdocs/</outputDirectory>
549+
</configuration>
550+
</execution>
551+
</executions>
552+
</plugin>
553+
<plugin>
554+
<groupId>org.apache.maven.plugins</groupId>
555+
<artifactId>maven-resources-plugin</artifactId>
556+
<executions>
557+
<execution>
558+
<id>copy-asciidoc-resources</id>
559+
<phase>generate-resources</phase>
560+
<inherited>false</inherited>
561+
<goals>
562+
<goal>copy-resources</goal>
563+
</goals>
564+
<configuration>
565+
<outputDirectory>${project.build.directory}/refdocs/</outputDirectory>
566+
<resources>
567+
<resource>
568+
<directory>src/main/asciidoctor</directory>
569+
<filtering>false</filtering>
570+
</resource>
571+
</resources>
572+
</configuration>
573+
</execution>
574+
</executions>
575+
</plugin>
524576
<plugin>
525577
<groupId>org.asciidoctor</groupId>
526578
<artifactId>asciidoctor-maven-plugin</artifactId>
@@ -536,15 +588,23 @@
536588
<execution>
537589
<id>html</id>
538590
<phase>generate-resources</phase>
591+
<inherited>false</inherited>
539592
<goals>
540593
<goal>process-asciidoc</goal>
541594
</goals>
542595
<configuration>
543596
<backend>html5</backend>
544597
<outputDirectory>${project.build.directory}/site/reference/html</outputDirectory>
545-
<sourceHighlighter>prettify</sourceHighlighter>
598+
<sourceHighlighter>highlight.js</sourceHighlighter>
546599
<attributes>
600+
// these attributes are required to use the doc resources
601+
<docinfo>shared</docinfo>
602+
<stylesdir>css/</stylesdir>
603+
<stylesheet>spring.css</stylesheet>
604+
<linkcss>true</linkcss>
547605
<icons>font</icons>
606+
<highlightjsdir>js/highlight</highlightjsdir>
607+
<highlightjs-theme>github</highlightjs-theme>
548608
<sectanchors>true</sectanchors>
549609
</attributes>
550610
</configuration>
@@ -553,6 +613,7 @@
553613
<execution>
554614
<id>pdf</id>
555615
<phase>generate-resources</phase>
616+
<inherited>false</inherited>
556617
<goals>
557618
<goal>process-asciidoc</goal>
558619
</goals>
@@ -564,15 +625,15 @@
564625
</executions>
565626

566627
<configuration>
567-
<sourceDirectory>src/main/asciidoctor</sourceDirectory>
628+
<sourceDirectory>${project.build.directory}/refdocs/</sourceDirectory>
568629
<sourceDocumentName>index.adoc</sourceDocumentName>
569630
<doctype>book</doctype>
570631
<attributes>
571632
<version>${project.version}</version>
572633
<projectName>${project.name}</projectName>
573634
<projectVersion>${project.version}</projectVersion>
574635
<allow-uri-read>true</allow-uri-read>
575-
<toclevels>3</toclevels>
636+
<toclevels>4</toclevels>
576637
<numbered>true</numbered>
577638
<baseDir>${project.basedir}</baseDir>
578639
</attributes>
@@ -788,6 +849,14 @@
788849
<enabled>false</enabled>
789850
</snapshots>
790851
</repository>
852+
<repository>
853+
<id>spring-release</id>
854+
<name>Spring Releases</name>
855+
<url>https://repo.spring.io/release</url>
856+
<snapshots>
857+
<enabled>false</enabled>
858+
</snapshots>
859+
</repository>
791860
</repositories>
792861

793862
<pluginRepositories>

src/main/asciidoctor/index.adoc

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,17 @@
11
= Spring Web Services Reference Documentation
22
Arjen Poutsma, Rick Evans, Tareq Abed Rabbo, Greg Turnquist
3+
:doctype: book
34
:revnumber: {version}
45
:revdate: {localdate}
5-
:toc:
6+
:toc: left
67
:toclevels: 4
7-
:toc-placement!:
8+
:source-highlighter: prettify
89
:sectnumlevels: 3
910

1011
(C) 2005-2017 The original authors.
1112

1213
NOTE: Copies of this document may be made for your own use and for distribution to others, provided that you do not charge any fee for such copies and further provided that each copy contains this Copyright Notice, whether distributed in print or electronically.
1314

14-
toc::[]
15-
1615
:sectnums!:
1716

1817
[[spring-framework-reference]]

0 commit comments

Comments
 (0)