SYNOPSIS
A minimal documentation system.
MOTIVATION
Optimized for being learned, read and maintained. Generate a machine readable AST first, docs second.
SYNTAX
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
KEYWORDS
name
namespace Each header defines only one namespace.
name(...args)
function Each function is associated with the last namespace.
name
class Each class is associated with the last namespace.
name
struct Each struct is associated with the last namespace.
name(...args)
method Each method is associated with the last class.
name(...args)
overload An overload is a type of method.
type
return Each return is associated with the last function, method or overload.
name
text...
param Each param is associaated with the last function or method.
text...
comment Each comment is associated with the last keyword.
CLI
Hyper-docs cli will output an AST. No args produces an HTML document.
hyper-docs /path/to/projects | ./bin/docs > path/to/api.html
PARSER
Outputs an AST. See this example.
COMPILER
Outputs markdown or html.