The intended means is to create a "style package", which is simply a jar containing the resources you mentioned in a particular format. You then reference those using a specially named dependency configuration "jdocbookStyles".

Now these style resources are "staged", meaning they get exploded locally and referenced from there. So an alternative approach is to move your resources to the proper location manually.

Out of curiosity, how do you do your highlighting? We were just having this discussion since the library we have used (jHighLight) is no longer maintained.


On Sun 25 Sep 2011 03:34:29 PM CDT, Etienne Studer wrote:
I've successfully converted a Maven build to Gradle except... the docbook
task. Does anyone know how I can get a docbook task to work for single-page
html that allows me to customize/configure the css, the syntax highlighting,
and the xinclude?

I've tried Steve Ebersole's jdocbook plugin but even after studying the
source code, I'm not sure how I can configure the jdocbook task with respect
to custom css, xinclude support, and syntax highlighting. I've also studied
the Gradle docbook task classes but could not figure it out.

This is the Maven code that I need to convert:

<plugin>
                 <groupId>com.agilejava.docbkx</groupId>
                 <artifactId>docbkx-maven-plugin</artifactId>
                 <executions>
                     <execution>
                         <phase>compile</phase>
                         <goals>
                             <goal>generate-html</goal>
                         </goals>
                     </execution>
                 </executions>
                 <configuration>
                     <sourceDirectory>src/main/docbook</sourceDirectory>

<targetDirectory>${project.build.directory}/docbook/html</targetDirectory>

<htmlStylesheet>resources/documentation.css</htmlStylesheet>
                     <xincludeSupported>true</xincludeSupported>
                     <highlightSource>1</highlightSource>

<htmlCustomization>${basedir}/src/main/docbook/html/resources/highlight.xsl</htmlCustomization>
                 </configuration>
</plugin>

Any help (or alternatives) are highly appreciated.

Etienne

--
View this message in context: 
http://gradle.1045684.n5.nabble.com/how-to-converto-maven-docbook-task-to-gradle-docbook-task-tp4839305p4839305.html
Sent from the gradle-user mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

     http://xircles.codehaus.org/manage_email



--
[email protected]
http://hibernate.org

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email


Reply via email to