mvbbb.github.io

Publish Obsidian Notes with MkDocs (template)

Would you like to make some of your Obsidian notes public?

This template gives you an easy way to publish your Obsidian notes on your Github pages.

With this template, you get these out-of-the-box:

How to get started?

  1. Create a new github repository using this template
    • In this step, give a name to your repository. By default your notes will be published at <https://username.github.io/repo-name/>
    • You need to copy only the main branch while create the repo from the template
  2. Clone the repository you generated into your Obsidian folder/vault.
  3. Move the notes you would like to make public to the repo-name/docs folder.
    • Easiest way to do this would be using drag and drop within Obsidian
  4. Commit and push the changes. Github actions will publish your notes using MkDocs, with the Material theme.

Not working for you? Open an issue and let me know what went wrong.

Configuring your website

How do I arrange notes as sections and pages?

By default, the sections and pages will follow the folder structure within /docs. The folders and sub-folders will show up as sections. Try not to have white spaces in your folder and file names, as these will be converted to HTML links. The webpage heading will be the same as the first-level heading in the markdown note.

Alternatives