- Navigate to:
http://udig.refractions.net/confluence/spaces/exportspace.action?key=EN - Export Format: select "HTML Output"
- Other Options: uncheck "Include Comments"
- Pages to export: Check All
- Press Export and save the result.
- Unzip the contents of EN into the net.refractions.udig.help/html folder
- Open up EN/index.html in notepad, select everything and copy into the clipboad
- Open up livetoc.xml in notepad, select everything and hit paste
- Change the first label="Live Users Guide"
- Search and replace: "html/ with: "http://udig.refractions.net/confluence/display/EN/
- Search and replace: .html" with: "
- Try it out!
- Convert the new lines to your platform:
- linux: dos2unix
- win32: todos (download: http://www.thefreecountry.com/tofrodos/)
- svn add any new pages
- svn commit
This process can be repated for each translation:
- nl/de/html and nl/de/toc.xml
- nl/es/html and nl/es/toc.xml
- nl/fr/html and nl/fr/toc.xml
- etc...
Confluence Tempaltes
The following templates are used to export each wiki space, the index.html file will be used as the table of contents.
TOC File Generation
Here is the layout we used for toc file generation, saved here in case we need it:
#macro (displayContentTree $contentTree)
#foreach ($rootNode in $contentTree.getRootNodes())
#displayContentNodeAndChildren($rootNode)
#end
#end
#macro (displayContentNodeAndChildren $node)
#set ($page = $node.page)
#if ($generalUtil.isSafeTitleForUrl($page.title))
<topic label="${page.title}" href="${space.key}/${page.title}.html">
#else
<topic label="${page.title}" href="${space.key}/${page.id}.html">
#end
#if ($page.homePage)<!-- HOME --> #end
#foreach ($childNode in $node.children)
#displayContentNodeAndChildren($childNode)
#end
</topic>
#end
<?xml version="1.0" encoding="UTF-8"?>
<?NLS TYPE="org.eclipse.help.toc"?>
<toc label="$space.name">
#displayContentTree($contentTree)
</toc>
<!-- Document generated by Confluence on $dateFormatter.formatDateTime($exportDate) -->
<!-- $!space.description -->
Page File Generation
<html> <head> <META http-equiv="Content-Type" content="text/html; charset=UTF-8"> <link rel="stylesheet" href="../book.css" type="text/css" /> <title>$generalUtil.htmlEncode($page.space.name) : $page.title</title> </head> <body BGCOLOR="#FFFFFF"> <!-- $page.space.name : $page.title --> <h1>$page.title</h1> $rendererBean.exportWikiToXHtml($page) <small>(c) Copyright (c) 2004-2008 Refractions Research Inc. and others.</small> </body> </html>