Home Reference Source Test
public class | source

Documenter

Generates markdown documentation for commands.

Example:

Documenter.generate();
Documenter.generate(cmds);
Documenter.generate(cmds, "to/a/path.md");

Static Method Summary

Static Public Methods
public static

generate(commands: Command[], path: string)

Generates documentation and write to file.

Static Public Methods

public static generate(commands: Command[], path: string) source

Generates documentation and write to file.

Params:

NameTypeAttributeDescription
commands Command[]
  • optional
  • default: defaultCommands

Defaults to exported commands

path string
  • optional
  • default: "manual/usage.md"

File to write to

Example:

Documenter.generate();
Documenter.generate(cmds);
Documenter.generate(cmds, "to/a/path.md");