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#

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.1

Documentation 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.