: μάλοκδ :

KEW

super simple static site supplier

SYNOPSIS

kew <in> <out>

DESCRIPTION

kew is a minimal static site generator inspired by werc. It transforms a directory tree containing Markdown files and static assets into a fully static HTML website.

The filesystem defines structure, navigation, and meaning. There is no metadata, database, runtime server, or dynamic behaviour.

OPERATION

Given an input directory and an output directory, kew does this:

The resulting output directory is suitable to be directly served by any HTTP server.

MARKDOWN PROCESSING

Markdown files are converted to HTML using lowdown.

For every file:

page.html -> page.html

Relative links referring to .md files are rewritten to point to the correct .html files.

TEMPLATE

The HTML template is a regular HTML file located at the root of the input directory. Its filename is defined at compile time.

The template should contain the following placeholders:

All pages use the same template. No per-page templating is supported.

FILE LAYOUT

Example input layout:

in/
|-->index.md
|-->docs/
|   |-->system/
|       |-->init.md
|       |-->networking/
|           |-->ethernet.md
|
|-->style.html
|-->template.html

Corresponding output layout:

out/
|-->index.html
|-->docs/
|   |-->system/
|       |-->init.html
|       |-->networking/
|           |-->ethernet.html
|
|-->style.html
|-->template.html

CONFIGURATION

kew Edit config.go then recompile.

Configuration values:

EXIT STATUS

Standard exit status.

DEPENDENCIES

PHILOSOPHY

kew is intentionally opinionated, trying to follow the UNIX philosophy well enough.

Users are expected to understand basic filesystem concepts.

SEE ALSO

lowdown, httpd

AUTHORS

kew was written by uint.