Skip to content

Obsidian Flowershow plugin for publishing with Flowershow direct from your obsidian vault.

License

Notifications You must be signed in to change notification settings

datopian/obsidian-flowershow

Repository files navigation

🌷 Obsidian Flowershow Plugin

⚠️ IMPORTANT: This plugin is no longer compatible with self-hosted Flowershow sites. It is now exclusively used as a tool for Flowershow Cloud. Sign up for Flowershow Cloud here

Obsidian Flowershow plugin for publishing with Flowershow direct from your Obsidian vault.

Getting Started

Create your site

  1. Go to our GitHub template repository and click "Use this template" button to create a new repository (can be private if you want). It will be used to synchronize between obsidian and Flowershow (plus it provides a handy backup!).

  2. Click here and create a new site from that repository.

  3. When the site finishes syncing, click the "Visit" button to open it.

Publish Obsidian vault

  1. If you haven't already, install and enable the Flowershow plugin in your Obsidian vault.

  2. In the plugin settings, enter your GitHub username, name of the repository you've created earlier and a GitHub Personal Access Token.

  3. Click the Flowershow icon in Obsidian ribbon and use available options to synchronize your vault's content with your site.

Done! Your notes are now ready to be shared with the world! 💐

Publication Status Panel

The Flowershow icon in your ribbon opens the Publication Status panel, which shows:

  • Published: the total number of notes that has been published to your Flowershow site
  • Changed: the total number of published notes that has been edited locally (+ button to publish them)
  • Unpublished: the total number of new notes in your Obsidian vault, that has not yet been published to your site (+ button to publish them)
  • Deleted: the total number of notes that has been deleted from your Obsidian vault, but are still published on your site (+ button to unpublish them)

Available Commands

  • Flowershow: Publish Single Note - Publishes the current note to your Flowershow site
  • Flowershow: Publish All Notes - Publishes all notes in your vault to your Flowershow site

Frontmatter settings

  • publish - Set to false to keep the note unpublished from your Flowershow site (or unpublish it if it was published before).

Development

Local testing

  1. Clone the repository.
  2. Run npm i to install dependencies.
  3. Run npm run build.
  4. Create the plugins directory in your Obsidian vault if it doesn't exist:
mkdir -p /path/to/obsidian-vault/.obsidian/plugins/flowershow
  1. Create symlinks to the main.js, manifest.json, and styles.css files in your Obsidian plugins folder:
ln -s /path/to/obsidian-flowershow/main.js /path/to/obsidian-vault/.obsidian/plugins/flowershow/main.js
ln -s /path/to/obsidian-flowershow/manifest.json /path/to/obsidian-vault/.obsidian/plugins/flowershow/manifest.json
ln -s /path/to/obsidian-flowershow/styles.css /path/to/obsidian-vault/.obsidian/plugins/flowershow/styles.css
  1. Reload Obsidian, go to Settings > Community Plugins, and enable the plugin.

Rebuild on change

If you want to automatically rebuild the plugin after you make any changes to the source code, run npm run dev instead of npm run build. This will start a server that will watch for changes to the source files and rebuild the plugin automatically. However, you will still need to reload Obsidian manually each time to see the changes.

Hot reloading

If you want true hot reloading, i.e. without needing to disable/enable the plugin:

  1. Install Hot-Reload plugin:
  • download the .zip file from the latest release
  • extract the .zip file into your Obsidian vault's .obsidian/plugins folder
  • go to Settings > Community Plugins and enable the plugin
  1. Instead of creating symlinks like in step 4 above, copy/clone the plugin project directly into your Obsidian vault's .obsidian/plugins folder:
mv /path/to/obsidian-flowershow /path/to/obsidian-vault/.obsidian/plugins/
  1. Run npm i && npm run dev in the plugin folder to start the development server.

Now, whenever you make any changes to the source code, two things will happen:

  1. The plugin will be rebuilt automatically.
  2. The Hot-Reload plugin will detect that the plugin has been rebuilt and will reload it in Obsidian.

Shoutout

Big thanks to Ole Eskild Steensen for his obsidian-digital-garden plugin which inspired us and we got to build on.

About

Obsidian Flowershow plugin for publishing with Flowershow direct from your obsidian vault.

Topics

Resources

License

Stars

Watchers

Forks