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
- Dozens of other static website generators
Metadata
Release files for legoman 2
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-2.tar.gz | 132.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| legoman-2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 267.1 kB
Release files / legoman-2.tar.gz
| Download URL | legoman-2.tar.gz |
|---|---|
| Size | 132.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a0e5d3908ea1bdfd3677f92307226d4c6e45ffd2b29ff50d055e8cf094acd806
|
|
BLAKE2b-256 checksum How to use checksums |
244aa569648cd5731bcca1986c48282cc6445a37583bd5b8aa40ff37b303250b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.9
|
Release files / legoman-2-py3-none-any.whl
| Download URL | legoman-2-py3-none-any.whl |
|---|---|
| Size | 134.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3838b5cd8f676b7b93b860052c6c139a12dc86699616206bc3a260ab42641334
|
|
BLAKE2b-256 checksum How to use checksums |
e900f49e2d287b98e092a93558127e7d3437d26bf98bc1749c73b8e1725f40cb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.9
|