Use Rouge syntax highlighting in PDF version of Reference Manual

This commit uses a tip provided by @mojavelinux to set the syntax
highlighter to Rouge for the PDF version of the User Guide.

Once Asciidoctor 1.5.7 has been released we will likely switch to Rouge
for the HTML version of the Reference Manual as well.

Issue: SPR-14997
This commit is contained in:
Sam Brannen 2017-04-06 18:07:19 +02:00
parent b403fb3749
commit 3a4b205b20
8 changed files with 8 additions and 1 deletions

View File

@ -30,7 +30,7 @@ asciidoctor {
revnumber: project.version,
sectanchors: '',
sectnums: '',
'source-highlighter': 'coderay',
'source-highlighter': 'coderay@', // TODO switch to 'rouge' once supported by the html5 backend
stylesdir: 'stylesheets/',
stylesheet: 'spring.css',
'spring-version': project.version

View File

@ -5,6 +5,7 @@
:wiki-spring-framework: https://github.com/spring-projects/spring-framework/wiki
:toc: left
:toclevels: 2
ifdef::backend-pdf[:source-highlighter: rouge]
[[spring-whats-new]]
== What's New in the Spring Framework

View File

@ -4,6 +4,7 @@
:api-spring-framework: {doc-root}/spring-framework/docs/{spring-version}/javadoc-api/org/springframework
:toc: left
:toclevels: 2
ifdef::backend-pdf[:source-highlighter: rouge]
This part of the reference documentation covers all of those technologies that are
absolutely integral to the Spring Framework.

View File

@ -4,6 +4,7 @@
:api-spring-framework: {doc-root}/spring-framework/docs/{spring-version}/javadoc-api/org/springframework
:toc: left
:toclevels: 2
ifdef::backend-pdf[:source-highlighter: rouge]
This part of the reference documentation is concerned with data access and the
interaction between the data access layer and the business or service layer.

View File

@ -6,6 +6,7 @@
:doc-spring-gemfire: {doc-root}/spring-gemfire/docs/current/reference
:toc: left
:toclevels: 2
ifdef::backend-pdf[:source-highlighter: rouge]
This part of the reference documentation covers the Spring Framework's integration with
a number of Java EE (and related) technologies.

View File

@ -4,6 +4,7 @@
:api-spring-framework: {doc-root}/spring-framework/docs/{spring-version}/javadoc-api/org/springframework
:toc: left
:toclevels: 2
ifdef::backend-pdf[:source-highlighter: rouge]
[[overview-getting-started-with-spring]]

View File

@ -5,6 +5,7 @@
:doc-spring-boot: {doc-root}/spring-boot/docs/current/reference
:toc: left
:toclevels: 2
ifdef::backend-pdf[:source-highlighter: rouge]
The adoption of the test-driven-development (TDD) approach to software
development is certainly advocated by the Spring team, and so coverage of Spring's

View File

@ -4,6 +4,7 @@
:api-spring-framework: {doc-root}/spring-framework/docs/{spring-version}/javadoc-api/org/springframework
:toc: left
:toclevels: 2
ifdef::backend-pdf[:source-highlighter: rouge]
This part of the reference documentation covers Spring Framework's support for the
presentation tier (and specifically web-based presentation tiers) including support