Confluence space to github markdown pages
Convert a confluence space export in XML format to github markdown pages
Installation Requirements
Requires xsltproc to be installed, e.g. on Debian, Ubuntu or derivatives call with root permissions:
apt install xsltproc
To export a space from confluence
- In confluence, navigate to Space Tools / Content Tools / Export and choose XML format
- Download the export zip and unzip
- Run generate.sh script
- Review generated content under out/wiki
- Copy content from out/wiki to your cloned github wiki and add/push
Example of export / import commands
# git clone git@github.com:sjones4/confluence-to-github.git
# cd confluence-to-github
# unzip ~/Downloads/Confluence-export.zip
# ./generate.sh
# rm out/wiki/Services-Team-Space.md # optionally delete space home page
# cp -pvr out/wiki/* ~/Work/eucalyptus.wiki/
# cd ~/Work/eucalyptus.wiki/
# git add *
# git commmit -m "Confluence services team space import"