Nim compiler has builtin doucmentation generation tools called -
doc2. They produce similar outputs, but
doc2 does macro processing in addition to what
Nim uses reStructuredText (ie.,
.rst) format for inline documentation.
If you have a file called
example.nim, you can generate documentation by:
nim doc example
The resulting HTML file will be
See Nim’s docgen page for more information.