DocumentationGenerator
Package: Libraries.Language.Compile.Documentation · Inherits from: Libraries.Language.Object
Actions
AddDefaultHeaders(Libraries.Web.Page.WebPage page)
The old page's headers: its language, character set and viewport.
Parameters
CreateHeaderSection(text header)
The old page's title section: the header's words, as a heading.
Parameters
headertext
Returns
GetFooter()
The old page's footer.
Returns
GetIconFolder()
Sets the folder the frame's icons are read from, from the folder the generator runs in.
Returns
text
GetPackageIndex()
The old page's package list, now empty.
Returns
GetRunFolder()
website's own, written out here so the pages need no files.
Returns
SetIconFolder(text folder)
Sets the folder the frame's icons are read from, from the folder the generator runs in.
Parameters
foldertext: The folder, ending in a slash.
SetRunFolder(Libraries.System.File file)
Parameters
Write(Libraries.Language.Compile.Library library, Libraries.Containers.HashTable<text:Libraries.Language.Compile.Translate.ClassOpcode> opcodeHash, boolean includeStandardLibrary)
Writes the documentation of a project's classes (the compiler's -document flag) into the run folder's Documents folder, in the same look as the standard library's: an index, a page for each package and a page for each class. The standard library's classes are left out unless asked for.
Parameters
libraryLibraries.Language.Compile.Library: The standard library.opcodeHashLibraries.Containers.HashTable<text:Libraries.Language.Compile.Translate.ClassOpcode>: The compiled classes, by key.includeStandardLibraryboolean: True to document the standard library's classes too.
Write(Libraries.Language.Compile.Library library)
Writes the standard library's documentation into the run folder's Documents folder, in the website's look: the index (libraries.html), a page for each package (Libraries/Containers/index.html) and a page for each class (Libraries/Containers/Array.html), and their stylesheet (style/library.css).
Parameters
libraryLibraries.Language.Compile.Library: The scanned standard library.