Dashboard > Admin > Home > 04 Project Procedures > Export Online Help
Admin
Export Online Help
Added by Administrator , last edited by Administrator on Jun 19, 2008  (view change)
Labels: 
(None)

  1. Navigate to:
    http://udig.refractions.net/confluence/spaces/exportspace.action?key=EN
  2. Export Format: select "HTML Output"
  3. Other Options: uncheck "Include Comments"
  4. Pages to export: Check All
  5. Press Export and save the result.
  6. Unzip the contents of EN into the net.refractions.udig.help/html folder
  7. Open up EN/index.html in notepad, select everything and copy into the clipboad
  8. 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: "
  9. Try it out!
  10. Convert the new lines to your platform:
  11. svn add any new pages
  12. 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>

Powered by a free Atlassian Confluence Open Source Project License granted to uDig. Evaluate Confluence today.
Powered by Atlassian Confluence 2.7.1, the Enterprise Wiki. Bug/feature request - Atlassian news - Contact administrators
User-friendly Desktop Internet GIS