legoman
A tiny static web generator in 60 lines.
Supports TOC, image captions, LaTeX, code highlighting and tables.
Usage
pip install legoman
# in an empty directory
legoman init
make html
# run devserver (requires inotify-tools)
make devserver
How it works
.mdfiles are rendered using the template specified in their frontmatter.j2files are rendered with Jinja2. They can loop over.mdfiles 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
- Hugo - similar idea, but written in Go and uses Go's templating engine
Metadata
Release files for legoman 1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| legoman-1.tar.gz | 51.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| legoman-1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 105.4 kB
Release files / legoman-1.tar.gz
| Download URL | legoman-1.tar.gz |
|---|---|
| Size | 51.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
335b68e0e9ee6153e54388273fb4a739e480cfec0d2aa58e035832fe36fd1307
|
|
BLAKE2b-256 checksum How to use checksums |
5d67ae6e98db981a82f001f21f62fbf7323a61d64a3b2b521b071f7a83111a6c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.8
|
Release files / legoman-1-py3-none-any.whl
| Download URL | legoman-1-py3-none-any.whl |
|---|---|
| Size | 54.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ea786ead2e3c0068ab03359a6ac5b681470b7a80c21731fbf8bc0031b9c5b823
|
|
BLAKE2b-256 checksum How to use checksums |
ef7ea9954116b75965717efecf6b6542bab76ea9e70845778a51326b7c495784
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.8
|