Document

Represents a document comprised of sections.

Constructors

this
this()

Constructs a new document.

Members

Functions

add
Document add(Section section)

Adds a section to this document.

add
Document add(string title, string body, Term[] terms)

Adds a section to this document.

add
Document add(string section, Term term)

Adds a term to a section matching the specified title (ANSI is stripped for matching).

add
Document add(string section, string term, string definition)

Adds a term to a section matching the specified title (ANSI is stripped for matching).

print
void print()

Prints this document to standard output.

section
const(Section) section(string title)

Gets a section associated with this document by its title (ANSI is stripped).

sections
const(Section[]) sections()

Gets the sections associated with this document.

Variables

sectionsList
Section[] sectionsList;

Sections associated with this document.