Export Confluence pages in Asciidoctor format
376
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:
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_USERNAMECONFLUENCE_PASSWORDThe 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
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.
Content type
Image
Digest
sha256:6ee70db27…
Size
114.7 MB
Last updated
over 3 years ago
docker pull plamola/asciidoctor-confluence-exporter