Evidlo/legoman: Minimal static website generator
github.comยท5h
Preview
Report Post

legoman

Simple static website generator.

Supports TOC, image captions, LaTeX, code highlighting and tables.

Demo

Quickstart

pip install legoman

# in an empty directory
legoman init
make html

# run devserver (requires inotify-tools)
make devserver

How it works

Files in the root directory are rendered and copied to output/, so the directory structure of your rendered website matches the structure of your source files.

For example, a project with this structure:

[project_root]
โ”œโ”€โ”€ codehilite.css
โ”œโ”€โ”€ index.j2
โ”œโ”€โ”€ projects
โ”‚ย ย  โ”œโ”€โ”€ bar_proj
โ”‚ย ย  โ”‚ย ย  โ””โ”€โ”€ index.md
โ”‚ย ย  โ””โ”€โ”€ foo_proj
โ”‚ย ย      โ”œโ”€โ”€ cheetos_small.png
โ”‚ย ย      โ””โ”€โ”€ index.md
โ””โ”€โ”€ styles.css

yields this output/

output
โ”œโ”€โ”€ codehilite.css
โ”œโ”€โ”€ index.html
โ”œโ”€โ”€ projects
โ”‚ย ย  โ”œโ”€โ”€ ...

Similar Posts

Loading similar posts...