import ManualDocBuilder from 'esdoc/src/Publisher/Builder/ManualDocBuilder.js'
Method Summary
Public Methods | ||
public |
exec(callback: function(html: string, filePath: string), callbackForCopy: function(src: string, dest: string)) execute building output. |
Private Methods | ||
private |
_buildManual(item: ManualConfigItem): IceCap build manual. |
|
private |
_buildManualIndex(manualConfig: ManualConfigItem[]): IceCap built manual index. |
|
private |
_buildManualNav(manualConfig: ManualConfigItem[]): IceCap build manual navigation. |
|
private |
_convertMDToHTML(item: ManualConfigItem): string convert markdown to html. |
|
private |
_getLabelSynonyms(label: string): string[] get label synonyms. |
|
private |
get manual config based on |
|
private |
get manual file name. |
Inherited Summary
From class DocBuilder | ||
private |
_config: * |
|
private |
_data: * |
|
public abstract |
execute building output. |
|
private |
_buildCoverageHTML(coverageObj: CoverageObject): string this method was deprecated.
build coverage html. |
|
private |
_buildDeprecatedHTML(doc: DocObject): string build deprecated html. |
|
private |
_buildDetailDocs(docs: DocObject[], title: string): IceCap build detail output html by docs. |
|
private |
build detail output html by parent doc. |
|
private |
build html link to identifier. |
|
private |
build html links to identifiers |
|
private |
build experimental html. |
|
private |
_buildFileDocLinkHTML(doc: DocObject, text: string): string build html link to file page. |
|
private |
build common layout output. |
|
private |
build common navigation output. |
|
private |
_buildOverrideMethod(doc: DocObject): string build method of ancestor class link html. |
|
private |
_buildProperties(properties: ParsedParam[], title: string): IceCap build properties output. |
|
private |
_buildSignatureHTML(doc: DocObject): string build identifier signature html. |
|
private |
_buildSummaryDoc(docs: DocObject[], title: string, innerLink: boolean): IceCap build summary output html by docs. |
|
private |
build summary output html by parent doc. |
|
private |
_buildTypeDocLinkHTML(typeName: string): string build html link of type. |
|
private |
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 |
get target's essential info. |
|
private |
_getOutputFileName(doc: DocObject): string 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 |
_readTemplate(fileName: string): string read html template. |
Public Methods
public exec(callback: function(html: string, filePath: string), callbackForCopy: function(src: string, dest: string)) source
execute building output.
Override:
DocBuilder#execPrivate Methods
private _buildManual(item: ManualConfigItem): IceCap source
build manual.
Params:
Name | Type | Attribute | Description |
item | ManualConfigItem | target manual config item. |
private _buildManualIndex(manualConfig: ManualConfigItem[]): IceCap source
built manual index.
Params:
Name | Type | Attribute | Description |
manualConfig | ManualConfigItem[] | target manual config. |
private _buildManualNav(manualConfig: ManualConfigItem[]): IceCap source
build manual navigation.
Params:
Name | Type | Attribute | Description |
manualConfig | ManualConfigItem[] | target manual config. |
private _convertMDToHTML(item: ManualConfigItem): string source
convert markdown to html.
if markdown has only one h1
and it's text is item.label
, remove the h1
.
because duplication h1
in output html.
Params:
Name | Type | Attribute | Description |
item | ManualConfigItem | target. |
private _getLabelSynonyms(label: string): string[] source
get label synonyms.
Params:
Name | Type | Attribute | Description |
label | string | target item label. |
private _getManualOutputFileName(item: ManualConfigItem): string source
get manual file name.
Params:
Name | Type | Attribute | Description |
item | ManualConfigItem | target manual config item. |