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.

  • If you are working in an environment without an internet connection, you will need a local copy of the documentation.
  • If you have customised Confluence, you may wish to update the documentation to reflect your changes.
  • You may want to change the look and feel of the documentation to integrate into your company's intranet.
  • Confluence's interface contains links to help pages in the online documentation on confluence.atlassian.com. You may wish to point these help links to a different destination. Possible reasons include:
    • You want to point the help links to a destination behind your firewall.
    • You may want to link to a translated version of the 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, you must remove it before importing the new space. 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 Documentationspace. 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:

  5. Download the XML source code for the additional documentation spaces listed below and import them into your Confluence site too.
  6. (Optional) Follow the steps in the next section if you want to redirect Confluence's help links to point to your local documentation.

Additional Documentation Spaces Required

Why You Need the Additional Documentation Spaces

The Confluence documentation shares some content with other Atlassian products, such as JIRA. For the sake of efficiency, we reuse the same content across documentation spaces. You will notice that some of our pages contain an {include} macro that draws in content from another space.

For example, the following macro includes content from the Application Links (APPLINKS) space into the Confluence documentation space:

{include:APPLINKS:_securityTrustedApps}

You will need to import those documentation spaces into your Confluence site, to ensure that the reused content is accessible in your Confluence documentation.

Determining the Version Required

We supply different versions of the documentation, for each version of the software or plugin concerned. To see which version you need, take a look at the space key in the {include} macro concerned.

Here is an example of an include macro that requires version 1.2 of the Application Links documentation:

{include:APPLINKS012:_securityTrustedApps}

This example requires the latest version of the Application Links documentation:

{include:APPLINKS:_securityTrustedApps}
List of Spaces Required

Retrieve the relevant version of the XML backups from these pages:

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

The help links and base URL 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 help prefix, found at the top of the file. By default, the help prefix looks like this:

    help.prefix=http://docs.atlassian.com/confluence/docs-{0}/{1}
    

    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:


     

  6. Confluence を再起動します。

(Optional) 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 for each page are contained in a the same property file as the help prefix, described above.

To change the destination for each page:

  1. Follow steps 1 to 4 described above, to put your copy of the help-paths.properties file into your {CONFLUENCE-INSTALLATION}\confluence\WEB-INF\classes directory, and edit your new help-paths.properties file.
  2. 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
    
  3. 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