Skip to content

Instantly share code, notes, and snippets.

@korikori
Last active October 10, 2024 10:52
Show Gist options
  • Save korikori/6a0c18fba42d4b2e1140e74c87f66ddb to your computer and use it in GitHub Desktop.
Save korikori/6a0c18fba42d4b2e1140e74c87f66ddb to your computer and use it in GitHub Desktop.
Export Joplin notes to web

Why

I was thinking of writing a Joplin plugin to export notes to HTML pages hosted somewhere so that I could easily share with others who do not necessarily use Joplin and/or are not on the same server as me, but then I figured this can be achieved with existing tools, so there.

How

You will need a publicly accessible web server with a Git repository (i.e. GitHub Pages should work). Install the JoplinExport2GitRepos plugin - it already exports individual notes as .md files, so you will also need something to turn those files into pages. I like MDwiki as it's dead simple, but you could overcomplicate this step to your heart's content.

Clone the repository locally, and then save the directory in the plugin's settings - the plugin's export action already commits to Git by default, so you only have to do a git push after that. You could either schedule it or use the plugin's convenient "Execute a Batch Script" option to automate it.

That's it. Also this probably only works on desktop? ¯_(ツ)_/¯

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment