Micropub is an Obsidian plugin to publish notes directly to your own site with Micropub, written in TypeScript
Go to file
Inhji 6e0607eebb update deps 2023-08-09 19:44:30 +02:00
images Update README 2022-09-25 23:36:29 +02:00
src add support for writing back url into frontmatter after publish 2023-06-11 17:16:06 +02:00
.editorconfig Initial upload 2022-09-22 00:11:18 +02:00
.eslintignore Initial upload 2022-09-22 00:11:18 +02:00
.eslintrc Initial upload 2022-09-22 00:11:18 +02:00
.gitignore Initial upload 2022-09-22 00:11:18 +02:00
.npmrc Initial upload 2022-09-22 00:11:18 +02:00
LICENSE Initial commit 2022-09-21 15:20:58 +02:00
README.md update README 2023-06-11 18:16:41 +02:00
esbuild.config.mjs switch to esbuild 0.17 2023-08-09 19:41:56 +02:00
manifest.json update versions 2023-06-11 18:02:44 +02:00
package-lock.json update deps 2023-08-09 19:44:30 +02:00
package.json update deps 2023-08-09 19:44:30 +02:00
renovate.json Add renovate.json 2023-06-10 09:23:23 +02:00
tsconfig.json Add new path 2023-04-04 09:54:05 +02:00
version-bump.mjs Initial upload 2022-09-22 00:11:18 +02:00
versions.json update versions 2023-06-11 18:02:44 +02:00

README.md

Micropub

Micropub is a community maintained plugin for Obsidian to publish notes your own site with Micropub.

Credits

Donating

Does this plugin improve your workflow? Say thanks with a coffee to the original author.

ko-fi

Status

This plugin is considered alpha software. Even though the publish workflow lets you publish notes, there are a lot of things that are not implemented, most notably:

  • Proper RelMeAuth Flow, for now you need to generate a static token that is validated by the Micropub endpoint and save that token in the settings of the plugin.
  • Updating posts, once you have published at note, it is not possible to publish it again, making use of the Micropub update action.
  • Writing back tags, publish date, etc. to the frontmatter, as this requires a q=source call to the micropub endpoint which is missing at the moment.
  • More configuration options, for setting the names of targeted frontmatter fields, or for toggling on and of optional features like fetching tags, etc.

Micropub Details

This plugin makes use of a few micropub features, including a few non-standard extensions

Installing

This plugin will be available via Community Plugins soon.

Screenshots

Preferences

From the preferences window it is possible to log in using Micropub.

Once logged in, the plugin allows to set default values for tags, post visibility, and default blog (in case the user has more than one hosted blog). These default values will be used when posting to your site.

Command

Micropub is triggered using Obsidian's command palette.

Publish

Before publishing, it's possible to edit the title, override default values, and/or select a different blog to post to.

After publishing, a confirmation window with the post links is presented.

Building from source

Clone this repository inside the Obsidian Vault:

$ cd .obsidian/plugins/
$ git clone https://git.inhji.de/inhji/obsidian-micropub

Resolve the plugin dependencies and build it:

$ cd obsidian-micropub
$ npm i
$ npm run build

Restart Obsidian and enable the plugin from Community Plugins in Preferences.

Contributing

  1. Fork this repository and follow the steps from the previous section using the forked repository instead
  2. Create a feature branch for the changes
  3. Commit the changes and push them to the forked repository
  4. Submit a pull request

Disclaimer

This project is neither affiliated with Obsidian. This is a community maintained plugin.