From 3f1f6cdd465b4a07a40238433001483e7be3a149 Mon Sep 17 00:00:00 2001 From: lresende Date: Mon, 16 Nov 2009 19:34:11 +0000 Subject: Export template for the Confluence 2.x Documentation space git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@880921 13f79535-47bb-0310-9956-ffa450edef68 --- .../TUSCANY_DOC_2x_confluence_html_export.xml | 186 +++++++++++++++++++++ 1 file changed, 186 insertions(+) create mode 100644 site/templates/TUSCANY_DOC_2x_confluence_html_export.xml (limited to 'site') diff --git a/site/templates/TUSCANY_DOC_2x_confluence_html_export.xml b/site/templates/TUSCANY_DOC_2x_confluence_html_export.xml new file mode 100644 index 0000000000..b8c55b37dd --- /dev/null +++ b/site/templates/TUSCANY_DOC_2x_confluence_html_export.xml @@ -0,0 +1,186 @@ + +## +#set ($pageContentHeaderEnabled = false) +## +#macro (spacer $width $height) + ## + ## Note: Replaced the spacer.gif with a table because IE wont honor the image height + ## + ## + ## + + + + +
+#end +## +#macro (renderPage $title) + #set($globalHelper = $action.getGlobalHelper()) + #set($renderer = $globalHelper.getWikiStyleRenderer()) + + ## + ## FIXME: Must be a more efficient way to find a page... + ## + + #foreach ($child in $page.space.pages) + #if ($child.title.equals($title)) + #set ($content = $renderer.convertWikiToXHtml($child.toPageContext(), $child.content).trim()) + + ## + ## HACK: Remove the leading

and trailing

+ ## + + #set ($content = $content.substring(3, $content.length())) + #set ($end = $content.length() - 4) + #set ($content = $content.substring(0, $end)) + + $content + #end + #end +#end +## +#macro (generateKeywords) + + +#end +## + +#macro (topNav) + + + + + + + + + + + +
+ + + + +   + +
+ + +
+
+ +#end + +## + +#macro (pageControls) + +
+ + + + + +
+ +#end + +## + +#macro (breadCrumbs) + + + + + + + +
+  $autoexport.breadcrumbs($page) + + Tuscany Home | User List | Dev List | Issue Tracker   +
+#end +## +#macro (pageOutline) +
Table of Contents
+
+ #renderPage("Navigation") +
+#end +## +#macro (pageContent) +
+ #if ($pageContentHeaderEnabled) + + #end + +
+
+ $body +
+
+
+#end +## +#macro (footer) + ## Google Analytics script + + + + ## StatCounter script + website stats + +#end +## + + + #generateKeywords() + + + + $page.title : Apache Tuscany + + + + + + #topNav() + + #breadCrumbs() + + + + + + +
+ #pageOutline() + + #pageContent() +
+ + #footer() + + + \ No newline at end of file -- cgit v1.2.3