Export a HackMD Pad to Confluence…
1.0K
Small script to export a HackMD Pad to Confluence:
You'll need node.js to run this.
git clone https://github.com/sebbo2002/fhws-hackmd-to-confluence.git
cd ./fhws-hackmd-to-confluence
npm install
I use crontab to run this script regularly.
You can also use the docker container to run this script:
docker pull sebbo2002/fhws-hackmd-to-confluence
Use environment variables to set login credentials and pushover tokens:
| HACKMD_PAD_URL | Public HackMD URL of the Pad. Click on "Publish" in your HackMD to get it. |
| CONFLUENCE_URL | Your Confluence URL, for example https://confluence.student.fiw.fhws.de:8443 for the FHWS Confluence. |
| CONFLUENCE_CONTENT_ID | Numeric Confluence Content ID to replace content of. |
HACKMD_PAD_URL="https://pad.sebbo.net/s/*********" \
CONFLUENCE_URL="https://confluence.student.fiw.fhws.de:8443" \
CONFLUENCE_CONTENT_ID="1234567" node app
Content type
Image
Digest
Size
27.4 MB
Last updated
almost 9 years ago
docker pull sebbo2002/fhws-hackmd-to-confluence