trash

command module
v0.0.0-...-2363b4a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 25, 2025 License: Unlicense Imports: 45 Imported by: 0

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.

Documentation

Overview

Trash - a stupid, simple website compiler. Licensing information at the bottom of this file.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL