This page tells you how to set up a copy of the Confluence documentation on your own local Confluence site.

このページの内容

Reasons for Setting up your own Local Documentation

You may wish to run the documentation locally. In addition, you may want to point Confluence's links at your local documentation.

Setting up your Local Online Documentation

To set up your own Confluence site with a copy of our Confluence documentation,

  1. Install Atlassian Confluence, if you have not already installed it. (If you do not already have Confluence, ask for a free evaluation license or a starter license. You can use 'Anonymous' access to allow your users to view the documentation.)
  2. Download the XML source code for the Confluence documentation. Note that the Confluence version of the XML source needs to be the same major Confluence version as your local Confluence site. For example, if the Confluence version in the XML is 3.0, you can import it into a Confluence site running version 3.0, 3.0.1 or 3.0.2. But you cannot import it into Confluence 2.9 nor into Confluence 3.1.
  3. Import the XML file into your Confluence site. This will create a new space with key 'DOC'. Note: If there is already a 'DOC' space in your Confluence site, it will be overwritten. For detailed instructions, see the Confluence documentation on Restoring a Space.
  4. Remove or adjust the customised header, footer and left-hand navigation bar in your new space.
    Explanation: When you create your new space from our XML source code, the space will inherit the Confluence 'Documentation' theme. The XML source code also includes the customisations we have made to the header, footer and left-hand navigation bar. These customisations include references to our Atlassian Documentation space. Since your Confluence site does not have that space, you will see errors like this in the left-hand navigation bar, header and footer in your new space:
    Unable to render {include} Couldn't find a space with key: ALLDOC
    To fix these errors, take one of the following steps:
    • Customise the navigation, header and footer sections to suit your Confluence site or environment. See our documentation on configuring the Documentation theme.
    • Or restore the default left-hand navigation bar, by removing all content from the navigation, header and footer sections and selecting the 'Page Tree' check box. See our documentation on configuring the Documentation theme.
    • Or change the theme of your space to the Confluence default theme or another theme of your choice.
  5. (Optional) Follow the steps in the next section if you want to redirect Confluence's help links to point to your local documentation.

Redirecting Confluence's Help Links to your Local Documentation

In some parts of the Confluence user interface, you will see hyperlinks that point to the documentation for detailed information. These hyperlinks are Confluence's help links. You can redirect Confluence's help links to point to your local documentation.

There are two types of configuration changes you can make to the help property file:

Changing the Base URL for your Help Links

You can set the base URL via the Confluence Administration Console.

To change the base URL for your help links,

  1. Click 'General Configuration' in the left-hand navigation bar.
  2. [編集] をクリックします。
  3. Change the 'Documentation Url Pattern' to determine the destination website for all your help links. This value forms the first part of the destination URL. For example, if you want to point your help links the 'DOC' space in your local Confluence site, your URL prefix will look like this:
    help.prefix=http://confluence.mycompany.com/display/DOC/
    In addition, you can use the following special characters in the URL:
    • {0} – Optional. This value will be replaced with the version of Confluence running on your site.
    • {1} – Optional. This value will be replaced with the page name from the configuration file.

Changing the Links for Individual Help Pages

If necessary, you can also change the individual page names to point to specific pages in your local documentation. You may want to do this if you are using a translated version of the documentation, for example, or your own custom guide rather than a copy of the Atlassian documentation.

The help links are contained in a property file. In summary, you will need to do the following:

To change the destination of your Confluence help links,

  1. Copy the confluence-x.x.x.jar file from your {CONFLUENCE-INSTALLATION}\confluence\WEB-INF\lib directory and place it in a temporary location.
    Note: Do not remove the JAR, just make a copy of it.
  2. Unzip the confluence-x.x.x.jar file into your temporary location and copy the help-paths.properties file.
  3. Put the copy of the help-paths.properties file into your {CONFLUENCE-INSTALLATION}\confluence\WEB-INF\classes directory.
    Note: The property file will override the file in the JAR.
  4. Edit your new help-paths.properties file.
  5. Change the individual page names to point to specific pages in your local documentation. In our example file below, the first key-value pair looks like this:
    help.restore.site=Restoring+a+site
    
    You could change it to something like this:
    help.restore.site=My+page+about+Restoring+Confluence
    
  6. Confluence を再起動します。

Example of the Help Property File

Below is an example of part of the Confluence help-paths.properties file.

help.prefix=http://docs.atlassian.com/confluence/docs-{0}/{1}
 
## Page Names
help.restore.site=Restoring+a+site
help.manually.backup.site=Manually+Backing+Up+The+Site
help.configure.server.URL=Configuring+the+Server+Base+URL
help.configure.time.date.format=Configuring+Time+and+Date+Formats
help.edit.user.details=Editing+User+Details

The first line (help.prefix) shows the destination website of the help links. This value forms the first part of the destination URL.

Below the description '## Page Names' there are a number of key-value pairs.

Example of a Help Link

Here is an example of a Confluence screen with two help links, one on the words 'our online documentation' and another on 'More about daily backups':

Screenshot: Example of help links in Confluence

More Notes about Help Links