Add a new doc build target called 'prettify'.
This calls the style/xsl/list_for_prettify.xsl file added in r1828598.
This is a convenient way to prepare things to be (manually) updated in
prettify.js in order to upgrade syntax highlight in the doc.
git-svn-id: https://svn.apache.org/repos/asf/httpd/docs-build/trunk@1828599 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/build.xml b/build.xml
index 309a271..b9fcb78 100644
--- a/build.xml
+++ b/build.xml
@@ -94,6 +94,26 @@
</target>
+<!-- ready to use list of directives for prettify.js -->
+<!-- ==================================================================== -->
+<target name="prettify" depends="modulelists" unless="prettify.done"
+ description="- (re-)builds convenience map file if necessary">
+ <echo message="checking convenience map ..." />
+
+ <!-- <dependencies.prettify /> -->
+
+ <xslt style="../style/xsl/list_for_prettify.xsl"
+ in="${ap.docroot}/mod/allmodules.xml"
+ out="${ap.docroot}/list_for_prettify.txt">
+ <xmlcatalog refid="w3c-catalog" />
+ </xslt>
+
+ <echo message="List of directives for prettify.js are up to date." />
+ <echo message="They now have to be copy/pasted into it (see comments in list_for_prettify.txt)." />
+ <property name="prettify.done" value="yes!" />
+</target>
+
+
<!-- XHTML validation. -->
<!-- The resulting output is intended to be valid (X)HTML. Check it from -->
<!-- time to time... -->