Sign inSign up

plamola/asciidoctor-confluence-exporter

By plamola

Updated over 3 years ago

Export Confluence pages in Asciidoctor format

Image
0

376

plamola/asciidoctor-confluence-exporter repository overview

Confluence to AsciiDoc Exporter

This project contains a Python program that connects to a https://www.atlassian.com/software/confluence[Confluence] wiki and reads a series of page (referenced by their IDs), saving the output as AsciiDoc files.

It requires:

Security

This tool requires the username and password of a valid user to access the Confluence wiki. The values are passed to the tool as environment variables:

  • CONFLUENCE_USERNAME
  • CONFLUENCE_PASSWORD

Docker Image

The Dockerfile bundled is used to create the plamola/asciidoctor-confluence-exporter image, which can be used as follows:

docker run --rm 
  --env-file credentials \
  --user "$(id -u)"\
   --volume  "${PWD}":/data \
  plamola/asciidoctor-confluence-exporter:1.0 \
  --wiki=https://wiki.url \
  --output=output 123 45 6789 \
  --verbose --titles --recursive

In the command above, "123", "45" and "6789" are valid page IDs in the Confluence wiki located in "wiki.url". The --help parameter provides more information about the use of the tool.

Also, in the example above, Docker passes the environment variables through a file simply named credentials, which might look like this:

CONFLUENCE_USERNAME=your.username
CONFLUENCE_PASSWORD=y0uR.p@ssw0Rd

Note:

This for fork has some additional functionality.

The --titles parameter allows for documents to be stored with the Confluence document title, instead of the confluence page id.

The --recursive parameter will also grab all children of the supplied page ids. This allows for exporting whole wiki tree structures.

Tag summary

Content type

Image

Digest

sha256:6ee70db27

Size

114.7 MB

Last updated

over 3 years ago

docker pull plamola/asciidoctor-confluence-exporter