Crates.io | rusty-notes |
lib.rs | rusty-notes |
version | 1.4.0 |
source | src |
created_at | 2024-07-21 16:40:53.93172 |
updated_at | 2024-09-22 02:23:32.980304 |
description | A markdown web-interface notebook. |
homepage | |
repository | https://github.com/mitnk/rusty-notes |
max_upload_size | |
id | 1310434 |
size | 314,124 |
A simple local Web-UI Notebook using Markdown.
$ cargo install -f rusty-notes
You need to a one-time setup like:
$ git clone https://github.com/mitnk/rusty-notes
$ cd rusty-notes
$ make setup DIR=~/rusty-notes
This will make a notebook for you at ~/rusty-notes
, you can make more
markdown notes under this directory. Sub-directories will be treated as
categories.
You can change the root directory, see "run server" section below.
export RUSTY_SERVER_ADDR=127.0.0.1:7777
export RUSTY_DIR_NOTES="$HOME/rusty-notes"
export RUSTY_DIR_TEMPLATES="$HOME/rusty-notes/static/templates"
nohup rusty-notes > /tmp/rusty-notes.log &
Static files under $RUSTY_DIR_NOTES/static/
can be access with URLs like:
static/img/hello.png
static/code/2024/foo.c
So that you have a local Markdown notebook tracked and backed up with Git. And
simply run rusty-notes
behind Nginx for a straightforward blogging system,
eliminating the need for a static HTML builder.