| | |
| | | </configuration> |
| | | </execution> |
| | | <execution> |
| | | <id>chunked-html</id> |
| | | <phase>pre-site</phase> |
| | | <goals> |
| | | <goal>generate-html</goal> |
| | | </goals> |
| | | <configuration> |
| | | <!-- <targetDatabaseDocument>${basedir}/src/main/docbkx/olinkdb.xml</targetDatabaseDocument> --> |
| | | <chunkedOutput>true</chunkedOutput> |
| | | <htmlCustomization>${dbstyle-dir}/html/chunked.xsl</htmlCustomization> |
| | | |
| | | <preProcess> |
| | | <copy todir='${docbkx-out}/html/admin-guide/OpenDJ-Admin-Guide/images'> |
| | | <fileset dir='${docbkx-src}/admin-guide/images' /> |
| | | </copy> |
| | | <copy todir='${docbkx-out}/html/admin-guide/OpenDJ-Admin-Guide'> |
| | | <fileset dir='${basedir}/src/main/resources' /> |
| | | </copy> |
| | | <copy todir='${docbkx-out}/html/dev-guide/OpenDJ-Dev-Guide/images'> |
| | | <fileset dir='${docbkx-src}/dev-guide/images' /> |
| | | </copy> |
| | | <copy todir='${docbkx-out}/html/dev-guide/OpenDJ-Dev-Guide'> |
| | | <fileset dir='${basedir}/src/main/resources' /> |
| | | </copy> |
| | | <copy todir='${docbkx-out}/html/install-guide/OpenDJ-Install-Guide/images'> |
| | | <fileset dir='${docbkx-src}/install-guide/images' /> |
| | | </copy> |
| | | <copy todir='${docbkx-out}/html/install-guide/OpenDJ-Install-Guide'> |
| | | <fileset dir='${basedir}/src/main/resources' /> |
| | | </copy> |
| | | <copy todir='${docbkx-out}/html/release-notes/OpenDJ-Release-Notes/images'> |
| | | <fileset dir='${docbkx-src}/release-notes/images' /> |
| | | </copy> |
| | | <copy todir='${docbkx-out}/html/release-notes/OpenDJ-Release-Notes'> |
| | | <fileset dir='${basedir}/src/main/resources' /> |
| | | </copy> |
| | | </preProcess> |
| | | |
| | | <postProcess> |
| | | <copy file='${docbkx-out}/html/admin-guide/OpenDJ-Admin-Guide/target/docbkx/html/legalnotice.html' |
| | | todir='${docbkx-out}/html/admin-guide/OpenDJ-Admin-Guide' /> |
| | | <copy file='${docbkx-out}/html/dev-guide/OpenDJ-Dev-Guide/target/docbkx/html/legalnotice.html' |
| | | todir='${docbkx-out}/html/dev-guide/OpenDJ-Dev-Guide' /> |
| | | <copy file='${docbkx-out}/html/install-guide/OpenDJ-Install-Guide/target/docbkx/html/legalnotice.html' |
| | | todir='${docbkx-out}/html/install-guide/OpenDJ-Install-Guide' /> |
| | | <copy file='${docbkx-out}/html/release-notes/OpenDJ-Release-Notes/target/docbkx/html/legalnotice.html' |
| | | todir='${docbkx-out}/html/release-notes/OpenDJ-Release-Notes' /> |
| | | <replace |
| | | dir="${basedir}/target/docbkx/html/" |
| | | token="target/docbkx/html/legalnotice.html" |
| | | value="legalnotice.html"> |
| | | <include name="**/**/**/*.html" /> |
| | | </replace> |
| | | <replace |
| | | dir="${basedir}/target/docbkx/html/" |
| | | token="</head>"> |
| | | <include name="**/**/**/*.html" /> |
| | | <replacevalue> |
| | | <script src="http://code.jquery.com/jquery-latest.min.js"></script> |
| | | <script> |
| | | // On double-click, reformat <pre class="screen"> for easy copying. |
| | | $(document).ready(function() { |
| | | $(".screen").attr("title", "Double-click [-] to flatten lines."); |
| | | $(".screen").prepend('<img src="../images/minus.png" class="toggle">'); |
| | | }); |
| | | $(".screen").live("dblclick", function() { |
| | | $(this).replaceWith( |
| | | "<pre class=\"flat\" title=\"Double-click [+] to wrap long lines.\">" + |
| | | $(this).html().replace(/minus\.png/,"plus.png").replace(/\n /g," ") + "\n<!--" + $(this).html() + "-->" + |
| | | "</pre>"); |
| | | }); |
| | | $(".flat").live("dblclick", function() { |
| | | $(this).replaceWith( |
| | | "<pre class=\"screen\" title=\"Double-click [-] to flatten lines.\">" + |
| | | $(this).html().replace(/(.|\n)+<!\-\-/m,"").replace(/\-\-\>/,"").replace(/plus\.png/,"minus.png") + |
| | | "</pre>"); |
| | | }); |
| | | </script> |
| | | <link rel="shortcut icon" href="http://forgerock.org/favicon.ico"> |
| | | </head ></replacevalue> |
| | | </replace> |
| | | <replace |
| | | dir="${basedir}/target/docbkx/html/" |
| | | token="</body>"> |
| | | <include name="**/**/**/*.html" /> |
| | | <replacevalue><script type="text/javascript"> |
| | | var _gaq = _gaq || []; |
| | | _gaq.push(['_setAccount', 'UA-23412190-2']); |
| | | _gaq.push(['_trackPageview']); |
| | | (function() { |
| | | var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; |
| | | ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; |
| | | var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); |
| | | })(); |
| | | </script></body ></replacevalue> |
| | | </replace> |
| | | </postProcess> |
| | | </configuration> |
| | | </execution> |
| | | <execution> |
| | | <id>doc-single-html</id> |
| | | <phase>pre-site</phase> |
| | | <goals> |
| | |
| | | // On double-click, reformat <pre class="screen"> for easy copying. |
| | | $(document).ready(function() { |
| | | $(".screen").attr("title", "Double-click [-] to flatten lines."); |
| | | $(".screen").prepend('<img src="../images/minus.png" class="toggle">'); |
| | | $(".screen").prepend('<img src="./images/minus.png" class="toggle">'); |
| | | }); |
| | | $(".screen").live("dblclick", function() { |
| | | $(this).replaceWith( |
| | |
| | | </postProcess> |
| | | </configuration> |
| | | </execution> |
| | | <execution> |
| | | <id>chunked-html</id> |
| | | <phase>pre-site</phase> |
| | | <goals> |
| | | <goal>generate-html</goal> |
| | | </goals> |
| | | <configuration> |
| | | <!-- <targetDatabaseDocument>${basedir}/src/main/docbkx/olinkdb.xml</targetDatabaseDocument> --> |
| | | <chunkedOutput>true</chunkedOutput> |
| | | <htmlCustomization>${dbstyle-dir}/html/chunked.xsl</htmlCustomization> |
| | | |
| | | <preProcess> |
| | | <copy todir='${docbkx-out}/html/admin-guide/OpenDJ-Admin-Guide/images'> |
| | | <fileset dir='${docbkx-src}/admin-guide/images' /> |
| | | </copy> |
| | | <copy todir='${docbkx-out}/html/admin-guide/OpenDJ-Admin-Guide'> |
| | | <fileset dir='${basedir}/src/main/resources' /> |
| | | </copy> |
| | | <copy todir='${docbkx-out}/html/dev-guide/OpenDJ-Dev-Guide/images'> |
| | | <fileset dir='${docbkx-src}/dev-guide/images' /> |
| | | </copy> |
| | | <copy todir='${docbkx-out}/html/dev-guide/OpenDJ-Dev-Guide'> |
| | | <fileset dir='${basedir}/src/main/resources' /> |
| | | </copy> |
| | | <copy todir='${docbkx-out}/html/install-guide/OpenDJ-Install-Guide/images'> |
| | | <fileset dir='${docbkx-src}/install-guide/images' /> |
| | | </copy> |
| | | <copy todir='${docbkx-out}/html/install-guide/OpenDJ-Install-Guide'> |
| | | <fileset dir='${basedir}/src/main/resources' /> |
| | | </copy> |
| | | <copy todir='${docbkx-out}/html/release-notes/OpenDJ-Release-Notes/images'> |
| | | <fileset dir='${docbkx-src}/release-notes/images' /> |
| | | </copy> |
| | | <copy todir='${docbkx-out}/html/release-notes/OpenDJ-Release-Notes'> |
| | | <fileset dir='${basedir}/src/main/resources' /> |
| | | </copy> |
| | | </preProcess> |
| | | |
| | | <postProcess> |
| | | <copy file='${legalnotice}' |
| | | todir='${docbkx-out}/html/admin-guide/OpenDJ-Admin-Guide' /> |
| | | <copy file='${legalnotice}' |
| | | todir='${docbkx-out}/html/dev-guide/OpenDJ-Dev-Guide' /> |
| | | <copy file='${legalnotice}' |
| | | todir='${docbkx-out}/html/install-guide/OpenDJ-Install-Guide' /> |
| | | <copy file='${legalnotice}' |
| | | todir='${docbkx-out}/html/release-notes/OpenDJ-Release-Notes' /> |
| | | <replace |
| | | dir="${basedir}/target/docbkx/html/" |
| | | token="target/docbkx/html/legalnotice.html" |
| | | value="legalnotice.html"> |
| | | <include name="**/**/**/*.html" /> |
| | | </replace> |
| | | <replace |
| | | dir="${basedir}/target/docbkx/html/" |
| | | token="</head>"> |
| | | <include name="**/**/**/*.html" /> |
| | | <replacevalue> |
| | | <script src="http://code.jquery.com/jquery-latest.min.js"></script> |
| | | <script> |
| | | // On double-click, reformat <pre class="screen"> for easy copying. |
| | | $(document).ready(function() { |
| | | $(".screen").attr("title", "Double-click [-] to flatten lines."); |
| | | $(".screen").prepend('<img src="../images/minus.png" class="toggle">'); |
| | | }); |
| | | $(".screen").live("dblclick", function() { |
| | | $(this).replaceWith( |
| | | "<pre class=\"flat\" title=\"Double-click [+] to wrap long lines.\">" + |
| | | $(this).html().replace(/minus\.png/,"plus.png").replace(/\n /g," ") + "\n<!--" + $(this).html() + "-->" + |
| | | "</pre>"); |
| | | }); |
| | | $(".flat").live("dblclick", function() { |
| | | $(this).replaceWith( |
| | | "<pre class=\"screen\" title=\"Double-click [-] to flatten lines.\">" + |
| | | $(this).html().replace(/(.|\n)+<!\-\-/m,"").replace(/\-\-\>/,"").replace(/plus\.png/,"minus.png") + |
| | | "</pre>"); |
| | | }); |
| | | </script> |
| | | <link rel="shortcut icon" href="http://forgerock.org/favicon.ico"> |
| | | </head></replacevalue> |
| | | </replace> |
| | | <replace |
| | | dir="${basedir}/target/docbkx/html/" |
| | | token="</body>"> |
| | | <include name="**/**/**/*.html" /> |
| | | <replacevalue><script type="text/javascript"> |
| | | var _gaq = _gaq || []; |
| | | _gaq.push(['_setAccount', 'UA-23412190-2']); |
| | | _gaq.push(['_trackPageview']); |
| | | (function() { |
| | | var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; |
| | | ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; |
| | | var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); |
| | | })(); |
| | | </script></body></replacevalue> |
| | | </replace> |
| | | </postProcess> |
| | | </configuration> |
| | | </execution> |
| | | </executions> |
| | | <dependencies> |
| | | <dependency> |