legoman
Simple static website generator.
Supports TOC, image captions, LaTeX, code highlighting and tables.
Quickstart
pip install legoman
# in an empty directory
legoman init
make html
# run devserver (requires inotify-tools)
make devserver
How it works
Files in content/ are rendered and copied to output/, so the directory structure of your rendered website matches the structure of your source files.
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
CGI
Legoman can also render files individually, which is useful for CGI scripts on a webserver.
TEMPLATE_DIR=/path/to/templates legoman_cgi example.md
Or for serving markdown with lighttpd:
$HTTP["url"] =~ "\.md$" {
setenv.set-environment = ("TEMPLATE_DIR" => "/path/to/templates/")
cgi.assign = (
".md" => "/path/to/legoman_cgi",
".j2" => "/path/to/legoman_cgi",
)
}
Usage
Usage: legoman [OPTIONS] COMMAND [ARGS]...
Options:
--debug
--content_dir PATH
--output_dir PATH
--template_dir PATH
--help Show this message and exit.
Commands:
build generate content
init initialize project
single render single file
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 3.0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| legoman-3.0.5.tar.gz | 32.4 kB | Without provenance | Details for legoman-3.0.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| legoman-3.0.5-py3-none-any.whl | Python 3 | none | any | Details for legoman-3.0.5-py3-none-any.whl |
Total release size: 64.8 kB
Release files / legoman-3.0.5.tar.gz
| Download URL | legoman-3.0.5.tar.gz |
|---|---|
| Size | 32.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d447d486e360e9d88f4df6bcb1086db1a02a777e9f6be395e3225838644d1e2d
|
|
BLAKE2b-256 checksum How to use checksums |
43d35497922b12b419bf559fb0705aeca5bd4185a25d4ddea3cce3b5a4fee551
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.10.4
|
Release files / legoman-3.0.5-py3-none-any.whl
| Download URL | legoman-3.0.5-py3-none-any.whl |
|---|---|
| Size | 32.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
250f572f2ec983a0975f8d2618ca555a6dd25a7c118befe07e7abe65701d0e88
|
|
BLAKE2b-256 checksum How to use checksums |
72fe9ffb4769a0b09228dded2a23e38feae5c32ff116a9639c4311fd0d3890d5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.10.4
|
Security for legoman 3.0.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.