a tiny static website generator
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
legoman-2.tar.gz
(132.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
legoman-2-py3-none-any.whl
(134.9 kB
view details)
File details
Details for the file legoman-2.tar.gz.
File metadata
- Download URL: legoman-2.tar.gz
- Upload date:
- Size: 132.1 kB
- Tags: Source
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a0e5d3908ea1bdfd3677f92307226d4c6e45ffd2b29ff50d055e8cf094acd806
|
|
| MD5 |
29aa303a0dcac64179ea7768eaa96c1a
|
|
| BLAKE2b-256 |
244aa569648cd5731bcca1986c48282cc6445a37583bd5b8aa40ff37b303250b
|
File details
Details for the file legoman-2-py3-none-any.whl.
File metadata
- Download URL: legoman-2-py3-none-any.whl
- Upload date:
- Size: 134.9 kB
- Tags: Python 3
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3838b5cd8f676b7b93b860052c6c139a12dc86699616206bc3a260ab42641334
|
|
| MD5 |
6071a8701dcb383224396568a5bec369
|
|
| BLAKE2b-256 |
e900f49e2d287b98e092a93558127e7d3437d26bf98bc1749c73b8e1725f40cb
|