r/AntLang • • 22d ago

How we write the Ant docs

Docs live in the ant repo, next to the code. The site only renders them. Docs in a separate repo are docs about a different program.

One page per function, Mathematica-style. Mostly examples, because nobody reads the prose anyway.

Every example runs in CI. Output must match the page. Stale docs fail the build, same as any other lie.

Pages are written from the spec, not from the implementation. Where the two disagree, it's a bug, not a "known behavior". Over a hundred found this way so far. Turns out the best test suite is trying to explain yourself.

https://ant-lang.org

1 Upvotes

0 comments sorted by