You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
evan 09309f5e1f cleanup readme, fix logo 2 weeks ago
demo update styles 3 months ago
legoman changed stuff 3 months ago
.gitignore fixup makefile, install reqs 11 months ago
MANIFEST.in move demo into demo/, cleanup makefile, setup.py 11 months ago
README.md cleanup readme, fix logo 2 weeks ago
setup.py bump version 3 months ago

README.md

legoman

Simple static website generator.

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

Demo

Usage

pip install legoman

# in an empty directory
legoman init
make html

# run devserver (requires inotify-tools)
make devserver

How it works

  • .md files are rendered using the template specified in their frontmatter
  • .j2 files are rendered with Jinja2. They can loop over .md files and access their metadata
  • all other files are symlinked to output/

For example, the demo content/:

content
├── 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
│   ├── bar_proj
│   │   └── index.html
│   └── foo_proj
│       ├── cheetos_small.png
│       └── index.html
└── styles.css

See also