Build the kmalloc.org site generator in Go #1

Closed
opened 2026-11-15 08:35:28 +00:00 by squid · 0 comments
Owner

I want to replace the Python build script of kmalloc.org with a generator of its own, written in Go.

  • Reads a site directory: site.json, lang/*.json, content/<lang>/**/*.md, news/*.md, templates/, static/.
  • All pages are Markdown with a Key: value header ended by a - line. News carry Title, Author, Date, Categories and an optional Description, and are published as /news/YYYY/MM/name.html, with a page for every category.
  • Same output as the Python build, apart from the changes above and a "Powered by motorino" line in the footer.
  • Go code with doc comments, gofmt, go vet and staticcheck clean, one dependency (goldmark).
  • Released as a pinned linux/amd64 binary (version from semantic-release, SHA-256 checked by the deploy script).
I want to replace the Python build script of kmalloc.org with a generator of its own, written in Go. - Reads a site directory: `site.json`, `lang/*.json`, `content/<lang>/**/*.md`, `news/*.md`, `templates/`, `static/`. - All pages are Markdown with a `Key: value` header ended by a `-` line. News carry `Title`, `Author`, `Date`, `Categories` and an optional `Description`, and are published as `/news/YYYY/MM/name.html`, with a page for every category. - Same output as the Python build, apart from the changes above and a "Powered by motorino" line in the footer. - Go code with doc comments, `gofmt`, `go vet` and `staticcheck` clean, one dependency (goldmark). - Released as a pinned `linux/amd64` binary (version from semantic-release, SHA-256 checked by the deploy script).
squid closed this issue 2026-11-15 09:04:38 +00:00
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
squid/motorino#1
No description provided.