A minimal documentation system.
Optimized for being learned, read and maintained. Generate a machine readable AST first, docs second.
Any file can be used as documentation. Place tripple forward slashes in front of lines that are to be used as documentation. See this example.
/// <keyword> ...args
Each header defines only one namespace.
Each function is associated with the last namespace.
Each class is associated with the last namespace.
Each struct is associated with the last namespace.
Each method is associated with the last class.
An overload is a type of method.
Each return is associated with the last function, method or overload.
Each param is associaated with the last function or method.
Each comment is associated with the last keyword.
Hyper-docs cli will output an AST. No args produces an HTML document.
hyper-docs /path/to/projects | ./bin/docs > path/to/api.html
Outputs an AST. See this example.
Outputs markdown or html.