VAULTjimbrig
Obsidian_published
Using mkdocs to publish my obsidian vault. Main repo for the vault is https://github.com/jimbrig/obsidian_vault
Published Vault
Setup
MkDocs
pip install mkdocs
mkdocs build
mkdocs serve
mkdocs gh-deploy
Plugins
| Plugin | Version |
|---|---|
| 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 |
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?
- 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
mainbranch while create the repo from the template
- Give a name to your public notes repository in this step. By default your notes will be published at
- Clone the repository you generated into your Obsidian folder/vault.
- Move the notes you would like to make public to the
repo-name/docsfolder.- Easiest way to do this would be using drag and drop within Obsidian
- 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
navoption in themkdocs.ymlconfiguration 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
navcan become cumbersome as the number of notes increase though!
- For example, see the setup for the Blue Book at github. Managing each page using
- The Materials theme provides multiple options to arrange sections, use navigation tabs, and many other helpful navigation setups
Alternatives
- kmaasrud/oboe: tool to convert an Obsidian vault into a static directory of HTML files.
- Jackiexiao/foam-mkdocs-template: template for Obsidian/Foam using mkdocs/mkdocs-material/mkdocs-roamlinks-plugin
- foambubble/foam-template: Foam workpace template
How to Install
- Download the ZIP or clone the repository
- Open the folder as a vault in Obsidian (File → Open Vault)
- Obsidian will prompt you to install required plugins
Stats
Stars
15
Forks
1
License
CC0-1.0
Last updated 59mo ago
Categories
Tags
mkdocsnotesobsidianpkmpublishwebsite