Function
| Static Public Summary | ||
| public |
dateForUTC(date: Date): string get UTC date string. |
|
| public |
convert markdown text to html. |
|
| public |
parseExample(example: string): {body: string, caption: string} parse |
|
| public |
publish(values: DocObject[], asts: AST[], config: ESDocConfig) publish document as HTML. |
|
| public |
shorten description. |
|
Static Public
public dateForUTC(date: Date): string source
import {dateForUTC} from 'esdoc/src/Publisher/Builder/util.js'get UTC date string.
Params:
| Name | Type | Attribute | Description |
| date | Date | target date object. |
public markdown(text: string, breaks: boolean): string source
import {markdown} from 'esdoc/src/Publisher/Builder/util.js'convert markdown text to html.
public parseExample(example: string): {body: string, caption: string} source
import {parseExample} from 'esdoc/src/Publisher/Builder/util.js'parse @example value.
@example value can have <caption> tag.
Params:
| Name | Type | Attribute | Description |
| example | string | target example value. |
public publish(values: DocObject[], asts: AST[], config: ESDocConfig) source
import publish from 'esdoc/src/Publisher/publish.js'publish document as HTML.
Params:
| Name | Type | Attribute | Description |
| values | DocObject[] | all doc objects. |
|
| asts | AST[] | all ASTs. |
|
| config | ESDocConfig | ESDoc config object. |
Test:
public shorten(doc: DocObject, asMarkdown: boolean): string source
import {shorten} from 'esdoc/src/Publisher/Builder/util.js'shorten description.
e.g. this is JavaScript. this is Java. => this is JavaScript..
TODO:
- shorten before process markdown.