Discover Packages
github.com/zeozeozeo/trash
command
module
Version:
v0.0.0-...-2363b4a
Opens a new window with list of versions in this module.
Published: Aug 25, 2025
License: Unlicense
Opens a new window with license information.
Imports: 45
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
README
¶
Trash
Trash - a stupid, simple website compiler.
[!CAUTION]
The demos are quite ugly and unfinished, but the compiler itself is already pretty usable.
Features
$LaTeX$ expressions (no client-side JS!)
D2 diagram rendering (no JS still!)
Mermaid diagram rendering (yeah, still no client-side JS)
Pikchr diagram rendering (you guessed it)
Painless embedding of YouTube videos, HTML5 audio, and more in native Markdown
Syntax highlighting
Various Markdown extensions such as image <figure>s, image sizing, callouts, Pandoc-style fences, :emojis:, and more
YAML and TOML frontmatter parsing support
Automatic anchor placement
Automatially minifies output HTML, CSS, JS, JSON, SVG and XML for smallest builds
Under 800 lines of Go code in a single file
Installation
Install Go if you haven't yet.
$ go install github.com/zeozeozeo/trash@latest
Usage
$ trash help
Usage: trash <command> [directory]
A stupid, simple website compiler.
Commands:
init Initialize a new site in the directory (default: current).
build Build the site.
watch Watch for changes and rebuild.
serve Serve the site with live reload.
help Show this help message.
Expand ▾
Collapse ▴
Documentation
¶
Trash - a stupid, simple website compiler.
Licensing information at the bottom of this file.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.