Giter Site home page Giter Site logo

kmcgillivray / obsidian-lettersmith Goto Github PK

View Code? Open in Web Editor NEW
62.0 5.0 6.0 7 KB

Transform any Obsidian vault (or any folder of markdown files) into a backlink-powered static website using Lettersmith.

Python 64.47% HTML 34.09% CSS 1.43%
static-site-generator

obsidian-lettersmith's Introduction

Lettersmith Obsidian Scaffold

Transform any Obsidian vault (or any folder of markdown files, really) into a backlink-powered static website using Lettersmith.

Getting started

Option 1: Start from scratch

To start from a fresh folder of notes...

  1. Clone or download this repository.
  2. Follow the directions in the Lettersmith readme to install Lettersmith.
  3. Edit the notes with Obsidian or your favorite text editor.
  4. Optional: Edit site_title in build.py to your site's title.
  5. Run python3 build.py from the repository directory to build the site.

Option 2: Add to an existing Obsidian vault

  1. Clone or download this repository
  2. Copy build.py, templates/ and static/ into your vault folder
  3. Optionally copy index.md as a placeholder home page if you don't have one already.
  4. Follow the directions in the Lettersmith readme to install Lettersmith if you haven't installed it already.
  5. Optional: Edit site_title in build.py to your site's title.
  6. Run python3 build.py from the vault directory to build the site.

Viewing the site

The site is generated into public/. Lettersmith doesn't include a local web server for previewing the site, so you'll need to serve the site separately to see it.

Deploying

For start-to-finish instructions for deploying the site to Netlify, see Buster's helpful instructions here.

Features

Backlinks

Lettersmith will process backlinks with double square bracket notation: [[link]] just like Obsidian.

Drafts

Place an underscore in front of the file name to mark a note as a draft. It won't be included in the generated site.

Home page

Create an index.md file in the root of the Obsidian vault to serve as a home page. It will be given a separate template that displays the site title.

Minimal site design

The included templates are very minimal and unstyled so you can modify them to your liking.

Missing features...

Currently the Lettersmith/Obsidian conversion doesn't support...

  • Tags
  • ... and most likely other Obsidian features

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.