Skip to content

Tool to create a wiki page from a HedgeDoc

License

Notifications You must be signed in to change notification settings

Nerdbergev/seilfahrt

Repository files navigation

seilfahrt

Tool to create a wiki page from a HedgeDoc

Prerequisites

You must have pandoc installed and in your PATH variable for this to work! Also you must have a access_token, access_secret, consumer_token and consumer_secret for your wiki.

Usage

Create a config file with your access tokens and wiki settings and put it next to the executable. Afterwards simply execute the executable with the -pad command line flag and append the url of the Hedgedoc pad.

Alternativley you can also run it with the -web option which launches a Webserver where you can enter the pads in an edit.

Command Line Parameters

Parameter Description Default Value
pad The URL of the hedgedoc pad.
c The path to the config file ./config.toml
h If active prints all command line args
web Starts a webserver for interactive use false
port Defines the port the webserver runs on 8080

Install as a Service

In the init folder you'll find a example systemd file. It asumes that the seilfahrt binary is in /usr/local/bin and the config file is in /etc/seilfahrt Copy the seilfahrt.service into the /etc/systemd/system folder Then reload the services with sudo systemctl daemon-reload Then enable seilfahrt with sudo systemctl enable seilfahrt.service