paaloeye/zstd-live
Zig-native tool for generating live documentation from Zig standard library
A modern Zig-native tool for generating live documentation from Zig standard library
Live Documentation: zstd-live.pages.dev
zstd-live
generates beautiful, live documentation from Zig standard library source code.
It features a two-column layout inspired by docco.coffee, with documentation and public identifiers on the
left and syntax-highlighted source code on the right.
@import()
statements to clickable linksDownload the latest release for your platform from GitHub Releases:
Supported Platforms:
zstd-live-macos-x86_64.tar.gz
zstd-live-macos-aarch64.tar.gz
zstd-live-linux-x86_64.tar.gz
zstd-live-linux-aarch64.tar.gz
zstd-live-linux-riscv64.tar.gz
zstd-live-windows-x86_64.exe.zip
zstd-live-windows-aarch64.exe.zip
# Linux x86_64
curl -L https://github.com/paaloeye/zstd-live/releases/latest/download/zstd-live-linux-x86_64.tar.gz | tar xz
sudo mv zstd-live-linux-x86_64/zstd-live-linux-x86_64 /usr/local/bin/zstd-live
# macOS Apple Silicon
curl -L https://github.com/paaloeye/zstd-live/releases/latest/download/zstd-live-macos-aarch64.tar.gz | tar xz
sudo mv zstd-live-macos-aarch64/zstd-live-macos-aarch64 /usr/local/bin/zstd-live
# macOS Intel
curl -L https://github.com/paaloeye/zstd-live/releases/latest/download/zstd-live-macos-x86_64.tar.gz | tar xz
sudo mv zstd-live-macos-x86_64/zstd-live-macos-x86_64 /usr/local/bin/zstd-live
# Windows PowerShell
Invoke-WebRequest -Uri "https://github.com/paaloeye/zstd-live/releases/latest/download/zstd-live-windows-x86_64.exe.zip" -OutFile "zstd-live.zip"
Expand-Archive -Path "zstd-live.zip" -DestinationPath "."
# Add to PATH: $env:PATH += ";$(Get-Location)\zstd-live-windows-x86_64.exe"
# Verify installation
zstd-live version
git clone https://github.com/paaloeye/zstd-live.git
cd zstd-live
pre-commit install # Install code quality hooks (optional, for contributors)
make build
make install
# Generate docs for all supported Zig versions
zstd-live generate --all-versions --output ./docs
# Generate docs for specific version
zstd-live generate --version 0.14.1 --output ./docs
# Serve docs locally for development
zstd-live serve --port 8080
# Update Zig stdlib sources
zstd-live update
pip install pre-commit
# Build the application
make build
# Build release binaries for all supported platforms
make release
# Create release archives for all platforms
make release-archive
# Run tests
make test
# Format code
make format
# Generate documentation
make generate
# Serve locally
make serve
# Full development setup
make dev
# Complete release validation
make release-check
src/
├── main.zig # CLI entry point
├── generator.zig # Documentation generator
├── parser.zig # Zig source parser
├── template.zig # HTML template system
├── version_manager.zig # Multi-version support
├── file_utils.zig # File operations
└── config.zig # Configuration
.github/workflows/ # CI/CD pipelines
├── ci.yml # Test and build
├── ship.yml # Release automation
└── deploy.yml # Cloudflare deployment
assets/ # Static assets
├── styles.css # Enhanced styling
├── index.html # Landing page template
└── zig-stdlib-book.svg # Project logo
The tool currently supports these Zig versions (configurable in src/config.zig
):
0.15.0-master
(latest development)0.14.1
(latest stable)0.13.0
0.12.0
0.11.0
Generated documentation is organised as:
dist/
├── index.html # Version selector landing page
├── assets/ # Shared CSS, JS, images
├── 0.14.1/ # Version-specific docs
│ ├── std.zig.html
│ ├── array_list.zig.html
│ └── ...
└── 0.15.0-master/ # Latest development docs
├── std.zig.html
└── ...
The project is configured for automatic deployment to Cloudflare Pages:
main
branch trigger deploymentzstd-live.pages.dev
# Generate all documentation
make generate
We welcome contributions! Please see our contributing guidelines:
git checkout -b feat/amazing-feature
)make format
)make test
)git commit -m 'feat: add amazing feature'
)git push origin feat/amazing-feature
)Releases are automated via the Ship workflow:
# Create pre-release
git tag v2.1.0-beta.1
git push origin v2.1.0-beta.1
# Create stable release
git tag v2.1.0
git push origin v2.1.0
The workflow automatically:
The tool manages multiple Zig versions by:
This project is licensed under the MIT License - see the LICENCE file for details.
🤖 This README was generated with Claude Code