Skip to content

twebz-gh/note

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Note

Install

For '.rpm' based linux: yum install pandoc.

For '.deb' based linux: apt install pandoc.

Get the source and install:

$ cd
$ mkdir app
$ cd app
$ git clone <url>
$ cd note
$ ./install.sh

This installs to ~/.local/bin. Make sure that directory is in your PATH.

Usage

Create a directory to hold your notes, and in it, make a file named .noteignore.

$ mkdir note-hobby
$ touch note-hobby/.noteignore

In the directory you created, create a file tree of your notes, like this example:

note-hobby/
    .noteignore
    rc-plane/
        hobby-zone-champ.md
        hobby-zone-sport-cub-s.md
        umx-radian.md
        delta-ray.md
    food/
        lasagna.md
        brats-n-kraut.md
        brown-butter.md

Build

Navigate to anywhere inside note-hobby/, then do:

$ note build

Then note will convert your files to an html tree in .build/. Navigate your browser to file:///.../.build/index.html.

Clean

Navigate to anywhere inside note-hobby/, then do:

$ note clean

Then note will delete the contents of .build/.

Ignore files

In each directory, in a file named .noteignore you can add one filename per line. Then note will ignore those filenames for that directory.

For a git-like syntax for ignores, see github bitranox/igittigitt. As of 2021-01, that was a more supported clone of mherrmann/gitignore_parser.

Development

todo

Fix pandoc bug: some lines in code block are incorrectly translated to html nchors.

Increase levels in TOC from 2 to 4.

Add ignore functionality.
Choose one of:

git-style ignore specification
a simpler, matching scheme that I implement in Python

Syntax highlighting.

Handle .rst files.

Implement user override for css, and js.

Implement note build show [file], or note show [file]?:
Detect appropriate browser and open .build/index.html, or file.html in a new tab.

Compatible w Python 2?

About

Make a static tree of web pages from markdown (and similar) source files.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published