VAULTjimbrig

Obsidian_published

Using mkdocs to publish my obsidian vault. Main repo for the vault is https://github.com/jimbrig/obsidian_vault

Published Vault

Create markdown indexes

Publish Vault

Setup

MkDocs

pip install mkdocs
mkdocs build
mkdocs serve
mkdocs gh-deploy

Plugins

PluginVersion
mkdocs1.1.2
mkdocs-autolinks-plugin0.4.0
mkdocs-awesome-pages-plugin2.5.0
mkdocs-git-revision-date-localized-plugin0.9.2
mkdocs-minify-plugin0.4.0
mkdocs-monorepo-plugin0.4.14
mkdocs-roamlinks-plugin0.1.3

Installations

$ pip install mkdocs /
    mkdocs-autolinks-plugin /
    mkdocs-awesome-pages-plugin /
    mkdocs-git-revision-date-localized-plugin /
    mkdocs-monorepo-plugin /
    mkdocs-roamlinks-plugin /
    mkdocs-minify-plugin

$ pip list | grep mkdocs-*
mkdocs                                    1.1.2
mkdocs-autolinks-plugin                   0.4.0
mkdocs-awesome-pages-plugin               2.5.0
mkdocs-git-revision-date-localized-plugin 0.9.2
mkdocs-minify-plugin                      0.4.0
mkdocs-monorepo-plugin                    0.4.14
mkdocs-roamlinks-plugin                   0.1.3

Configuration

plugins:
  - search
  - autolinks
  - roamlinks
  - awesome-pages
  - git-revision-date-localized:
      type: timeago
  - minify:
      minify_html: true
markdown_extensions:
  - toc:
      permalink: ⚑
      baselevel: 2
  - codehilite:
      linenums: false
      guess_lang: true
  - footnotes
  - abbr
  - admonition
  - meta
  - def_list

Apendix: 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 using Github pages.

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

  • an awesome website based on Material theme, complete with a search bar (Checkout this template published here)
  • get the Obsidian/Roam style [[wikilinks]] from your vault in your published notes
  • Toggle between light and dark mode

How to get started?

  1. Create a new github repository using this template
    • Give a name to your public notes repository in this step. 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.

Configuring your website

How do I arrange sections and pages?

By default, the sections and pages will follow the folder structure within /docs.

  • If you would like to arrange the pages manually, then use the nav option in the mkdocs.yml configuration file at the root of this repo to set custom page navigation.
    • For example, see the setup for the Blue Book at github. Managing each page using nav can become cumbersome as the number of notes increase though!
  • The Materials theme provides multiple options to arrange sections, use navigation tabs, and many other helpful navigation setups

Alternatives

Related

How to Install

  1. Download the ZIP or clone the repository
  2. Open the folder as a vault in Obsidian (File → Open Vault)
  3. Obsidian will prompt you to install required plugins

Stats

Stars

15

Forks

1

License

CC0-1.0

Last updated 59mo ago

Categories

Tags

mkdocsnotesobsidianpkmpublishwebsite