Sign inSign up

sebbo2002/fhws-hackmd-to-confluence

By sebbo2002

Updated almost 9 years ago

Export a HackMD Pad to Confluence…

Image
0

1.0K

sebbo2002/fhws-hackmd-to-confluence repository overview

HackMD ➡ Confluence

License Status

Small script to export a HackMD Pad to Confluence:

  • Downloads the Markdown
  • Renders the Markdown to HTML by using the GitHub Markdown API
  • Replaces the Content of the given Confluence Page
Installation
Directly

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.

Docker

You can also use the docker container to run this script:

docker pull sebbo2002/fhws-hackmd-to-confluence
Configuration

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.
Example
HACKMD_PAD_URL="https://pad.sebbo.net/s/*********" \
CONFLUENCE_URL="https://confluence.student.fiw.fhws.de:8443" \
CONFLUENCE_CONTENT_ID="1234567" node app

Tag summary

Content type

Image

Digest

Size

27.4 MB

Last updated

almost 9 years ago

docker pull sebbo2002/fhws-hackmd-to-confluence