Home Manual Reference Source Test Repository
import TestFileDocBuilder from 'esdoc/src/Publisher/Builder/TestFileDocBuilder.js'
public class | source

TestFileDocBuilder

Extends:

DocBuilder → TestFileDocBuilder

File output html builder class.

Method Summary

Public Methods
public

exec(callback: function(html: string, filePath: string))

execute building output html.

Private Methods
private

build file output html.

Inherited Summary

From class DocBuilder
private

_config: *

private

_data: *

public abstract

exec(callback: function)

execute building output.

private
this method was deprecated.

build coverage html.

private

build deprecated html.

private

build detail output html by docs.

private

_buildDetailHTML(doc: DocObject, kind: string, title: string, isStatic: boolean): string

build detail output html by parent doc.

private

_buildDocLinkHTML(longname: string, text: string, inner: boolean, kind: string): string

build html link to identifier.

private

_buildDocsLinkHTML(longnames: string[], text: string, inner: boolean, separator: string): string

build html links to identifiers

private

build experimental html.

private

build html link to file page.

private

build common layout output.

private

build common navigation output.

private

build method of ancestor class link html.

private

_buildProperties(properties: ParsedParam[], title: string): IceCap

build properties output.

private

build identifier signature html.

private

_buildSummaryDoc(docs: DocObject[], title: string, innerLink: boolean): IceCap

build summary output html by docs.

private

_buildSummaryHTML(doc: DocObject, kind: string, title: string, isStatic: boolean): string

build summary output html by parent doc.

private

build html link of type.

private

_find(cond: ...Object): DocObject[]

find doc object.

private

_findAccessDocs(doc: DocObject, kind: string, isStatic: boolean): Array[]

find doc object for each access.

private

_findAllIdentifiersKindGrouping(): {class: DocObject[], interface: DocObject[], function: DocObject[], variable: DocObject[], typedef: DocObject[], external: DocObject[]}

find all identifiers with kind grouping.

private

_findByName(name: string, kind: string): DocObject[]

fuzzy find doc object by name.

private

_getBaseUrl(fileName: string): string

get base url html page.

private

_getInfo(): {title: string, version: string, url: string}

get target's essential info.

private

get file name of output html page.

private

get output html page title.

private

gat url of output html page.

private

_orderedFind(order: string, cond: ...Object): DocObject[]

find doc objects that is ordered.

private

read html template.

Public Methods

public exec(callback: function(html: string, filePath: string)) source

execute building output html.

Override:

DocBuilder#exec

Params:

NameTypeAttributeDescription
callback function(html: string, filePath: string)

is called with each output.

Private Methods

private _buildFileDoc(doc: DocObject): string source

build file output html.

Params:

NameTypeAttributeDescription
doc DocObject

target file doc object.

Return:

string

html of file output.