Tya v0.51 Release Notes

Status: shipped. tya version reports 0.51.0 and ROADMAP.md carries the matching Released entry.

TL;DR

v0.51 adds the fourth toolchain subcommand: tya doc, a source documentation generator. It walks src/ (or any paths you pass), extracts top-level declarations with their leading #-comment block as Markdown, and produces either a plain-text dump or a multi-page static HTML site.

The language surface is unchanged from v0.49 / v0.50.

What’s new

tya doc

Text output (default):

$ tya doc
## function greet
    greet(name)
    src/greet.tya:2

    Returns a greeting for the given name.

HTML output:

$ tya doc --html ./docs/api
$ ls docs/api
index.html  items/  style.css

docs/api/index.html groups bindings by kind (modules, classes, interfaces, functions). Each binding has its own page under items/<kind>_<name>.html showing the signature, source location, and rendered Markdown body.

What gets documented

Markdown support

The renderer is self-contained (no new dependency). It covers:

Compatibility

Migration

Nothing required. Optional:

  1. Add doc comments above your top-level declarations so tya doc produces something meaningful.
  2. Run tya doc --html ./docs/api to publish HTML pages alongside your project.

Implementation notes

Looking ahead (v0.52+ candidates)

From ROADMAP.md § Future Work § Toolchain:

Self-host work (ROADMAP.md § Scheduled M8/M9/M10) remains deferred until the v1.0.0 prep window.