gtroff#
Work in progress. A pure-Go toolkit for a documented subset of roff/man; not a complete GNU groff replacement or a stable binary release.
Explore and validate roff syntax, inspect a source-aware AST, extract semantic man-page content and produce HTML or convert a documented HTML/man subset.
Start here#
- Getting started — build the CLI and process a first man page.
- Practical CLI workflows — commands, JSON, selections and automation.
- Go API examples — embed parsing and semantic inspection.
- Compatibility — boundaries and experimental features.
- Development and tests — generation, TXTAR and PR conventions.
- Full reference — AST, CLI, HTML, conversion and semantic man contracts.
Try it#
go build -o /tmp/gtroff ./cmd/gtroff
/tmp/gtroff validate --strict testdata/simple.1
/tmp/gtroff ast --format text testdata/simple.1
/tmp/gtroff render --format html -o /tmp/man.html examples/man-tool.1Documentation tracks the merged source. Image, server, desktop and release work may exist on feature branches but are not claimed to be in the default branch until integrated. See the source, PRs and issues.