[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

Slipbox

Slipbox

What is slipbox?

slipbox is a static site generator for Zettelkasten notes.

GitHub: https://github.com/lggruspe/slipbox

Slipbox: https://lggruspe.github.io/slipbox

Source: https://github.com/lggruspe/slipbox/blob/master/docs-src/index.md


#getting-started

How to install slipbox?

First, make sure that you have graphviz, pandoc and python installed. Your installation of Pandoc needs to be compiled with pandoc-types 1.22.

Then install using pip.

# Install slipbox.
pip install slipbox

#getting-started

How to use slipbox?

# Initialize `slipbox` in your notes directory.
cd my-notes
slipbox init

# Generate site.
slipbox build

# Show help.
slipbox -h

#writing-notes

#view-notes

#dot-slipbox

How to write notes?

Slipbox supports many formats: markdown, RST, LaTeX, dokuwiki, Org-mode, txt2tags, Textile and MediaWiki.

A “note” is just a section that begins with a level 1 header. The header must contain an ID (number) and a title. You can put any number of notes in one file.


#writing-notes

How to link to other notes?

Use the note ID as the link target. Ex: link ([link](#100)).

When you omit the link text, it just shows the target ID. Ex: [#100] ([](#100)).

You can also connect notes indirectly by #tagging them.


#writing-notes

How to link to images?

![Example](images/example.png)
Example

How to add citations?

(Cite Author 2020).

To enable citations, you need to specify a bibliography file in .slipbox/config.cfg.

[pandoc-options]
bibliography = example.bib

Click citation links to see the other notes that cite the same reference.

How to view the generated site?

# Generate the site.
slipbox build

# Go to the output directory (public/ by default, see .slipbox/config.cfg).
python -m http.server

# Go to localhost:8000 in your browser.

Tags: #view-notes

What does the .slipbox/ directory contain?

The .slipbox directory contains


#dot-slipbox

Which settings can you configure in ./slipbox/config.cfg?

[slipbox] section

output_directory
Contains the generated site
title
Site title

[note-patterns]

Contains glob patterns for finding notes.

Example:

[note-patterns]
*.md = true
*.markdown = true
*.draft.md = false

[pandoc-options]

bibliography
Bibliography file to be used by Pandoc

Foobar

Foobar.

Note with timestamp ID

You can use a timestamp as a note ID.

#dot-slipbox

#getting-started

#tagging

#view-notes

#writing-notes

Tags

@cite2020

Author. 2020. Title. https://example.com.

References

[@cite2020]
Author. 2020. Title. https://example.com.