The official website of Mallok, the
Cloudflare-native CMS. English and Simplified Chinese (/zh-cn/).
Plain static HTML and CSS generated by a small Python script (standard library only), plus one short script for the theme toggle and header menus. Served from Cloudflare Workers Static Assets.
| Path | What |
|---|---|
src/ |
Page generator: build.py, one module per page, layout.py, tokens.py (colour tokens, with an AA contrast check), check.py (structural checks) |
public/ |
Everything that is served. HTML pages are generated; edit src/, not the HTML. public/assets/ holds the hand-written CSS/JS, fonts and the brand kit |
public/design/ |
The UI-language design board the site was built from |
redirect/ |
A tiny Worker that 301s www.mallok.dev to mallok.dev |
NOTES.md |
Design notes and decisions |
python3 src/build.py
python3 src/check.py
python3 -m http.server 4400 --directory publicsrc/fetch_fonts.py downloads Figtree (SIL OFL 1.1) into
public/assets/fonts/; the files are already committed.
Needs npx wrangler@4.166.0 login with an account that has the mallok.dev
zone.
npx wrangler@4.166.0 deploy # mallok.dev
(cd redirect && npx wrangler@4.166.0 deploy) # www.mallok.dev -> mallok.devEvery claim on the site (release status, CPU measurements, cost ladder,
commands) comes from the Mallok repository's README.md and docs/
(RELEASE_STATUS.md, PRODUCT_VISION.md). When those change, update the
pages here.
Code is Apache-2.0 (see LICENSE). The Mallok name and logos are trademarks
of the Fobstack project; see Mallok's
TRADEMARK.md.
Figtree is under the SIL Open Font License 1.1
(public/assets/fonts/OFL.txt).
