Giter Club home page Giter Club logo

obsidian-github-publisher's Introduction

order
1

Obsidian Downloads

✉️ Enveloppe : An Obsidian GitHub Vault Publisher

Publish your notes in your own GitHub repository for free and do whatever you want with them. ✨

This allows you to set up any template: Jekyll, Mkdocs, Hugo, or custom-made ones!

Here, you will only get a quick setup!

🪄 Features

  • Converting [[wikilinks]] to markdown links
  • Linking to other notes and updating the links according to your settings
  • Cleaning the repo by removing depublished and deleted files
  • Folder notes (renaming them to a specific name, like index.md)
  • All dataview queries are supported (including dataviewjs, inline DQL and inline dataviewJS.)
  • Supporting any markdown syntax supported by your template, as well as other formats like Mermaid or Latex
  • And many more ✨

Warning

Do not use this plugin to sync or save your Obsidian Vault! Avoid opening the converted files from your repository in Obsidian!


🖥️ Initial setup

There are plenty of options available, some of which are pre-configured and others are optional.

Before you begin, you will need to configure your GitHub repository.

  1. Fill in your username, repository name, and branch.
  2. Generate a GitHub token from the settings link and paste it here.
  3. Click the button to check if everything is working as intended.
  4. Now, let's try publishing your first note! To achieve this, you need to set the key share: true in the frontmatter of a file, like this:
    ---
    share: true
    ---
    
  5. Now, run the command to publish: Upload single current active note
  6. If everything is good, a PR will be created on your repository and will be automatically merged (this can be disabled if desired!).

That's it! However, there are many options that a simple README cannot cover, so please refer to the documentation for more information. 💕.

⚙️ Usage

The plugin adds 8 commands in the palette, one of which is also available in the right-click menu.

  • Upload single current active note (available in the right-click menu)
  • Upload all notes
  • Upload unpublished notes
  • Refresh published and upload new notes
  • Refresh all published notes
  • Purge depublished and deleted files
  • Test the connection to the configured repository
  • Check the rate limit of the GitHub API

Each of the commands are explained here.

🤖 How it works

  1. The plugin will create a branch named after your vault, where spaces are replaced by a -.
  2. The plugin will perform all conversion (based on your settings) and push the note(s) into the branch.
  3. By default, the branch will be merged once all the notes (and their embedded files) have been processed.

Warning

Sometimes, the branch may not be merged due to merge conflicts. This can occur if you push too frequently.

🪛 Developing

You can :

🪧 Looking for something?

Settings explanationCommands referencesGitHub Discussion


If you find this plugin and workflow useful, you can give me some coffee money!
Buy Me a Coffee at ko-fi.com

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.