@microsoft/api-documenter 7.13.66 → 7.13.70
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.json
CHANGED
|
@@ -1,6 +1,66 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@microsoft/api-documenter",
|
|
3
3
|
"entries": [
|
|
4
|
+
{
|
|
5
|
+
"version": "7.13.70",
|
|
6
|
+
"tag": "@microsoft/api-documenter_v7.13.70",
|
|
7
|
+
"date": "Tue, 30 Nov 2021 20:18:41 GMT",
|
|
8
|
+
"comments": {
|
|
9
|
+
"dependency": [
|
|
10
|
+
{
|
|
11
|
+
"comment": "Updating dependency \"@rushstack/heft-node-rig\" to `1.2.32`"
|
|
12
|
+
}
|
|
13
|
+
]
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"version": "7.13.69",
|
|
18
|
+
"tag": "@microsoft/api-documenter_v7.13.69",
|
|
19
|
+
"date": "Mon, 29 Nov 2021 07:26:16 GMT",
|
|
20
|
+
"comments": {
|
|
21
|
+
"dependency": [
|
|
22
|
+
{
|
|
23
|
+
"comment": "Updating dependency \"@rushstack/heft\" to `0.42.3`"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"comment": "Updating dependency \"@rushstack/heft-node-rig\" to `1.2.31`"
|
|
27
|
+
}
|
|
28
|
+
]
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"version": "7.13.68",
|
|
33
|
+
"tag": "@microsoft/api-documenter_v7.13.68",
|
|
34
|
+
"date": "Tue, 09 Nov 2021 01:09:37 GMT",
|
|
35
|
+
"comments": {
|
|
36
|
+
"patch": [
|
|
37
|
+
{
|
|
38
|
+
"comment": "Links to enum members go to the enum page in markdown output"
|
|
39
|
+
}
|
|
40
|
+
]
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"version": "7.13.67",
|
|
45
|
+
"tag": "@microsoft/api-documenter_v7.13.67",
|
|
46
|
+
"date": "Sat, 06 Nov 2021 00:09:13 GMT",
|
|
47
|
+
"comments": {
|
|
48
|
+
"dependency": [
|
|
49
|
+
{
|
|
50
|
+
"comment": "Updating dependency \"@microsoft/api-extractor-model\" to `7.13.16`"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"comment": "Updating dependency \"@rushstack/node-core-library\" to `3.43.2`"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"comment": "Updating dependency \"@rushstack/heft\" to `0.42.2`"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"comment": "Updating dependency \"@rushstack/heft-node-rig\" to `1.2.30`"
|
|
60
|
+
}
|
|
61
|
+
]
|
|
62
|
+
}
|
|
63
|
+
},
|
|
4
64
|
{
|
|
5
65
|
"version": "7.13.66",
|
|
6
66
|
"tag": "@microsoft/api-documenter_v7.13.66",
|
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,28 @@
|
|
|
1
1
|
# Change Log - @microsoft/api-documenter
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Tue, 30 Nov 2021 20:18:41 GMT and should not be manually modified.
|
|
4
|
+
|
|
5
|
+
## 7.13.70
|
|
6
|
+
Tue, 30 Nov 2021 20:18:41 GMT
|
|
7
|
+
|
|
8
|
+
_Version update only_
|
|
9
|
+
|
|
10
|
+
## 7.13.69
|
|
11
|
+
Mon, 29 Nov 2021 07:26:16 GMT
|
|
12
|
+
|
|
13
|
+
_Version update only_
|
|
14
|
+
|
|
15
|
+
## 7.13.68
|
|
16
|
+
Tue, 09 Nov 2021 01:09:37 GMT
|
|
17
|
+
|
|
18
|
+
### Patches
|
|
19
|
+
|
|
20
|
+
- Links to enum members go to the enum page in markdown output
|
|
21
|
+
|
|
22
|
+
## 7.13.67
|
|
23
|
+
Sat, 06 Nov 2021 00:09:13 GMT
|
|
24
|
+
|
|
25
|
+
_Version update only_
|
|
4
26
|
|
|
5
27
|
## 7.13.66
|
|
6
28
|
Fri, 05 Nov 2021 15:09:18 GMT
|
package/dist/tsdoc-metadata.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MarkdownDocumenter.d.ts","sourceRoot":"","sources":["../../src/documenters/MarkdownDocumenter.ts"],"names":[],"mappings":"AAoBA,OAAO,EACL,QAAQ,EAsBT,MAAM,gCAAgC,CAAC;AAgBxC,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAGtD,MAAM,WAAW,0BAA0B;IACzC,QAAQ,EAAE,QAAQ,CAAC;IACnB,gBAAgB,EAAE,gBAAgB,GAAG,SAAS,CAAC;IAC/C,YAAY,EAAE,MAAM,CAAC;CACtB;AAED;;;GAGG;AACH,qBAAa,kBAAkB;IAC7B,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAW;IACrC,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAA+B;IACjE,OAAO,CAAC,QAAQ,CAAC,mBAAmB,CAAqB;IACzD,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAwB;IACzD,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAS;IACvC,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAe;gBAE1B,OAAO,EAAE,0BAA0B;IAU/C,aAAa,IAAI,IAAI;IAyB5B,OAAO,CAAC,iBAAiB;IAiNzB,OAAO,CAAC,mBAAmB;IAmF3B,OAAO,CAAC,oBAAoB;IA8B5B,OAAO,CAAC,mBAAmB;IAsB3B;;OAEG;IACH,OAAO,CAAC,gBAAgB;IA4BxB;;OAEG;IACH,OAAO,CAAC,8BAA8B;IA0HtC;;OAEG;IACH,OAAO,CAAC,iBAAiB;IAiGzB;;OAEG;IACH,OAAO,CAAC,gBAAgB;IAoCxB;;OAEG;IACH,OAAO,CAAC,qBAAqB;IAyE7B;;OAEG;IACH,OAAO,CAAC,qBAAqB;IAqD7B,OAAO,CAAC,8BAA8B;IActC,O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tC;;OAEG;IACH,OAAO,CAAC,iBAAiB;IAiGzB;;OAEG;IACH,OAAO,CAAC,gBAAgB;IAoCxB;;OAEG;IACH,OAAO,CAAC,qBAAqB;IAyE7B;;OAEG;IACH,OAAO,CAAC,qBAAqB;IAqD7B,OAAO,CAAC,8BAA8B;IActC,OAAO,CAAC,4BAA4B;IAMpC,OAAO,CAAC,iCAAiC;IAgCzC,OAAO,CAAC,gBAAgB;IAoBxB;;;;;;OAMG;IACH,OAAO,CAAC,sBAAsB;IAkC9B,OAAO,CAAC,oBAAoB;IAc5B,OAAO,CAAC,uBAAuB;IAY/B,OAAO,CAAC,gBAAgB;IAmCxB,OAAO,CAAC,iBAAiB;IAYzB,OAAO,CAAC,cAAc;IAMtB,OAAO,CAAC,sBAAsB;IAgB9B,OAAO,CAAC,sBAAsB;IAgC9B,OAAO,CAAC,0BAA0B;IAIlC,OAAO,CAAC,qBAAqB;CAI9B"}
|
|
@@ -882,6 +882,7 @@ class MarkdownDocumenter {
|
|
|
882
882
|
switch (hierarchyItem.kind) {
|
|
883
883
|
case "Model" /* Model */:
|
|
884
884
|
case "EntryPoint" /* EntryPoint */:
|
|
885
|
+
case "EnumMember" /* EnumMember */:
|
|
885
886
|
break;
|
|
886
887
|
case "Package" /* Package */:
|
|
887
888
|
baseName = Utilities_1.Utilities.getSafeFilenameForName(node_core_library_1.PackageName.getUnscopedName(hierarchyItem.displayName));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MarkdownDocumenter.js","sourceRoot":"","sources":["../../src/documenters/MarkdownDocumenter.ts"],"names":[],"mappings":";AAAA,4FAA4F;AAC5F,2DAA2D;;;;;;;;;;;;;;;;;;;;;;AAE3D,2CAA6B;AAC7B,oEAAoF;AACpF,4CAc0B;AAC1B,wEAuBwC;AAExC,kEAA4D;AAC5D,oDAAiD;AACjD,gDAA6C;AAC7C,8DAA2D;AAC3D,sDAAmD;AACnD,wDAAqD;AACrD,oDAAiD;AACjD,kDAA+C;AAC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AsB,CAAC,OAAO,CAAC,CAAC;IACrD,CAAC;IAEO,qBAAqB;QAC3B,OAAO,CAAC,GAAG,CAAC,2BAA2B,GAAG,IAAI,CAAC,aAAa,CAAC,CAAC;QAC9D,8BAAU,CAAC,iBAAiB,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;IACnD,CAAC;CACF;AAriCD,gDAqiCC","sourcesContent":["// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.\r\n// See LICENSE in the project root for license information.\r\n\r\nimport * as path from 'path';\r\nimport { PackageName, FileSystem, NewlineKind } from '@rushstack/node-core-library';\r\nimport {\r\n DocSection,\r\n DocPlainText,\r\n DocLinkTag,\r\n TSDocConfiguration,\r\n StringBuilder,\r\n DocNodeKind,\r\n DocParagraph,\r\n DocCodeSpan,\r\n DocFencedCode,\r\n StandardTags,\r\n DocBlock,\r\n DocComment,\r\n DocNodeContainer\r\n} from '@microsoft/tsdoc';\r\nimport {\r\n ApiModel,\r\n ApiItem,\r\n ApiEnum,\r\n ApiPackage,\r\n ApiItemKind,\r\n ApiReleaseTagMixin,\r\n ApiDocumentedItem,\r\n ApiClass,\r\n ReleaseTag,\r\n ApiStaticMixin,\r\n ApiPropertyItem,\r\n ApiInterface,\r\n Excerpt,\r\n ApiParameterListMixin,\r\n ApiReturnTypeMixin,\r\n ApiDeclaredItem,\r\n ApiNamespace,\r\n ExcerptTokenKind,\r\n IResolveDeclarationReferenceResult,\r\n ApiTypeAlias,\r\n ExcerptToken,\r\n ApiOptionalMixin\r\n} from '@microsoft/api-extractor-model';\r\n\r\nimport { CustomDocNodes } from '../nodes/CustomDocNodeKind';\r\nimport { DocHeading } from '../nodes/DocHeading';\r\nimport { DocTable } from '../nodes/DocTable';\r\nimport { DocEmphasisSpan } from '../nodes/DocEmphasisSpan';\r\nimport { DocTableRow } from '../nodes/DocTableRow';\r\nimport { DocTableCell } from '../nodes/DocTableCell';\r\nimport { DocNoteBox } from '../nodes/DocNoteBox';\r\nimport { Utilities } from '../utils/Utilities';\r\nimport { CustomMarkdownEmitter } from '../markdown/CustomMarkdownEmitter';\r\nimport { PluginLoader } from '../plugin/PluginLoader';\r\nimport {\r\n IMarkdownDocumenterFeatureOnBeforeWritePageArgs,\r\n MarkdownDocumenterFeatureContext\r\n} from '../plugin/MarkdownDocumenterFeature';\r\nimport { DocumenterConfig } from './DocumenterConfig';\r\nimport { MarkdownDocumenterAccessor } from '../plugin/MarkdownDocumenterAccessor';\r\n\r\nexport interface IMarkdownDocumenterOptions {\r\n apiModel: ApiModel;\r\n documenterConfig: DocumenterConfig | undefined;\r\n outputFolder: string;\r\n}\r\n\r\n/**\r\n * Renders API documentation in the Markdown file format.\r\n * For more info: https://en.wikipedia.org/wiki/Markdown\r\n */\r\nexport class MarkdownDocumenter {\r\n private readonly _apiModel: ApiModel;\r\n private readonly _documenterConfig: DocumenterConfig | undefined;\r\n private readonly _tsdocConfiguration: TSDocConfiguration;\r\n private readonly _markdownEmitter: CustomMarkdownEmitter;\r\n private readonly _outputFolder: string;\r\n private readonly _pluginLoader: PluginLoader;\r\n\r\n public constructor(options: IMarkdownDocumenterOptions) {\r\n this._apiModel = options.apiModel;\r\n this._documenterConfig = options.documenterConfig;\r\n this._outputFolder = options.outputFolder;\r\n this._tsdocConfiguration = CustomDocNodes.configuration;\r\n this._markdownEmitter = new CustomMarkdownEmitter(this._apiModel);\r\n\r\n this._pluginLoader = new PluginLoader();\r\n }\r\n\r\n public generateFiles(): void {\r\n if (this._documenterConfig) {\r\n this._pluginLoader.load(this._documenterConfig, () => {\r\n return new MarkdownDocumenterFeatureContext({\r\n apiModel: this._apiModel,\r\n outputFolder: this._outputFolder,\r\n documenter: new MarkdownDocumenterAccessor({\r\n getLinkForApiItem: (apiItem: ApiItem) => {\r\n return this._getLinkFilenameForApiItem(apiItem);\r\n }\r\n })\r\n });\r\n });\r\n }\r\n\r\n console.log();\r\n this._deleteOldOutputFiles();\r\n\r\n this._writeApiItemPage(this._apiModel);\r\n\r\n if (this._pluginLoader.markdownDocumenterFeature) {\r\n this._pluginLoader.markdownDocumenterFeature.onFinished({});\r\n }\r\n }\r\n\r\n private _writeApiItemPage(apiItem: ApiItem): void {\r\n const configuration: TSDocConfiguration = this._tsdocConfiguration;\r\n const output: DocSection = new DocSection({ configuration: this._tsdocConfiguration });\r\n\r\n this._writeBreadcrumb(output, apiItem);\r\n\r\n const scopedName: string = apiItem.getScopedNameWithinPackage();\r\n\r\n switch (apiItem.kind) {\r\n case ApiItemKind.Class:\r\n output.appendNode(new DocHeading({ configuration, title: `${scopedName} class` }));\r\n break;\r\n case ApiItemKind.Enum:\r\n output.appendNode(new DocHeading({ configuration, title: `${scopedName} enum` }));\r\n break;\r\n case ApiItemKind.Interface:\r\n output.appendNode(new DocHeading({ configuration, title: `${scopedName} interface` }));\r\n break;\r\n case ApiItemKind.Constructor:\r\n case ApiItemKind.ConstructSignature:\r\n output.appendNode(new DocHeading({ configuration, title: scopedName }));\r\n break;\r\n case ApiItemKind.Method:\r\n case ApiItemKind.MethodSignature:\r\n output.appendNode(new DocHeading({ configuration, title: `${scopedName} method` }));\r\n break;\r\n case ApiItemKind.Function:\r\n output.appendNode(new DocHeading({ configuration, title: `${scopedName} function` }));\r\n break;\r\n case ApiItemKind.Model:\r\n output.appendNode(new DocHeading({ configuration, title: `API Reference` }));\r\n break;\r\n case ApiItemKind.Namespace:\r\n output.appendNode(new DocHeading({ configuration, title: `${scopedName} namespace` }));\r\n break;\r\n case ApiItemKind.Package:\r\n console.log(`Writing ${apiItem.displayName} package`);\r\n const unscopedPackageName: string = PackageName.getUnscopedName(apiItem.displayName);\r\n output.appendNode(new DocHeading({ configuration, title: `${unscopedPackageName} package` }));\r\n break;\r\n case ApiItemKind.Property:\r\n case ApiItemKind.PropertySignature:\r\n output.appendNode(new DocHeading({ configuration, title: `${scopedName} property` }));\r\n break;\r\n case ApiItemKind.TypeAlias:\r\n output.appendNode(new DocHeading({ configuration, title: `${scopedName} type` }));\r\n break;\r\n case ApiItemKind.Variable:\r\n output.appendNode(new DocHeading({ configuration, title: `${scopedName} variable` }));\r\n break;\r\n default:\r\n throw new Error('Unsupported API item kind: ' + apiItem.kind);\r\n }\r\n\r\n if (ApiReleaseTagMixin.isBaseClassOf(apiItem)) {\r\n if (apiItem.releaseTag === ReleaseTag.Beta) {\r\n this._writeBetaWarning(output);\r\n }\r\n }\r\n\r\n const decoratorBlocks: DocBlock[] = [];\r\n\r\n if (apiItem instanceof ApiDocumentedItem) {\r\n const tsdocComment: DocComment | undefined = apiItem.tsdocComment;\r\n\r\n if (tsdocComment) {\r\n decoratorBlocks.push(\r\n ...tsdocComment.customBlocks.filter(\r\n (block) => block.blockTag.tagNameWithUpperCase === StandardTags.decorator.tagNameWithUpperCase\r\n )\r\n );\r\n\r\n if (tsdocComment.deprecatedBlock) {\r\n output.appendNode(\r\n new DocNoteBox({ configuration: this._tsdocConfiguration }, [\r\n new DocParagraph({ configuration: this._tsdocConfiguration }, [\r\n new DocPlainText({\r\n configuration: this._tsdocConfiguration,\r\n text: 'Warning: This API is now obsolete. '\r\n })\r\n ]),\r\n ...tsdocComment.deprecatedBlock.content.nodes\r\n ])\r\n );\r\n }\r\n\r\n this._appendSection(output, tsdocComment.summarySection);\r\n }\r\n }\r\n\r\n if (apiItem instanceof ApiDeclaredItem) {\r\n if (apiItem.excerpt.text.length > 0) {\r\n output.appendNode(\r\n new DocParagraph({ configuration }, [\r\n new DocEmphasisSpan({ configuration, bold: true }, [\r\n new DocPlainText({ configuration, text: 'Signature:' })\r\n ])\r\n ])\r\n );\r\n output.appendNode(\r\n new DocFencedCode({\r\n configuration,\r\n code: apiItem.getExcerptWithModifiers(),\r\n language: 'typescript'\r\n })\r\n );\r\n }\r\n\r\n this._writeHeritageTypes(output, apiItem);\r\n }\r\n\r\n if (decoratorBlocks.length > 0) {\r\n output.appendNode(\r\n new DocParagraph({ configuration }, [\r\n new DocEmphasisSpan({ configuration, bold: true }, [\r\n new DocPlainText({ configuration, text: 'Decorators:' })\r\n ])\r\n ])\r\n );\r\n for (const decoratorBlock of decoratorBlocks) {\r\n output.appendNodes(decoratorBlock.content.nodes);\r\n }\r\n }\r\n\r\n let appendRemarks: boolean = true;\r\n switch (apiItem.kind) {\r\n case ApiItemKind.Class:\r\n case ApiItemKind.Interface:\r\n case ApiItemKind.Namespace:\r\n case ApiItemKind.Package:\r\n this._writeRemarksSection(output, apiItem);\r\n appendRemarks = false;\r\n break;\r\n }\r\n\r\n switch (apiItem.kind) {\r\n case ApiItemKind.Class:\r\n this._writeClassTables(output, apiItem as ApiClass);\r\n break;\r\n case ApiItemKind.Enum:\r\n this._writeEnumTables(output, apiItem as ApiEnum);\r\n break;\r\n case ApiItemKind.Interface:\r\n this._writeInterfaceTables(output, apiItem as ApiInterface);\r\n break;\r\n case ApiItemKind.Constructor:\r\n case ApiItemKind.ConstructSignature:\r\n case ApiItemKind.Method:\r\n case ApiItemKind.MethodSignature:\r\n case ApiItemKind.Function:\r\n this._writeParameterTables(output, apiItem as ApiParameterListMixin);\r\n this._writeThrowsSection(output, apiItem);\r\n break;\r\n case ApiItemKind.Namespace:\r\n this._writePackageOrNamespaceTables(output, apiItem as ApiNamespace);\r\n break;\r\n case ApiItemKind.Model:\r\n this._writeModelTable(output, apiItem as ApiModel);\r\n break;\r\n case ApiItemKind.Package:\r\n this._writePackageOrNamespaceTables(output, apiItem as ApiPackage);\r\n break;\r\n case ApiItemKind.Property:\r\n case ApiItemKind.PropertySignature:\r\n break;\r\n case ApiItemKind.TypeAlias:\r\n break;\r\n case ApiItemKind.Variable:\r\n break;\r\n default:\r\n throw new Error('Unsupported API item kind: ' + apiItem.kind);\r\n }\r\n\r\n if (appendRemarks) {\r\n this._writeRemarksSection(output, apiItem);\r\n }\r\n\r\n const filename: string = path.join(this._outputFolder, this._getFilenameForApiItem(apiItem));\r\n const stringBuilder: StringBuilder = new StringBuilder();\r\n\r\n stringBuilder.append(\r\n '<!-- Do not edit this file. It is automatically generated by API Documenter. -->\\n\\n'\r\n );\r\n\r\n this._markdownEmitter.emit(stringBuilder, output, {\r\n contextApiItem: apiItem,\r\n onGetFilenameForApiItem: (apiItemForFilename: ApiItem) => {\r\n return this._getLinkFilenameForApiItem(apiItemForFilename);\r\n }\r\n });\r\n\r\n let pageContent: string = stringBuilder.toString();\r\n\r\n if (this._pluginLoader.markdownDocumenterFeature) {\r\n // Allow the plugin to customize the pageContent\r\n const eventArgs: IMarkdownDocumenterFeatureOnBeforeWritePageArgs = {\r\n apiItem: apiItem,\r\n outputFilename: filename,\r\n pageContent: pageContent\r\n };\r\n this._pluginLoader.markdownDocumenterFeature.onBeforeWritePage(eventArgs);\r\n pageContent = eventArgs.pageContent;\r\n }\r\n\r\n FileSystem.writeFile(filename, pageContent, {\r\n convertLineEndings: this._documenterConfig ? this._documenterConfig.newlineKind : NewlineKind.CrLf\r\n });\r\n }\r\n\r\n private _writeHeritageTypes(output: DocSection, apiItem: ApiDeclaredItem): void {\r\n const configuration: TSDocConfiguration = this._tsdocConfiguration;\r\n\r\n if (apiItem instanceof ApiClass) {\r\n if (apiItem.extendsType) {\r\n const extendsParagraph: DocParagraph = new DocParagraph({ configuration }, [\r\n new DocEmphasisSpan({ configuration, bold: true }, [\r\n new DocPlainText({ configuration, text: 'Extends: ' })\r\n ])\r\n ]);\r\n this._appendExcerptWithHyperlinks(extendsParagraph, apiItem.extendsType.excerpt);\r\n output.appendNode(extendsParagraph);\r\n }\r\n if (apiItem.implementsTypes.length > 0) {\r\n const extendsParagraph: DocParagraph = new DocParagraph({ configuration }, [\r\n new DocEmphasisSpan({ configuration, bold: true }, [\r\n new DocPlainText({ configuration, text: 'Implements: ' })\r\n ])\r\n ]);\r\n let needsComma: boolean = false;\r\n for (const implementsType of apiItem.implementsTypes) {\r\n if (needsComma) {\r\n extendsParagraph.appendNode(new DocPlainText({ configuration, text: ', ' }));\r\n }\r\n this._appendExcerptWithHyperlinks(extendsParagraph, implementsType.excerpt);\r\n needsComma = true;\r\n }\r\n output.appendNode(extendsParagraph);\r\n }\r\n }\r\n\r\n if (apiItem instanceof ApiInterface) {\r\n if (apiItem.extendsTypes.length > 0) {\r\n const extendsParagraph: DocParagraph = new DocParagraph({ configuration }, [\r\n new DocEmphasisSpan({ configuration, bold: true }, [\r\n new DocPlainText({ configuration, text: 'Extends: ' })\r\n ])\r\n ]);\r\n let needsComma: boolean = false;\r\n for (const extendsType of apiItem.extendsTypes) {\r\n if (needsComma) {\r\n extendsParagraph.appendNode(new DocPlainText({ configuration, text: ', ' }));\r\n }\r\n this._appendExcerptWithHyperlinks(extendsParagraph, extendsType.excerpt);\r\n needsComma = true;\r\n }\r\n output.appendNode(extendsParagraph);\r\n }\r\n }\r\n\r\n if (apiItem instanceof ApiTypeAlias) {\r\n const refs: ExcerptToken[] = apiItem.excerptTokens.filter(\r\n (token) =>\r\n token.kind === ExcerptTokenKind.Reference &&\r\n token.canonicalReference &&\r\n this._apiModel.resolveDeclarationReference(token.canonicalReference, undefined).resolvedApiItem\r\n );\r\n if (refs.length > 0) {\r\n const referencesParagraph: DocParagraph = new DocParagraph({ configuration }, [\r\n new DocEmphasisSpan({ configuration, bold: true }, [\r\n new DocPlainText({ configuration, text: 'References: ' })\r\n ])\r\n ]);\r\n let needsComma: boolean = false;\r\n const visited: Set<string> = new Set();\r\n for (const ref of refs) {\r\n if (visited.has(ref.text)) {\r\n continue;\r\n }\r\n visited.add(ref.text);\r\n\r\n if (needsComma) {\r\n referencesParagraph.appendNode(new DocPlainText({ configuration, text: ', ' }));\r\n }\r\n\r\n this._appendExcerptTokenWithHyperlinks(referencesParagraph, ref);\r\n needsComma = true;\r\n }\r\n output.appendNode(referencesParagraph);\r\n }\r\n }\r\n }\r\n\r\n private _writeRemarksSection(output: DocSection, apiItem: ApiItem): void {\r\n if (apiItem instanceof ApiDocumentedItem) {\r\n const tsdocComment: DocComment | undefined = apiItem.tsdocComment;\r\n\r\n if (tsdocComment) {\r\n // Write the @remarks block\r\n if (tsdocComment.remarksBlock) {\r\n output.appendNode(new DocHeading({ configuration: this._tsdocConfiguration, title: 'Remarks' }));\r\n this._appendSection(output, tsdocComment.remarksBlock.content);\r\n }\r\n\r\n // Write the @example blocks\r\n const exampleBlocks: DocBlock[] = tsdocComment.customBlocks.filter(\r\n (x) => x.blockTag.tagNameWithUpperCase === StandardTags.example.tagNameWithUpperCase\r\n );\r\n\r\n let exampleNumber: number = 1;\r\n for (const exampleBlock of exampleBlocks) {\r\n const heading: string = exampleBlocks.length > 1 ? `Example ${exampleNumber}` : 'Example';\r\n\r\n output.appendNode(new DocHeading({ configuration: this._tsdocConfiguration, title: heading }));\r\n\r\n this._appendSection(output, exampleBlock.content);\r\n\r\n ++exampleNumber;\r\n }\r\n }\r\n }\r\n }\r\n\r\n private _writeThrowsSection(output: DocSection, apiItem: ApiItem): void {\r\n if (apiItem instanceof ApiDocumentedItem) {\r\n const tsdocComment: DocComment | undefined = apiItem.tsdocComment;\r\n\r\n if (tsdocComment) {\r\n // Write the @throws blocks\r\n const throwsBlocks: DocBlock[] = tsdocComment.customBlocks.filter(\r\n (x) => x.blockTag.tagNameWithUpperCase === StandardTags.throws.tagNameWithUpperCase\r\n );\r\n\r\n if (throwsBlocks.length > 0) {\r\n const heading: string = 'Exceptions';\r\n output.appendNode(new DocHeading({ configuration: this._tsdocConfiguration, title: heading }));\r\n\r\n for (const throwsBlock of throwsBlocks) {\r\n this._appendSection(output, throwsBlock.content);\r\n }\r\n }\r\n }\r\n }\r\n }\r\n\r\n /**\r\n * GENERATE PAGE: MODEL\r\n */\r\n private _writeModelTable(output: DocSection, apiModel: ApiModel): void {\r\n const configuration: TSDocConfiguration = this._tsdocConfiguration;\r\n\r\n const packagesTable: DocTable = new DocTable({\r\n configuration,\r\n headerTitles: ['Package', 'Description']\r\n });\r\n\r\n for (const apiMember of apiModel.members) {\r\n const row: DocTableRow = new DocTableRow({ configuration }, [\r\n this._createTitleCell(apiMember),\r\n this._createDescriptionCell(apiMember)\r\n ]);\r\n\r\n switch (apiMember.kind) {\r\n case ApiItemKind.Package:\r\n packagesTable.addRow(row);\r\n this._writeApiItemPage(apiMember);\r\n break;\r\n }\r\n }\r\n\r\n if (packagesTable.rows.length > 0) {\r\n output.appendNode(new DocHeading({ configuration: this._tsdocConfiguration, title: 'Packages' }));\r\n output.appendNode(packagesTable);\r\n }\r\n }\r\n\r\n /**\r\n * GENERATE PAGE: PACKAGE or NAMESPACE\r\n */\r\n private _writePackageOrNamespaceTables(output: DocSection, apiContainer: ApiPackage | ApiNamespace): void {\r\n const configuration: TSDocConfiguration = this._tsdocConfiguration;\r\n\r\n const classesTable: DocTable = new DocTable({\r\n configuration,\r\n headerTitles: ['Class', 'Description']\r\n });\r\n\r\n const enumerationsTable: DocTable = new DocTable({\r\n configuration,\r\n headerTitles: ['Enumeration', 'Description']\r\n });\r\n\r\n const functionsTable: DocTable = new DocTable({\r\n configuration,\r\n headerTitles: ['Function', 'Description']\r\n });\r\n\r\n const interfacesTable: DocTable = new DocTable({\r\n configuration,\r\n headerTitles: ['Interface', 'Description']\r\n });\r\n\r\n const namespacesTable: DocTable = new DocTable({\r\n configuration,\r\n headerTitles: ['Namespace', 'Description']\r\n });\r\n\r\n const variablesTable: DocTable = new DocTable({\r\n configuration,\r\n headerTitles: ['Variable', 'Description']\r\n });\r\n\r\n const typeAliasesTable: DocTable = new DocTable({\r\n configuration,\r\n headerTitles: ['Type Alias', 'Description']\r\n });\r\n\r\n const apiMembers: ReadonlyArray<ApiItem> =\r\n apiContainer.kind === ApiItemKind.Package\r\n ? (apiContainer as ApiPackage).entryPoints[0].members\r\n : (apiContainer as ApiNamespace).members;\r\n\r\n for (const apiMember of apiMembers) {\r\n const row: DocTableRow = new DocTableRow({ configuration }, [\r\n this._createTitleCell(apiMember),\r\n this._createDescriptionCell(apiMember)\r\n ]);\r\n\r\n switch (apiMember.kind) {\r\n case ApiItemKind.Class:\r\n classesTable.addRow(row);\r\n this._writeApiItemPage(apiMember);\r\n break;\r\n\r\n case ApiItemKind.Enum:\r\n enumerationsTable.addRow(row);\r\n this._writeApiItemPage(apiMember);\r\n break;\r\n\r\n case ApiItemKind.Interface:\r\n interfacesTable.addRow(row);\r\n this._writeApiItemPage(apiMember);\r\n break;\r\n\r\n case ApiItemKind.Namespace:\r\n namespacesTable.addRow(row);\r\n this._writeApiItemPage(apiMember);\r\n break;\r\n\r\n case ApiItemKind.Function:\r\n functionsTable.addRow(row);\r\n this._writeApiItemPage(apiMember);\r\n break;\r\n\r\n case ApiItemKind.TypeAlias:\r\n typeAliasesTable.addRow(row);\r\n this._writeApiItemPage(apiMember);\r\n break;\r\n\r\n case ApiItemKind.Variable:\r\n variablesTable.addRow(row);\r\n this._writeApiItemPage(apiMember);\r\n break;\r\n }\r\n }\r\n\r\n if (classesTable.rows.length > 0) {\r\n output.appendNode(new DocHeading({ configuration: this._tsdocConfiguration, title: 'Classes' }));\r\n output.appendNode(classesTable);\r\n }\r\n\r\n if (enumerationsTable.rows.length > 0) {\r\n output.appendNode(new DocHeading({ configuration: this._tsdocConfiguration, title: 'Enumerations' }));\r\n output.appendNode(enumerationsTable);\r\n }\r\n if (functionsTable.rows.length > 0) {\r\n output.appendNode(new DocHeading({ configuration: this._tsdocConfiguration, title: 'Functions' }));\r\n output.appendNode(functionsTable);\r\n }\r\n\r\n if (interfacesTable.rows.length > 0) {\r\n output.appendNode(new DocHeading({ configuration: this._tsdocConfiguration, title: 'Interfaces' }));\r\n output.appendNode(interfacesTable);\r\n }\r\n\r\n if (namespacesTable.rows.length > 0) {\r\n output.appendNode(new DocHeading({ configuration: this._tsdocConfiguration, title: 'Namespaces' }));\r\n output.appendNode(namespacesTable);\r\n }\r\n\r\n if (variablesTable.rows.length > 0) {\r\n output.appendNode(new DocHeading({ configuration: this._tsdocConfiguration, title: 'Variables' }));\r\n output.appendNode(variablesTable);\r\n }\r\n\r\n if (typeAliasesTable.rows.length > 0) {\r\n output.appendNode(new DocHeading({ configuration: this._tsdocConfiguration, title: 'Type Aliases' }));\r\n output.appendNode(typeAliasesTable);\r\n }\r\n }\r\n\r\n /**\r\n * GENERATE PAGE: CLASS\r\n */\r\n private _writeClassTables(output: DocSection, apiClass: ApiClass): void {\r\n const configuration: TSDocConfiguration = this._tsdocConfiguration;\r\n\r\n const eventsTable: DocTable = new DocTable({\r\n configuration,\r\n headerTitles: ['Property', 'Modifiers', 'Type', 'Description']\r\n });\r\n\r\n const constructorsTable: DocTable = new DocTable({\r\n configuration,\r\n headerTitles: ['Constructor', 'Modifiers', 'Description']\r\n });\r\n\r\n const propertiesTable: DocTable = new DocTable({\r\n configuration,\r\n headerTitles: ['Property', 'Modifiers', 'Type', 'Description']\r\n });\r\n\r\n const methodsTable: DocTable = new DocTable({\r\n configuration,\r\n headerTitles: ['Method', 'Modifiers', 'Description']\r\n });\r\n\r\n for (const apiMember of apiClass.members) {\r\n switch (apiMember.kind) {\r\n case ApiItemKind.Constructor: {\r\n constructorsTable.addRow(\r\n new DocTableRow({ configuration }, [\r\n this._createTitleCell(apiMember),\r\n this._createModifiersCell(apiMember),\r\n this._createDescriptionCell(apiMember)\r\n ])\r\n );\r\n\r\n this._writeApiItemPage(apiMember);\r\n break;\r\n }\r\n case ApiItemKind.Method: {\r\n methodsTable.addRow(\r\n new DocTableRow({ configuration }, [\r\n this._createTitleCell(apiMember),\r\n this._createModifiersCell(apiMember),\r\n this._createDescriptionCell(apiMember)\r\n ])\r\n );\r\n\r\n this._writeApiItemPage(apiMember);\r\n break;\r\n }\r\n case ApiItemKind.Property: {\r\n if ((apiMember as ApiPropertyItem).isEventProperty) {\r\n eventsTable.addRow(\r\n new DocTableRow({ configuration }, [\r\n this._createTitleCell(apiMember),\r\n this._createModifiersCell(apiMember),\r\n this._createPropertyTypeCell(apiMember),\r\n this._createDescriptionCell(apiMember)\r\n ])\r\n );\r\n } else {\r\n propertiesTable.addRow(\r\n new DocTableRow({ configuration }, [\r\n this._createTitleCell(apiMember),\r\n this._createModifiersCell(apiMember),\r\n this._createPropertyTypeCell(apiMember),\r\n this._createDescriptionCell(apiMember)\r\n ])\r\n );\r\n }\r\n\r\n this._writeApiItemPage(apiMember);\r\n break;\r\n }\r\n }\r\n }\r\n\r\n if (eventsTable.rows.length > 0) {\r\n output.appendNode(new DocHeading({ configuration: this._tsdocConfiguration, title: 'Events' }));\r\n output.appendNode(eventsTable);\r\n }\r\n\r\n if (constructorsTable.rows.length > 0) {\r\n output.appendNode(new DocHeading({ configuration: this._tsdocConfiguration, title: 'Constructors' }));\r\n output.appendNode(constructorsTable);\r\n }\r\n\r\n if (propertiesTable.rows.length > 0) {\r\n output.appendNode(new DocHeading({ configuration: this._tsdocConfiguration, title: 'Properties' }));\r\n output.appendNode(propertiesTable);\r\n }\r\n\r\n if (methodsTable.rows.length > 0) {\r\n output.appendNode(new DocHeading({ configuration: this._tsdocConfiguration, title: 'Methods' }));\r\n output.appendNode(methodsTable);\r\n }\r\n }\r\n\r\n /**\r\n * GENERATE PAGE: ENUM\r\n */\r\n private _writeEnumTables(output: DocSection, apiEnum: ApiEnum): void {\r\n const configuration: TSDocConfiguration = this._tsdocConfiguration;\r\n\r\n const enumMembersTable: DocTable = new DocTable({\r\n configuration,\r\n headerTitles: ['Member', 'Value', 'Description']\r\n });\r\n\r\n for (const apiEnumMember of apiEnum.members) {\r\n enumMembersTable.addRow(\r\n new DocTableRow({ configuration }, [\r\n new DocTableCell({ configuration }, [\r\n new DocParagraph({ configuration }, [\r\n new DocPlainText({ configuration, text: Utilities.getConciseSignature(apiEnumMember) })\r\n ])\r\n ]),\r\n\r\n new DocTableCell({ configuration }, [\r\n new DocParagraph({ configuration }, [\r\n new DocCodeSpan({ configuration, code: apiEnumMember.initializerExcerpt.text })\r\n ])\r\n ]),\r\n\r\n this._createDescriptionCell(apiEnumMember)\r\n ])\r\n );\r\n }\r\n\r\n if (enumMembersTable.rows.length > 0) {\r\n output.appendNode(\r\n new DocHeading({ configuration: this._tsdocConfiguration, title: 'Enumeration Members' })\r\n );\r\n output.appendNode(enumMembersTable);\r\n }\r\n }\r\n\r\n /**\r\n * GENERATE PAGE: INTERFACE\r\n */\r\n private _writeInterfaceTables(output: DocSection, apiClass: ApiInterface): void {\r\n const configuration: TSDocConfiguration = this._tsdocConfiguration;\r\n\r\n const eventsTable: DocTable = new DocTable({\r\n configuration,\r\n headerTitles: ['Property', 'Type', 'Description']\r\n });\r\n\r\n const propertiesTable: DocTable = new DocTable({\r\n configuration,\r\n headerTitles: ['Property', 'Type', 'Description']\r\n });\r\n\r\n const methodsTable: DocTable = new DocTable({\r\n configuration,\r\n headerTitles: ['Method', 'Description']\r\n });\r\n\r\n for (const apiMember of apiClass.members) {\r\n switch (apiMember.kind) {\r\n case ApiItemKind.ConstructSignature:\r\n case ApiItemKind.MethodSignature: {\r\n methodsTable.addRow(\r\n new DocTableRow({ configuration }, [\r\n this._createTitleCell(apiMember),\r\n this._createDescriptionCell(apiMember)\r\n ])\r\n );\r\n\r\n this._writeApiItemPage(apiMember);\r\n break;\r\n }\r\n case ApiItemKind.PropertySignature: {\r\n if ((apiMember as ApiPropertyItem).isEventProperty) {\r\n eventsTable.addRow(\r\n new DocTableRow({ configuration }, [\r\n this._createTitleCell(apiMember),\r\n this._createPropertyTypeCell(apiMember),\r\n this._createDescriptionCell(apiMember)\r\n ])\r\n );\r\n } else {\r\n propertiesTable.addRow(\r\n new DocTableRow({ configuration }, [\r\n this._createTitleCell(apiMember),\r\n this._createPropertyTypeCell(apiMember),\r\n this._createDescriptionCell(apiMember)\r\n ])\r\n );\r\n }\r\n\r\n this._writeApiItemPage(apiMember);\r\n break;\r\n }\r\n }\r\n }\r\n\r\n if (eventsTable.rows.length > 0) {\r\n output.appendNode(new DocHeading({ configuration: this._tsdocConfiguration, title: 'Events' }));\r\n output.appendNode(eventsTable);\r\n }\r\n\r\n if (propertiesTable.rows.length > 0) {\r\n output.appendNode(new DocHeading({ configuration: this._tsdocConfiguration, title: 'Properties' }));\r\n output.appendNode(propertiesTable);\r\n }\r\n\r\n if (methodsTable.rows.length > 0) {\r\n output.appendNode(new DocHeading({ configuration: this._tsdocConfiguration, title: 'Methods' }));\r\n output.appendNode(methodsTable);\r\n }\r\n }\r\n\r\n /**\r\n * GENERATE PAGE: FUNCTION-LIKE\r\n */\r\n private _writeParameterTables(output: DocSection, apiParameterListMixin: ApiParameterListMixin): void {\r\n const configuration: TSDocConfiguration = this._tsdocConfiguration;\r\n\r\n const parametersTable: DocTable = new DocTable({\r\n configuration,\r\n headerTitles: ['Parameter', 'Type', 'Description']\r\n });\r\n for (const apiParameter of apiParameterListMixin.parameters) {\r\n const parameterDescription: DocSection = new DocSection({ configuration });\r\n if (apiParameter.tsdocParamBlock) {\r\n this._appendSection(parameterDescription, apiParameter.tsdocParamBlock.content);\r\n }\r\n\r\n parametersTable.addRow(\r\n new DocTableRow({ configuration }, [\r\n new DocTableCell({ configuration }, [\r\n new DocParagraph({ configuration }, [\r\n new DocPlainText({ configuration, text: apiParameter.name })\r\n ])\r\n ]),\r\n new DocTableCell({ configuration }, [\r\n this._createParagraphForTypeExcerpt(apiParameter.parameterTypeExcerpt)\r\n ]),\r\n new DocTableCell({ configuration }, parameterDescription.nodes)\r\n ])\r\n );\r\n }\r\n\r\n if (parametersTable.rows.length > 0) {\r\n output.appendNode(new DocHeading({ configuration: this._tsdocConfiguration, title: 'Parameters' }));\r\n output.appendNode(parametersTable);\r\n }\r\n\r\n if (ApiReturnTypeMixin.isBaseClassOf(apiParameterListMixin)) {\r\n const returnTypeExcerpt: Excerpt = apiParameterListMixin.returnTypeExcerpt;\r\n output.appendNode(\r\n new DocParagraph({ configuration }, [\r\n new DocEmphasisSpan({ configuration, bold: true }, [\r\n new DocPlainText({ configuration, text: 'Returns:' })\r\n ])\r\n ])\r\n );\r\n\r\n output.appendNode(this._createParagraphForTypeExcerpt(returnTypeExcerpt));\r\n\r\n if (apiParameterListMixin instanceof ApiDocumentedItem) {\r\n if (apiParameterListMixin.tsdocComment && apiParameterListMixin.tsdocComment.returnsBlock) {\r\n this._appendSection(output, apiParameterListMixin.tsdocComment.returnsBlock.content);\r\n }\r\n }\r\n }\r\n }\r\n\r\n private _createParagraphForTypeExcerpt(excerpt: Excerpt): DocParagraph {\r\n const configuration: TSDocConfiguration = this._tsdocConfiguration;\r\n\r\n const paragraph: DocParagraph = new DocParagraph({ configuration });\r\n\r\n if (!excerpt.text.trim()) {\r\n paragraph.appendNode(new DocPlainText({ configuration, text: '(not declared)' }));\r\n } else {\r\n this._appendExcerptWithHyperlinks(paragraph, excerpt);\r\n }\r\n\r\n return paragraph;\r\n }\r\n\r\n private _appendExcerptWithHyperlinks(docNodeContainer: DocNodeContainer, excerpt: Excerpt): void {\r\n for (const token of excerpt.spannedTokens) {\r\n this._appendExcerptTokenWithHyperlinks(docNodeContainer, token);\r\n }\r\n }\r\n\r\n private _appendExcerptTokenWithHyperlinks(docNodeContainer: DocNodeContainer, token: ExcerptToken): void {\r\n const configuration: TSDocConfiguration = this._tsdocConfiguration;\r\n\r\n // Markdown doesn't provide a standardized syntax for hyperlinks inside code spans, so we will render\r\n // the type expression as DocPlainText. Instead of creating multiple DocParagraphs, we can simply\r\n // discard any newlines and let the renderer do normal word-wrapping.\r\n const unwrappedTokenText: string = token.text.replace(/[\\r\\n]+/g, ' ');\r\n\r\n // If it's hyperlinkable, then append a DocLinkTag\r\n if (token.kind === ExcerptTokenKind.Reference && token.canonicalReference) {\r\n const apiItemResult: IResolveDeclarationReferenceResult = this._apiModel.resolveDeclarationReference(\r\n token.canonicalReference,\r\n undefined\r\n );\r\n\r\n if (apiItemResult.resolvedApiItem) {\r\n docNodeContainer.appendNode(\r\n new DocLinkTag({\r\n configuration,\r\n tagName: '@link',\r\n linkText: unwrappedTokenText,\r\n urlDestination: this._getLinkFilenameForApiItem(apiItemResult.resolvedApiItem)\r\n })\r\n );\r\n return;\r\n }\r\n }\r\n\r\n // Otherwise append non-hyperlinked text\r\n docNodeContainer.appendNode(new DocPlainText({ configuration, text: unwrappedTokenText }));\r\n }\r\n\r\n private _createTitleCell(apiItem: ApiItem): DocTableCell {\r\n const configuration: TSDocConfiguration = this._tsdocConfiguration;\r\n\r\n let linkText: string = Utilities.getConciseSignature(apiItem);\r\n if (ApiOptionalMixin.isBaseClassOf(apiItem) && apiItem.isOptional) {\r\n linkText += '?';\r\n }\r\n\r\n return new DocTableCell({ configuration }, [\r\n new DocParagraph({ configuration }, [\r\n new DocLinkTag({\r\n configuration,\r\n tagName: '@link',\r\n linkText: linkText,\r\n urlDestination: this._getLinkFilenameForApiItem(apiItem)\r\n })\r\n ])\r\n ]);\r\n }\r\n\r\n /**\r\n * This generates a DocTableCell for an ApiItem including the summary section and \"(BETA)\" annotation.\r\n *\r\n * @remarks\r\n * We mostly assume that the input is an ApiDocumentedItem, but it's easier to perform this as a runtime\r\n * check than to have each caller perform a type cast.\r\n */\r\n private _createDescriptionCell(apiItem: ApiItem): DocTableCell {\r\n const configuration: TSDocConfiguration = this._tsdocConfiguration;\r\n\r\n const section: DocSection = new DocSection({ configuration });\r\n\r\n if (ApiReleaseTagMixin.isBaseClassOf(apiItem)) {\r\n if (apiItem.releaseTag === ReleaseTag.Beta) {\r\n section.appendNodesInParagraph([\r\n new DocEmphasisSpan({ configuration, bold: true, italic: true }, [\r\n new DocPlainText({ configuration, text: '(BETA)' })\r\n ]),\r\n new DocPlainText({ configuration, text: ' ' })\r\n ]);\r\n }\r\n }\r\n\r\n if (ApiOptionalMixin.isBaseClassOf(apiItem) && apiItem.isOptional) {\r\n section.appendNodesInParagraph([\r\n new DocEmphasisSpan({ configuration, italic: true }, [\r\n new DocPlainText({ configuration, text: '(Optional)' })\r\n ]),\r\n new DocPlainText({ configuration, text: ' ' })\r\n ]);\r\n }\r\n\r\n if (apiItem instanceof ApiDocumentedItem) {\r\n if (apiItem.tsdocComment !== undefined) {\r\n this._appendAndMergeSection(section, apiItem.tsdocComment.summarySection);\r\n }\r\n }\r\n\r\n return new DocTableCell({ configuration }, section.nodes);\r\n }\r\n\r\n private _createModifiersCell(apiItem: ApiItem): DocTableCell {\r\n const configuration: TSDocConfiguration = this._tsdocConfiguration;\r\n\r\n const section: DocSection = new DocSection({ configuration });\r\n\r\n if (ApiStaticMixin.isBaseClassOf(apiItem)) {\r\n if (apiItem.isStatic) {\r\n section.appendNodeInParagraph(new DocCodeSpan({ configuration, code: 'static' }));\r\n }\r\n }\r\n\r\n return new DocTableCell({ configuration }, section.nodes);\r\n }\r\n\r\n private _createPropertyTypeCell(apiItem: ApiItem): DocTableCell {\r\n const configuration: TSDocConfiguration = this._tsdocConfiguration;\r\n\r\n const section: DocSection = new DocSection({ configuration });\r\n\r\n if (apiItem instanceof ApiPropertyItem) {\r\n section.appendNode(this._createParagraphForTypeExcerpt(apiItem.propertyTypeExcerpt));\r\n }\r\n\r\n return new DocTableCell({ configuration }, section.nodes);\r\n }\r\n\r\n private _writeBreadcrumb(output: DocSection, apiItem: ApiItem): void {\r\n output.appendNodeInParagraph(\r\n new DocLinkTag({\r\n configuration: this._tsdocConfiguration,\r\n tagName: '@link',\r\n linkText: 'Home',\r\n urlDestination: this._getLinkFilenameForApiItem(this._apiModel)\r\n })\r\n );\r\n\r\n for (const hierarchyItem of apiItem.getHierarchy()) {\r\n switch (hierarchyItem.kind) {\r\n case ApiItemKind.Model:\r\n case ApiItemKind.EntryPoint:\r\n // We don't show the model as part of the breadcrumb because it is the root-level container.\r\n // We don't show the entry point because today API Extractor doesn't support multiple entry points;\r\n // this may change in the future.\r\n break;\r\n default:\r\n output.appendNodesInParagraph([\r\n new DocPlainText({\r\n configuration: this._tsdocConfiguration,\r\n text: ' > '\r\n }),\r\n new DocLinkTag({\r\n configuration: this._tsdocConfiguration,\r\n tagName: '@link',\r\n linkText: hierarchyItem.displayName,\r\n urlDestination: this._getLinkFilenameForApiItem(hierarchyItem)\r\n })\r\n ]);\r\n }\r\n }\r\n }\r\n\r\n private _writeBetaWarning(output: DocSection): void {\r\n const configuration: TSDocConfiguration = this._tsdocConfiguration;\r\n const betaWarning: string =\r\n 'This API is provided as a preview for developers and may change' +\r\n ' based on feedback that we receive. Do not use this API in a production environment.';\r\n output.appendNode(\r\n new DocNoteBox({ configuration }, [\r\n new DocParagraph({ configuration }, [new DocPlainText({ configuration, text: betaWarning })])\r\n ])\r\n );\r\n }\r\n\r\n private _appendSection(output: DocSection, docSection: DocSection): void {\r\n for (const node of docSection.nodes) {\r\n output.appendNode(node);\r\n }\r\n }\r\n\r\n private _appendAndMergeSection(output: DocSection, docSection: DocSection): void {\r\n let firstNode: boolean = true;\r\n for (const node of docSection.nodes) {\r\n if (firstNode) {\r\n if (node.kind === DocNodeKind.Paragraph) {\r\n output.appendNodesInParagraph(node.getChildNodes());\r\n firstNode = false;\r\n continue;\r\n }\r\n }\r\n firstNode = false;\r\n\r\n output.appendNode(node);\r\n }\r\n }\r\n\r\n private _getFilenameForApiItem(apiItem: ApiItem): string {\r\n if (apiItem.kind === ApiItemKind.Model) {\r\n return 'index.md';\r\n }\r\n\r\n let baseName: string = '';\r\n for (const hierarchyItem of apiItem.getHierarchy()) {\r\n // For overloaded methods, add a suffix such as \"MyClass.myMethod_2\".\r\n let qualifiedName: string = Utilities.getSafeFilenameForName(hierarchyItem.displayName);\r\n if (ApiParameterListMixin.isBaseClassOf(hierarchyItem)) {\r\n if (hierarchyItem.overloadIndex > 1) {\r\n // Subtract one for compatibility with earlier releases of API Documenter.\r\n // (This will get revamped when we fix GitHub issue #1308)\r\n qualifiedName += `_${hierarchyItem.overloadIndex - 1}`;\r\n }\r\n }\r\n\r\n switch (hierarchyItem.kind) {\r\n case ApiItemKind.Model:\r\n case ApiItemKind.EntryPoint:\r\n break;\r\n case ApiItemKind.Package:\r\n baseName = Utilities.getSafeFilenameForName(PackageName.getUnscopedName(hierarchyItem.displayName));\r\n break;\r\n default:\r\n baseName += '.' + qualifiedName;\r\n }\r\n }\r\n return baseName + '.md';\r\n }\r\n\r\n private _getLinkFilenameForApiItem(apiItem: ApiItem): string {\r\n return './' + this._getFilenameForApiItem(apiItem);\r\n }\r\n\r\n private _deleteOldOutputFiles(): void {\r\n console.log('Deleting old output from ' + this._outputFolder);\r\n FileSystem.ensureEmptyFolder(this._outputFolder);\r\n }\r\n}\r\n"]}
|
|
1
|
+
{"version":3,"file":"MarkdownDocumenter.js","sourceRoot":"","sources":["../../src/documenters/MarkdownDocumenter.ts"],"names":[],"mappings":";AAAA,4FAA4F;AAC5F,2DAA2D;;;;;;;;;;;;;;;;;;;;;;AAE3D,2CAA6B;AAC7B,oEAAoF;AACpF,4CAc0B;AAC1B,wEAuBwC;AAExC,kEAA4D;AAC5D,oDAAiD;AACjD,gDAA6C;AAC7C,8DAA2D;AAC3D,sDAAmD;AACnD,wDAAqD;AACrD,oDAAiD;AACjD,kDAA+C;AAC/C,6EAA0E;AAC1E,yDAAsD;AACtD,mFAG6C;AAE7C,qFAAkF;AAQlF;;;GAGG;AACH,MAAa,kBAAkB;IAQ7B,YAAmB,OAAmC;QACpD,IAAI,CAAC,SAAS,GAAG,OAAO,CAAC,QAAQ,CAAC;QAClC,IAAI,CAAC,iBAAiB,GAAG,OAAO,CAAC,gBAAgB,CAAC;QAClD,IAAI,CAAC,aAAa,GAAG,OAAO,CAAC,YAAY,CAAC;QAC1C,IAAI,CAAC,mBAAmB,GAAG,kCAAc,CAAC,aAAa,CAAC;QACxD,IAAI,CAAC,gBAAgB,GAAG,IAAI,6CAAqB,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QAElE,IAAI,CAAC,aAAa,GAAG,IAAI,2BAAY,EAAE,CAAC;IAC1C,CAAC;IAEM,aAAa;QAClB,IAAI,IAAI,CAAC,iBAAiB,EAAE;YAC1B,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,iBAAiB,EAAE,GAAG,EAAE;gBACnD,OAAO,IAAI,4DAAgC,CAAC;oBAC1C,QAAQ,EAAE,IAAI,CAAC,SAAS;oBACxB,YAAY,EAAE,IAAI,CAAC,aAAa;oBAChC,UAAU,EAAE,IAAI,uDAA0B,CAAC;wBACzC,iBAAiB,EAAE,CAAC,OAAgB,EA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AAa,GAAG,CAAC,EAAE,CAAC;iBACxD;aACF;YAED,QAAQ,aAAa,CAAC,IAAI,EAAE;gBAC1B,yBAAuB;gBACvB,mCAA4B;gBAC5B;oBACE,MAAM;gBACR;oBACE,QAAQ,GAAG,qBAAS,CAAC,sBAAsB,CAAC,+BAAW,CAAC,eAAe,CAAC,aAAa,CAAC,WAAW,CAAC,CAAC,CAAC;oBACpG,MAAM;gBACR;oBACE,QAAQ,IAAI,GAAG,GAAG,aAAa,CAAC;aACnC;SACF;QACD,OAAO,QAAQ,GAAG,KAAK,CAAC;IAC1B,CAAC;IAEO,0BAA0B,CAAC,OAAgB;QACjD,OAAO,IAAI,GAAG,IAAI,CAAC,sBAAsB,CAAC,OAAO,CAAC,CAAC;IACrD,CAAC;IAEO,qBAAqB;QAC3B,OAAO,CAAC,GAAG,CAAC,2BAA2B,GAAG,IAAI,CAAC,aAAa,CAAC,CAAC;QAC9D,8BAAU,CAAC,iBAAiB,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;IACnD,CAAC;CACF;AAtiCD,gDAsiCC","sourcesContent":["// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.\r\n// See LICENSE in the project root for license information.\r\n\r\nimport * as path from 'path';\r\nimport { PackageName, FileSystem, NewlineKind } from '@rushstack/node-core-library';\r\nimport {\r\n DocSection,\r\n DocPlainText,\r\n DocLinkTag,\r\n TSDocConfiguration,\r\n StringBuilder,\r\n DocNodeKind,\r\n DocParagraph,\r\n DocCodeSpan,\r\n DocFencedCode,\r\n StandardTags,\r\n DocBlock,\r\n DocComment,\r\n DocNodeContainer\r\n} from '@microsoft/tsdoc';\r\nimport {\r\n ApiModel,\r\n ApiItem,\r\n ApiEnum,\r\n ApiPackage,\r\n ApiItemKind,\r\n ApiReleaseTagMixin,\r\n ApiDocumentedItem,\r\n ApiClass,\r\n ReleaseTag,\r\n ApiStaticMixin,\r\n ApiPropertyItem,\r\n ApiInterface,\r\n Excerpt,\r\n ApiParameterListMixin,\r\n ApiReturnTypeMixin,\r\n ApiDeclaredItem,\r\n ApiNamespace,\r\n ExcerptTokenKind,\r\n IResolveDeclarationReferenceResult,\r\n ApiTypeAlias,\r\n ExcerptToken,\r\n ApiOptionalMixin\r\n} from '@microsoft/api-extractor-model';\r\n\r\nimport { CustomDocNodes } from '../nodes/CustomDocNodeKind';\r\nimport { DocHeading } from '../nodes/DocHeading';\r\nimport { DocTable } from '../nodes/DocTable';\r\nimport { DocEmphasisSpan } from '../nodes/DocEmphasisSpan';\r\nimport { DocTableRow } from '../nodes/DocTableRow';\r\nimport { DocTableCell } from '../nodes/DocTableCell';\r\nimport { DocNoteBox } from '../nodes/DocNoteBox';\r\nimport { Utilities } from '../utils/Utilities';\r\nimport { CustomMarkdownEmitter } from '../markdown/CustomMarkdownEmitter';\r\nimport { PluginLoader } from '../plugin/PluginLoader';\r\nimport {\r\n IMarkdownDocumenterFeatureOnBeforeWritePageArgs,\r\n MarkdownDocumenterFeatureContext\r\n} from '../plugin/MarkdownDocumenterFeature';\r\nimport { DocumenterConfig } from './DocumenterConfig';\r\nimport { MarkdownDocumenterAccessor } from '../plugin/MarkdownDocumenterAccessor';\r\n\r\nexport interface IMarkdownDocumenterOptions {\r\n apiModel: ApiModel;\r\n documenterConfig: DocumenterConfig | undefined;\r\n outputFolder: string;\r\n}\r\n\r\n/**\r\n * Renders API documentation in the Markdown file format.\r\n * For more info: https://en.wikipedia.org/wiki/Markdown\r\n */\r\nexport class MarkdownDocumenter {\r\n private readonly _apiModel: ApiModel;\r\n private readonly _documenterConfig: DocumenterConfig | undefined;\r\n private readonly _tsdocConfiguration: TSDocConfiguration;\r\n private readonly _markdownEmitter: CustomMarkdownEmitter;\r\n private readonly _outputFolder: string;\r\n private readonly _pluginLoader: PluginLoader;\r\n\r\n public constructor(options: IMarkdownDocumenterOptions) {\r\n this._apiModel = options.apiModel;\r\n this._documenterConfig = options.documenterConfig;\r\n this._outputFolder = options.outputFolder;\r\n this._tsdocConfiguration = CustomDocNodes.configuration;\r\n this._markdownEmitter = new CustomMarkdownEmitter(this._apiModel);\r\n\r\n this._pluginLoader = new PluginLoader();\r\n }\r\n\r\n public generateFiles(): void {\r\n if (this._documenterConfig) {\r\n this._pluginLoader.load(this._documenterConfig, () => {\r\n return new MarkdownDocumenterFeatureContext({\r\n apiModel: this._apiModel,\r\n outputFolder: this._outputFolder,\r\n documenter: new MarkdownDocumenterAccessor({\r\n getLinkForApiItem: (apiItem: ApiItem) => {\r\n return this._getLinkFilenameForApiItem(apiItem);\r\n }\r\n })\r\n });\r\n });\r\n }\r\n\r\n console.log();\r\n this._deleteOldOutputFiles();\r\n\r\n this._writeApiItemPage(this._apiModel);\r\n\r\n if (this._pluginLoader.markdownDocumenterFeature) {\r\n this._pluginLoader.markdownDocumenterFeature.onFinished({});\r\n }\r\n }\r\n\r\n private _writeApiItemPage(apiItem: ApiItem): void {\r\n const configuration: TSDocConfiguration = this._tsdocConfiguration;\r\n const output: DocSection = new DocSection({ configuration: this._tsdocConfiguration });\r\n\r\n this._writeBreadcrumb(output, apiItem);\r\n\r\n const scopedName: string = apiItem.getScopedNameWithinPackage();\r\n\r\n switch (apiItem.kind) {\r\n case ApiItemKind.Class:\r\n output.appendNode(new DocHeading({ configuration, title: `${scopedName} class` }));\r\n break;\r\n case ApiItemKind.Enum:\r\n output.appendNode(new DocHeading({ configuration, title: `${scopedName} enum` }));\r\n break;\r\n case ApiItemKind.Interface:\r\n output.appendNode(new DocHeading({ configuration, title: `${scopedName} interface` }));\r\n break;\r\n case ApiItemKind.Constructor:\r\n case ApiItemKind.ConstructSignature:\r\n output.appendNode(new DocHeading({ configuration, title: scopedName }));\r\n break;\r\n case ApiItemKind.Method:\r\n case ApiItemKind.MethodSignature:\r\n output.appendNode(new DocHeading({ configuration, title: `${scopedName} method` }));\r\n break;\r\n case ApiItemKind.Function:\r\n output.appendNode(new DocHeading({ configuration, title: `${scopedName} function` }));\r\n break;\r\n case ApiItemKind.Model:\r\n output.appendNode(new DocHeading({ configuration, title: `API Reference` }));\r\n break;\r\n case ApiItemKind.Namespace:\r\n output.appendNode(new DocHeading({ configuration, title: `${scopedName} namespace` }));\r\n break;\r\n case ApiItemKind.Package:\r\n console.log(`Writing ${apiItem.displayName} package`);\r\n const unscopedPackageName: string = PackageName.getUnscopedName(apiItem.displayName);\r\n output.appendNode(new DocHeading({ configuration, title: `${unscopedPackageName} package` }));\r\n break;\r\n case ApiItemKind.Property:\r\n case ApiItemKind.PropertySignature:\r\n output.appendNode(new DocHeading({ configuration, title: `${scopedName} property` }));\r\n break;\r\n case ApiItemKind.TypeAlias:\r\n output.appendNode(new DocHeading({ configuration, title: `${scopedName} type` }));\r\n break;\r\n case ApiItemKind.Variable:\r\n output.appendNode(new DocHeading({ configuration, title: `${scopedName} variable` }));\r\n break;\r\n default:\r\n throw new Error('Unsupported API item kind: ' + apiItem.kind);\r\n }\r\n\r\n if (ApiReleaseTagMixin.isBaseClassOf(apiItem)) {\r\n if (apiItem.releaseTag === ReleaseTag.Beta) {\r\n this._writeBetaWarning(output);\r\n }\r\n }\r\n\r\n const decoratorBlocks: DocBlock[] = [];\r\n\r\n if (apiItem instanceof ApiDocumentedItem) {\r\n const tsdocComment: DocComment | undefined = apiItem.tsdocComment;\r\n\r\n if (tsdocComment) {\r\n decoratorBlocks.push(\r\n ...tsdocComment.customBlocks.filter(\r\n (block) => block.blockTag.tagNameWithUpperCase === StandardTags.decorator.tagNameWithUpperCase\r\n )\r\n );\r\n\r\n if (tsdocComment.deprecatedBlock) {\r\n output.appendNode(\r\n new DocNoteBox({ configuration: this._tsdocConfiguration }, [\r\n new DocParagraph({ configuration: this._tsdocConfiguration }, [\r\n new DocPlainText({\r\n configuration: this._tsdocConfiguration,\r\n text: 'Warning: This API is now obsolete. '\r\n })\r\n ]),\r\n ...tsdocComment.deprecatedBlock.content.nodes\r\n ])\r\n );\r\n }\r\n\r\n this._appendSection(output, tsdocComment.summarySection);\r\n }\r\n }\r\n\r\n if (apiItem instanceof ApiDeclaredItem) {\r\n if (apiItem.excerpt.text.length > 0) {\r\n output.appendNode(\r\n new DocParagraph({ configuration }, [\r\n new DocEmphasisSpan({ configuration, bold: true }, [\r\n new DocPlainText({ configuration, text: 'Signature:' })\r\n ])\r\n ])\r\n );\r\n output.appendNode(\r\n new DocFencedCode({\r\n configuration,\r\n code: apiItem.getExcerptWithModifiers(),\r\n language: 'typescript'\r\n })\r\n );\r\n }\r\n\r\n this._writeHeritageTypes(output, apiItem);\r\n }\r\n\r\n if (decoratorBlocks.length > 0) {\r\n output.appendNode(\r\n new DocParagraph({ configuration }, [\r\n new DocEmphasisSpan({ configuration, bold: true }, [\r\n new DocPlainText({ configuration, text: 'Decorators:' })\r\n ])\r\n ])\r\n );\r\n for (const decoratorBlock of decoratorBlocks) {\r\n output.appendNodes(decoratorBlock.content.nodes);\r\n }\r\n }\r\n\r\n let appendRemarks: boolean = true;\r\n switch (apiItem.kind) {\r\n case ApiItemKind.Class:\r\n case ApiItemKind.Interface:\r\n case ApiItemKind.Namespace:\r\n case ApiItemKind.Package:\r\n this._writeRemarksSection(output, apiItem);\r\n appendRemarks = false;\r\n break;\r\n }\r\n\r\n switch (apiItem.kind) {\r\n case ApiItemKind.Class:\r\n this._writeClassTables(output, apiItem as ApiClass);\r\n break;\r\n case ApiItemKind.Enum:\r\n this._writeEnumTables(output, apiItem as ApiEnum);\r\n break;\r\n case ApiItemKind.Interface:\r\n this._writeInterfaceTables(output, apiItem as ApiInterface);\r\n break;\r\n case ApiItemKind.Constructor:\r\n case ApiItemKind.ConstructSignature:\r\n case ApiItemKind.Method:\r\n case ApiItemKind.MethodSignature:\r\n case ApiItemKind.Function:\r\n this._writeParameterTables(output, apiItem as ApiParameterListMixin);\r\n this._writeThrowsSection(output, apiItem);\r\n break;\r\n case ApiItemKind.Namespace:\r\n this._writePackageOrNamespaceTables(output, apiItem as ApiNamespace);\r\n break;\r\n case ApiItemKind.Model:\r\n this._writeModelTable(output, apiItem as ApiModel);\r\n break;\r\n case ApiItemKind.Package:\r\n this._writePackageOrNamespaceTables(output, apiItem as ApiPackage);\r\n break;\r\n case ApiItemKind.Property:\r\n case ApiItemKind.PropertySignature:\r\n break;\r\n case ApiItemKind.TypeAlias:\r\n break;\r\n case ApiItemKind.Variable:\r\n break;\r\n default:\r\n throw new Error('Unsupported API item kind: ' + apiItem.kind);\r\n }\r\n\r\n if (appendRemarks) {\r\n this._writeRemarksSection(output, apiItem);\r\n }\r\n\r\n const filename: string = path.join(this._outputFolder, this._getFilenameForApiItem(apiItem));\r\n const stringBuilder: StringBuilder = new StringBuilder();\r\n\r\n stringBuilder.append(\r\n '<!-- Do not edit this file. It is automatically generated by API Documenter. -->\\n\\n'\r\n );\r\n\r\n this._markdownEmitter.emit(stringBuilder, output, {\r\n contextApiItem: apiItem,\r\n onGetFilenameForApiItem: (apiItemForFilename: ApiItem) => {\r\n return this._getLinkFilenameForApiItem(apiItemForFilename);\r\n }\r\n });\r\n\r\n let pageContent: string = stringBuilder.toString();\r\n\r\n if (this._pluginLoader.markdownDocumenterFeature) {\r\n // Allow the plugin to customize the pageContent\r\n const eventArgs: IMarkdownDocumenterFeatureOnBeforeWritePageArgs = {\r\n apiItem: apiItem,\r\n outputFilename: filename,\r\n pageContent: pageContent\r\n };\r\n this._pluginLoader.markdownDocumenterFeature.onBeforeWritePage(eventArgs);\r\n pageContent = eventArgs.pageContent;\r\n }\r\n\r\n FileSystem.writeFile(filename, pageContent, {\r\n convertLineEndings: this._documenterConfig ? this._documenterConfig.newlineKind : NewlineKind.CrLf\r\n });\r\n }\r\n\r\n private _writeHeritageTypes(output: DocSection, apiItem: ApiDeclaredItem): void {\r\n const configuration: TSDocConfiguration = this._tsdocConfiguration;\r\n\r\n if (apiItem instanceof ApiClass) {\r\n if (apiItem.extendsType) {\r\n const extendsParagraph: DocParagraph = new DocParagraph({ configuration }, [\r\n new DocEmphasisSpan({ configuration, bold: true }, [\r\n new DocPlainText({ configuration, text: 'Extends: ' })\r\n ])\r\n ]);\r\n this._appendExcerptWithHyperlinks(extendsParagraph, apiItem.extendsType.excerpt);\r\n output.appendNode(extendsParagraph);\r\n }\r\n if (apiItem.implementsTypes.length > 0) {\r\n const extendsParagraph: DocParagraph = new DocParagraph({ configuration }, [\r\n new DocEmphasisSpan({ configuration, bold: true }, [\r\n new DocPlainText({ configuration, text: 'Implements: ' })\r\n ])\r\n ]);\r\n let needsComma: boolean = false;\r\n for (const implementsType of apiItem.implementsTypes) {\r\n if (needsComma) {\r\n extendsParagraph.appendNode(new DocPlainText({ configuration, text: ', ' }));\r\n }\r\n this._appendExcerptWithHyperlinks(extendsParagraph, implementsType.excerpt);\r\n needsComma = true;\r\n }\r\n output.appendNode(extendsParagraph);\r\n }\r\n }\r\n\r\n if (apiItem instanceof ApiInterface) {\r\n if (apiItem.extendsTypes.length > 0) {\r\n const extendsParagraph: DocParagraph = new DocParagraph({ configuration }, [\r\n new DocEmphasisSpan({ configuration, bold: true }, [\r\n new DocPlainText({ configuration, text: 'Extends: ' })\r\n ])\r\n ]);\r\n let needsComma: boolean = false;\r\n for (const extendsType of apiItem.extendsTypes) {\r\n if (needsComma) {\r\n extendsParagraph.appendNode(new DocPlainText({ configuration, text: ', ' }));\r\n }\r\n this._appendExcerptWithHyperlinks(extendsParagraph, extendsType.excerpt);\r\n needsComma = true;\r\n }\r\n output.appendNode(extendsParagraph);\r\n }\r\n }\r\n\r\n if (apiItem instanceof ApiTypeAlias) {\r\n const refs: ExcerptToken[] = apiItem.excerptTokens.filter(\r\n (token) =>\r\n token.kind === ExcerptTokenKind.Reference &&\r\n token.canonicalReference &&\r\n this._apiModel.resolveDeclarationReference(token.canonicalReference, undefined).resolvedApiItem\r\n );\r\n if (refs.length > 0) {\r\n const referencesParagraph: DocParagraph = new DocParagraph({ configuration }, [\r\n new DocEmphasisSpan({ configuration, bold: true }, [\r\n new DocPlainText({ configuration, text: 'References: ' })\r\n ])\r\n ]);\r\n let needsComma: boolean = false;\r\n const visited: Set<string> = new Set();\r\n for (const ref of refs) {\r\n if (visited.has(ref.text)) {\r\n continue;\r\n }\r\n visited.add(ref.text);\r\n\r\n if (needsComma) {\r\n referencesParagraph.appendNode(new DocPlainText({ configuration, text: ', ' }));\r\n }\r\n\r\n this._appendExcerptTokenWithHyperlinks(referencesParagraph, ref);\r\n needsComma = true;\r\n }\r\n output.appendNode(referencesParagraph);\r\n }\r\n }\r\n }\r\n\r\n private _writeRemarksSection(output: DocSection, apiItem: ApiItem): void {\r\n if (apiItem instanceof ApiDocumentedItem) {\r\n const tsdocComment: DocComment | undefined = apiItem.tsdocComment;\r\n\r\n if (tsdocComment) {\r\n // Write the @remarks block\r\n if (tsdocComment.remarksBlock) {\r\n output.appendNode(new DocHeading({ configuration: this._tsdocConfiguration, title: 'Remarks' }));\r\n this._appendSection(output, tsdocComment.remarksBlock.content);\r\n }\r\n\r\n // Write the @example blocks\r\n const exampleBlocks: DocBlock[] = tsdocComment.customBlocks.filter(\r\n (x) => x.blockTag.tagNameWithUpperCase === StandardTags.example.tagNameWithUpperCase\r\n );\r\n\r\n let exampleNumber: number = 1;\r\n for (const exampleBlock of exampleBlocks) {\r\n const heading: string = exampleBlocks.length > 1 ? `Example ${exampleNumber}` : 'Example';\r\n\r\n output.appendNode(new DocHeading({ configuration: this._tsdocConfiguration, title: heading }));\r\n\r\n this._appendSection(output, exampleBlock.content);\r\n\r\n ++exampleNumber;\r\n }\r\n }\r\n }\r\n }\r\n\r\n private _writeThrowsSection(output: DocSection, apiItem: ApiItem): void {\r\n if (apiItem instanceof ApiDocumentedItem) {\r\n const tsdocComment: DocComment | undefined = apiItem.tsdocComment;\r\n\r\n if (tsdocComment) {\r\n // Write the @throws blocks\r\n const throwsBlocks: DocBlock[] = tsdocComment.customBlocks.filter(\r\n (x) => x.blockTag.tagNameWithUpperCase === StandardTags.throws.tagNameWithUpperCase\r\n );\r\n\r\n if (throwsBlocks.length > 0) {\r\n const heading: string = 'Exceptions';\r\n output.appendNode(new DocHeading({ configuration: this._tsdocConfiguration, title: heading }));\r\n\r\n for (const throwsBlock of throwsBlocks) {\r\n this._appendSection(output, throwsBlock.content);\r\n }\r\n }\r\n }\r\n }\r\n }\r\n\r\n /**\r\n * GENERATE PAGE: MODEL\r\n */\r\n private _writeModelTable(output: DocSection, apiModel: ApiModel): void {\r\n const configuration: TSDocConfiguration = this._tsdocConfiguration;\r\n\r\n const packagesTable: DocTable = new DocTable({\r\n configuration,\r\n headerTitles: ['Package', 'Description']\r\n });\r\n\r\n for (const apiMember of apiModel.members) {\r\n const row: DocTableRow = new DocTableRow({ configuration }, [\r\n this._createTitleCell(apiMember),\r\n this._createDescriptionCell(apiMember)\r\n ]);\r\n\r\n switch (apiMember.kind) {\r\n case ApiItemKind.Package:\r\n packagesTable.addRow(row);\r\n this._writeApiItemPage(apiMember);\r\n break;\r\n }\r\n }\r\n\r\n if (packagesTable.rows.length > 0) {\r\n output.appendNode(new DocHeading({ configuration: this._tsdocConfiguration, title: 'Packages' }));\r\n output.appendNode(packagesTable);\r\n }\r\n }\r\n\r\n /**\r\n * GENERATE PAGE: PACKAGE or NAMESPACE\r\n */\r\n private _writePackageOrNamespaceTables(output: DocSection, apiContainer: ApiPackage | ApiNamespace): void {\r\n const configuration: TSDocConfiguration = this._tsdocConfiguration;\r\n\r\n const classesTable: DocTable = new DocTable({\r\n configuration,\r\n headerTitles: ['Class', 'Description']\r\n });\r\n\r\n const enumerationsTable: DocTable = new DocTable({\r\n configuration,\r\n headerTitles: ['Enumeration', 'Description']\r\n });\r\n\r\n const functionsTable: DocTable = new DocTable({\r\n configuration,\r\n headerTitles: ['Function', 'Description']\r\n });\r\n\r\n const interfacesTable: DocTable = new DocTable({\r\n configuration,\r\n headerTitles: ['Interface', 'Description']\r\n });\r\n\r\n const namespacesTable: DocTable = new DocTable({\r\n configuration,\r\n headerTitles: ['Namespace', 'Description']\r\n });\r\n\r\n const variablesTable: DocTable = new DocTable({\r\n configuration,\r\n headerTitles: ['Variable', 'Description']\r\n });\r\n\r\n const typeAliasesTable: DocTable = new DocTable({\r\n configuration,\r\n headerTitles: ['Type Alias', 'Description']\r\n });\r\n\r\n const apiMembers: ReadonlyArray<ApiItem> =\r\n apiContainer.kind === ApiItemKind.Package\r\n ? (apiContainer as ApiPackage).entryPoints[0].members\r\n : (apiContainer as ApiNamespace).members;\r\n\r\n for (const apiMember of apiMembers) {\r\n const row: DocTableRow = new DocTableRow({ configuration }, [\r\n this._createTitleCell(apiMember),\r\n this._createDescriptionCell(apiMember)\r\n ]);\r\n\r\n switch (apiMember.kind) {\r\n case ApiItemKind.Class:\r\n classesTable.addRow(row);\r\n this._writeApiItemPage(apiMember);\r\n break;\r\n\r\n case ApiItemKind.Enum:\r\n enumerationsTable.addRow(row);\r\n this._writeApiItemPage(apiMember);\r\n break;\r\n\r\n case ApiItemKind.Interface:\r\n interfacesTable.addRow(row);\r\n this._writeApiItemPage(apiMember);\r\n break;\r\n\r\n case ApiItemKind.Namespace:\r\n namespacesTable.addRow(row);\r\n this._writeApiItemPage(apiMember);\r\n break;\r\n\r\n case ApiItemKind.Function:\r\n functionsTable.addRow(row);\r\n this._writeApiItemPage(apiMember);\r\n break;\r\n\r\n case ApiItemKind.TypeAlias:\r\n typeAliasesTable.addRow(row);\r\n this._writeApiItemPage(apiMember);\r\n break;\r\n\r\n case ApiItemKind.Variable:\r\n variablesTable.addRow(row);\r\n this._writeApiItemPage(apiMember);\r\n break;\r\n }\r\n }\r\n\r\n if (classesTable.rows.length > 0) {\r\n output.appendNode(new DocHeading({ configuration: this._tsdocConfiguration, title: 'Classes' }));\r\n output.appendNode(classesTable);\r\n }\r\n\r\n if (enumerationsTable.rows.length > 0) {\r\n output.appendNode(new DocHeading({ configuration: this._tsdocConfiguration, title: 'Enumerations' }));\r\n output.appendNode(enumerationsTable);\r\n }\r\n if (functionsTable.rows.length > 0) {\r\n output.appendNode(new DocHeading({ configuration: this._tsdocConfiguration, title: 'Functions' }));\r\n output.appendNode(functionsTable);\r\n }\r\n\r\n if (interfacesTable.rows.length > 0) {\r\n output.appendNode(new DocHeading({ configuration: this._tsdocConfiguration, title: 'Interfaces' }));\r\n output.appendNode(interfacesTable);\r\n }\r\n\r\n if (namespacesTable.rows.length > 0) {\r\n output.appendNode(new DocHeading({ configuration: this._tsdocConfiguration, title: 'Namespaces' }));\r\n output.appendNode(namespacesTable);\r\n }\r\n\r\n if (variablesTable.rows.length > 0) {\r\n output.appendNode(new DocHeading({ configuration: this._tsdocConfiguration, title: 'Variables' }));\r\n output.appendNode(variablesTable);\r\n }\r\n\r\n if (typeAliasesTable.rows.length > 0) {\r\n output.appendNode(new DocHeading({ configuration: this._tsdocConfiguration, title: 'Type Aliases' }));\r\n output.appendNode(typeAliasesTable);\r\n }\r\n }\r\n\r\n /**\r\n * GENERATE PAGE: CLASS\r\n */\r\n private _writeClassTables(output: DocSection, apiClass: ApiClass): void {\r\n const configuration: TSDocConfiguration = this._tsdocConfiguration;\r\n\r\n const eventsTable: DocTable = new DocTable({\r\n configuration,\r\n headerTitles: ['Property', 'Modifiers', 'Type', 'Description']\r\n });\r\n\r\n const constructorsTable: DocTable = new DocTable({\r\n configuration,\r\n headerTitles: ['Constructor', 'Modifiers', 'Description']\r\n });\r\n\r\n const propertiesTable: DocTable = new DocTable({\r\n configuration,\r\n headerTitles: ['Property', 'Modifiers', 'Type', 'Description']\r\n });\r\n\r\n const methodsTable: DocTable = new DocTable({\r\n configuration,\r\n headerTitles: ['Method', 'Modifiers', 'Description']\r\n });\r\n\r\n for (const apiMember of apiClass.members) {\r\n switch (apiMember.kind) {\r\n case ApiItemKind.Constructor: {\r\n constructorsTable.addRow(\r\n new DocTableRow({ configuration }, [\r\n this._createTitleCell(apiMember),\r\n this._createModifiersCell(apiMember),\r\n this._createDescriptionCell(apiMember)\r\n ])\r\n );\r\n\r\n this._writeApiItemPage(apiMember);\r\n break;\r\n }\r\n case ApiItemKind.Method: {\r\n methodsTable.addRow(\r\n new DocTableRow({ configuration }, [\r\n this._createTitleCell(apiMember),\r\n this._createModifiersCell(apiMember),\r\n this._createDescriptionCell(apiMember)\r\n ])\r\n );\r\n\r\n this._writeApiItemPage(apiMember);\r\n break;\r\n }\r\n case ApiItemKind.Property: {\r\n if ((apiMember as ApiPropertyItem).isEventProperty) {\r\n eventsTable.addRow(\r\n new DocTableRow({ configuration }, [\r\n this._createTitleCell(apiMember),\r\n this._createModifiersCell(apiMember),\r\n this._createPropertyTypeCell(apiMember),\r\n this._createDescriptionCell(apiMember)\r\n ])\r\n );\r\n } else {\r\n propertiesTable.addRow(\r\n new DocTableRow({ configuration }, [\r\n this._createTitleCell(apiMember),\r\n this._createModifiersCell(apiMember),\r\n this._createPropertyTypeCell(apiMember),\r\n this._createDescriptionCell(apiMember)\r\n ])\r\n );\r\n }\r\n\r\n this._writeApiItemPage(apiMember);\r\n break;\r\n }\r\n }\r\n }\r\n\r\n if (eventsTable.rows.length > 0) {\r\n output.appendNode(new DocHeading({ configuration: this._tsdocConfiguration, title: 'Events' }));\r\n output.appendNode(eventsTable);\r\n }\r\n\r\n if (constructorsTable.rows.length > 0) {\r\n output.appendNode(new DocHeading({ configuration: this._tsdocConfiguration, title: 'Constructors' }));\r\n output.appendNode(constructorsTable);\r\n }\r\n\r\n if (propertiesTable.rows.length > 0) {\r\n output.appendNode(new DocHeading({ configuration: this._tsdocConfiguration, title: 'Properties' }));\r\n output.appendNode(propertiesTable);\r\n }\r\n\r\n if (methodsTable.rows.length > 0) {\r\n output.appendNode(new DocHeading({ configuration: this._tsdocConfiguration, title: 'Methods' }));\r\n output.appendNode(methodsTable);\r\n }\r\n }\r\n\r\n /**\r\n * GENERATE PAGE: ENUM\r\n */\r\n private _writeEnumTables(output: DocSection, apiEnum: ApiEnum): void {\r\n const configuration: TSDocConfiguration = this._tsdocConfiguration;\r\n\r\n const enumMembersTable: DocTable = new DocTable({\r\n configuration,\r\n headerTitles: ['Member', 'Value', 'Description']\r\n });\r\n\r\n for (const apiEnumMember of apiEnum.members) {\r\n enumMembersTable.addRow(\r\n new DocTableRow({ configuration }, [\r\n new DocTableCell({ configuration }, [\r\n new DocParagraph({ configuration }, [\r\n new DocPlainText({ configuration, text: Utilities.getConciseSignature(apiEnumMember) })\r\n ])\r\n ]),\r\n\r\n new DocTableCell({ configuration }, [\r\n new DocParagraph({ configuration }, [\r\n new DocCodeSpan({ configuration, code: apiEnumMember.initializerExcerpt.text })\r\n ])\r\n ]),\r\n\r\n this._createDescriptionCell(apiEnumMember)\r\n ])\r\n );\r\n }\r\n\r\n if (enumMembersTable.rows.length > 0) {\r\n output.appendNode(\r\n new DocHeading({ configuration: this._tsdocConfiguration, title: 'Enumeration Members' })\r\n );\r\n output.appendNode(enumMembersTable);\r\n }\r\n }\r\n\r\n /**\r\n * GENERATE PAGE: INTERFACE\r\n */\r\n private _writeInterfaceTables(output: DocSection, apiClass: ApiInterface): void {\r\n const configuration: TSDocConfiguration = this._tsdocConfiguration;\r\n\r\n const eventsTable: DocTable = new DocTable({\r\n configuration,\r\n headerTitles: ['Property', 'Type', 'Description']\r\n });\r\n\r\n const propertiesTable: DocTable = new DocTable({\r\n configuration,\r\n headerTitles: ['Property', 'Type', 'Description']\r\n });\r\n\r\n const methodsTable: DocTable = new DocTable({\r\n configuration,\r\n headerTitles: ['Method', 'Description']\r\n });\r\n\r\n for (const apiMember of apiClass.members) {\r\n switch (apiMember.kind) {\r\n case ApiItemKind.ConstructSignature:\r\n case ApiItemKind.MethodSignature: {\r\n methodsTable.addRow(\r\n new DocTableRow({ configuration }, [\r\n this._createTitleCell(apiMember),\r\n this._createDescriptionCell(apiMember)\r\n ])\r\n );\r\n\r\n this._writeApiItemPage(apiMember);\r\n break;\r\n }\r\n case ApiItemKind.PropertySignature: {\r\n if ((apiMember as ApiPropertyItem).isEventProperty) {\r\n eventsTable.addRow(\r\n new DocTableRow({ configuration }, [\r\n this._createTitleCell(apiMember),\r\n this._createPropertyTypeCell(apiMember),\r\n this._createDescriptionCell(apiMember)\r\n ])\r\n );\r\n } else {\r\n propertiesTable.addRow(\r\n new DocTableRow({ configuration }, [\r\n this._createTitleCell(apiMember),\r\n this._createPropertyTypeCell(apiMember),\r\n this._createDescriptionCell(apiMember)\r\n ])\r\n );\r\n }\r\n\r\n this._writeApiItemPage(apiMember);\r\n break;\r\n }\r\n }\r\n }\r\n\r\n if (eventsTable.rows.length > 0) {\r\n output.appendNode(new DocHeading({ configuration: this._tsdocConfiguration, title: 'Events' }));\r\n output.appendNode(eventsTable);\r\n }\r\n\r\n if (propertiesTable.rows.length > 0) {\r\n output.appendNode(new DocHeading({ configuration: this._tsdocConfiguration, title: 'Properties' }));\r\n output.appendNode(propertiesTable);\r\n }\r\n\r\n if (methodsTable.rows.length > 0) {\r\n output.appendNode(new DocHeading({ configuration: this._tsdocConfiguration, title: 'Methods' }));\r\n output.appendNode(methodsTable);\r\n }\r\n }\r\n\r\n /**\r\n * GENERATE PAGE: FUNCTION-LIKE\r\n */\r\n private _writeParameterTables(output: DocSection, apiParameterListMixin: ApiParameterListMixin): void {\r\n const configuration: TSDocConfiguration = this._tsdocConfiguration;\r\n\r\n const parametersTable: DocTable = new DocTable({\r\n configuration,\r\n headerTitles: ['Parameter', 'Type', 'Description']\r\n });\r\n for (const apiParameter of apiParameterListMixin.parameters) {\r\n const parameterDescription: DocSection = new DocSection({ configuration });\r\n if (apiParameter.tsdocParamBlock) {\r\n this._appendSection(parameterDescription, apiParameter.tsdocParamBlock.content);\r\n }\r\n\r\n parametersTable.addRow(\r\n new DocTableRow({ configuration }, [\r\n new DocTableCell({ configuration }, [\r\n new DocParagraph({ configuration }, [\r\n new DocPlainText({ configuration, text: apiParameter.name })\r\n ])\r\n ]),\r\n new DocTableCell({ configuration }, [\r\n this._createParagraphForTypeExcerpt(apiParameter.parameterTypeExcerpt)\r\n ]),\r\n new DocTableCell({ configuration }, parameterDescription.nodes)\r\n ])\r\n );\r\n }\r\n\r\n if (parametersTable.rows.length > 0) {\r\n output.appendNode(new DocHeading({ configuration: this._tsdocConfiguration, title: 'Parameters' }));\r\n output.appendNode(parametersTable);\r\n }\r\n\r\n if (ApiReturnTypeMixin.isBaseClassOf(apiParameterListMixin)) {\r\n const returnTypeExcerpt: Excerpt = apiParameterListMixin.returnTypeExcerpt;\r\n output.appendNode(\r\n new DocParagraph({ configuration }, [\r\n new DocEmphasisSpan({ configuration, bold: true }, [\r\n new DocPlainText({ configuration, text: 'Returns:' })\r\n ])\r\n ])\r\n );\r\n\r\n output.appendNode(this._createParagraphForTypeExcerpt(returnTypeExcerpt));\r\n\r\n if (apiParameterListMixin instanceof ApiDocumentedItem) {\r\n if (apiParameterListMixin.tsdocComment && apiParameterListMixin.tsdocComment.returnsBlock) {\r\n this._appendSection(output, apiParameterListMixin.tsdocComment.returnsBlock.content);\r\n }\r\n }\r\n }\r\n }\r\n\r\n private _createParagraphForTypeExcerpt(excerpt: Excerpt): DocParagraph {\r\n const configuration: TSDocConfiguration = this._tsdocConfiguration;\r\n\r\n const paragraph: DocParagraph = new DocParagraph({ configuration });\r\n\r\n if (!excerpt.text.trim()) {\r\n paragraph.appendNode(new DocPlainText({ configuration, text: '(not declared)' }));\r\n } else {\r\n this._appendExcerptWithHyperlinks(paragraph, excerpt);\r\n }\r\n\r\n return paragraph;\r\n }\r\n\r\n private _appendExcerptWithHyperlinks(docNodeContainer: DocNodeContainer, excerpt: Excerpt): void {\r\n for (const token of excerpt.spannedTokens) {\r\n this._appendExcerptTokenWithHyperlinks(docNodeContainer, token);\r\n }\r\n }\r\n\r\n private _appendExcerptTokenWithHyperlinks(docNodeContainer: DocNodeContainer, token: ExcerptToken): void {\r\n const configuration: TSDocConfiguration = this._tsdocConfiguration;\r\n\r\n // Markdown doesn't provide a standardized syntax for hyperlinks inside code spans, so we will render\r\n // the type expression as DocPlainText. Instead of creating multiple DocParagraphs, we can simply\r\n // discard any newlines and let the renderer do normal word-wrapping.\r\n const unwrappedTokenText: string = token.text.replace(/[\\r\\n]+/g, ' ');\r\n\r\n // If it's hyperlinkable, then append a DocLinkTag\r\n if (token.kind === ExcerptTokenKind.Reference && token.canonicalReference) {\r\n const apiItemResult: IResolveDeclarationReferenceResult = this._apiModel.resolveDeclarationReference(\r\n token.canonicalReference,\r\n undefined\r\n );\r\n\r\n if (apiItemResult.resolvedApiItem) {\r\n docNodeContainer.appendNode(\r\n new DocLinkTag({\r\n configuration,\r\n tagName: '@link',\r\n linkText: unwrappedTokenText,\r\n urlDestination: this._getLinkFilenameForApiItem(apiItemResult.resolvedApiItem)\r\n })\r\n );\r\n return;\r\n }\r\n }\r\n\r\n // Otherwise append non-hyperlinked text\r\n docNodeContainer.appendNode(new DocPlainText({ configuration, text: unwrappedTokenText }));\r\n }\r\n\r\n private _createTitleCell(apiItem: ApiItem): DocTableCell {\r\n const configuration: TSDocConfiguration = this._tsdocConfiguration;\r\n\r\n let linkText: string = Utilities.getConciseSignature(apiItem);\r\n if (ApiOptionalMixin.isBaseClassOf(apiItem) && apiItem.isOptional) {\r\n linkText += '?';\r\n }\r\n\r\n return new DocTableCell({ configuration }, [\r\n new DocParagraph({ configuration }, [\r\n new DocLinkTag({\r\n configuration,\r\n tagName: '@link',\r\n linkText: linkText,\r\n urlDestination: this._getLinkFilenameForApiItem(apiItem)\r\n })\r\n ])\r\n ]);\r\n }\r\n\r\n /**\r\n * This generates a DocTableCell for an ApiItem including the summary section and \"(BETA)\" annotation.\r\n *\r\n * @remarks\r\n * We mostly assume that the input is an ApiDocumentedItem, but it's easier to perform this as a runtime\r\n * check than to have each caller perform a type cast.\r\n */\r\n private _createDescriptionCell(apiItem: ApiItem): DocTableCell {\r\n const configuration: TSDocConfiguration = this._tsdocConfiguration;\r\n\r\n const section: DocSection = new DocSection({ configuration });\r\n\r\n if (ApiReleaseTagMixin.isBaseClassOf(apiItem)) {\r\n if (apiItem.releaseTag === ReleaseTag.Beta) {\r\n section.appendNodesInParagraph([\r\n new DocEmphasisSpan({ configuration, bold: true, italic: true }, [\r\n new DocPlainText({ configuration, text: '(BETA)' })\r\n ]),\r\n new DocPlainText({ configuration, text: ' ' })\r\n ]);\r\n }\r\n }\r\n\r\n if (ApiOptionalMixin.isBaseClassOf(apiItem) && apiItem.isOptional) {\r\n section.appendNodesInParagraph([\r\n new DocEmphasisSpan({ configuration, italic: true }, [\r\n new DocPlainText({ configuration, text: '(Optional)' })\r\n ]),\r\n new DocPlainText({ configuration, text: ' ' })\r\n ]);\r\n }\r\n\r\n if (apiItem instanceof ApiDocumentedItem) {\r\n if (apiItem.tsdocComment !== undefined) {\r\n this._appendAndMergeSection(section, apiItem.tsdocComment.summarySection);\r\n }\r\n }\r\n\r\n return new DocTableCell({ configuration }, section.nodes);\r\n }\r\n\r\n private _createModifiersCell(apiItem: ApiItem): DocTableCell {\r\n const configuration: TSDocConfiguration = this._tsdocConfiguration;\r\n\r\n const section: DocSection = new DocSection({ configuration });\r\n\r\n if (ApiStaticMixin.isBaseClassOf(apiItem)) {\r\n if (apiItem.isStatic) {\r\n section.appendNodeInParagraph(new DocCodeSpan({ configuration, code: 'static' }));\r\n }\r\n }\r\n\r\n return new DocTableCell({ configuration }, section.nodes);\r\n }\r\n\r\n private _createPropertyTypeCell(apiItem: ApiItem): DocTableCell {\r\n const configuration: TSDocConfiguration = this._tsdocConfiguration;\r\n\r\n const section: DocSection = new DocSection({ configuration });\r\n\r\n if (apiItem instanceof ApiPropertyItem) {\r\n section.appendNode(this._createParagraphForTypeExcerpt(apiItem.propertyTypeExcerpt));\r\n }\r\n\r\n return new DocTableCell({ configuration }, section.nodes);\r\n }\r\n\r\n private _writeBreadcrumb(output: DocSection, apiItem: ApiItem): void {\r\n output.appendNodeInParagraph(\r\n new DocLinkTag({\r\n configuration: this._tsdocConfiguration,\r\n tagName: '@link',\r\n linkText: 'Home',\r\n urlDestination: this._getLinkFilenameForApiItem(this._apiModel)\r\n })\r\n );\r\n\r\n for (const hierarchyItem of apiItem.getHierarchy()) {\r\n switch (hierarchyItem.kind) {\r\n case ApiItemKind.Model:\r\n case ApiItemKind.EntryPoint:\r\n // We don't show the model as part of the breadcrumb because it is the root-level container.\r\n // We don't show the entry point because today API Extractor doesn't support multiple entry points;\r\n // this may change in the future.\r\n break;\r\n default:\r\n output.appendNodesInParagraph([\r\n new DocPlainText({\r\n configuration: this._tsdocConfiguration,\r\n text: ' > '\r\n }),\r\n new DocLinkTag({\r\n configuration: this._tsdocConfiguration,\r\n tagName: '@link',\r\n linkText: hierarchyItem.displayName,\r\n urlDestination: this._getLinkFilenameForApiItem(hierarchyItem)\r\n })\r\n ]);\r\n }\r\n }\r\n }\r\n\r\n private _writeBetaWarning(output: DocSection): void {\r\n const configuration: TSDocConfiguration = this._tsdocConfiguration;\r\n const betaWarning: string =\r\n 'This API is provided as a preview for developers and may change' +\r\n ' based on feedback that we receive. Do not use this API in a production environment.';\r\n output.appendNode(\r\n new DocNoteBox({ configuration }, [\r\n new DocParagraph({ configuration }, [new DocPlainText({ configuration, text: betaWarning })])\r\n ])\r\n );\r\n }\r\n\r\n private _appendSection(output: DocSection, docSection: DocSection): void {\r\n for (const node of docSection.nodes) {\r\n output.appendNode(node);\r\n }\r\n }\r\n\r\n private _appendAndMergeSection(output: DocSection, docSection: DocSection): void {\r\n let firstNode: boolean = true;\r\n for (const node of docSection.nodes) {\r\n if (firstNode) {\r\n if (node.kind === DocNodeKind.Paragraph) {\r\n output.appendNodesInParagraph(node.getChildNodes());\r\n firstNode = false;\r\n continue;\r\n }\r\n }\r\n firstNode = false;\r\n\r\n output.appendNode(node);\r\n }\r\n }\r\n\r\n private _getFilenameForApiItem(apiItem: ApiItem): string {\r\n if (apiItem.kind === ApiItemKind.Model) {\r\n return 'index.md';\r\n }\r\n\r\n let baseName: string = '';\r\n for (const hierarchyItem of apiItem.getHierarchy()) {\r\n // For overloaded methods, add a suffix such as \"MyClass.myMethod_2\".\r\n let qualifiedName: string = Utilities.getSafeFilenameForName(hierarchyItem.displayName);\r\n if (ApiParameterListMixin.isBaseClassOf(hierarchyItem)) {\r\n if (hierarchyItem.overloadIndex > 1) {\r\n // Subtract one for compatibility with earlier releases of API Documenter.\r\n // (This will get revamped when we fix GitHub issue #1308)\r\n qualifiedName += `_${hierarchyItem.overloadIndex - 1}`;\r\n }\r\n }\r\n\r\n switch (hierarchyItem.kind) {\r\n case ApiItemKind.Model:\r\n case ApiItemKind.EntryPoint:\r\n case ApiItemKind.EnumMember:\r\n break;\r\n case ApiItemKind.Package:\r\n baseName = Utilities.getSafeFilenameForName(PackageName.getUnscopedName(hierarchyItem.displayName));\r\n break;\r\n default:\r\n baseName += '.' + qualifiedName;\r\n }\r\n }\r\n return baseName + '.md';\r\n }\r\n\r\n private _getLinkFilenameForApiItem(apiItem: ApiItem): string {\r\n return './' + this._getFilenameForApiItem(apiItem);\r\n }\r\n\r\n private _deleteOldOutputFiles(): void {\r\n console.log('Deleting old output from ' + this._outputFolder);\r\n FileSystem.ensureEmptyFolder(this._outputFolder);\r\n }\r\n}\r\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@microsoft/api-documenter",
|
|
3
|
-
"version": "7.13.
|
|
3
|
+
"version": "7.13.70",
|
|
4
4
|
"description": "Read JSON files from api-extractor, generate documentation pages",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -15,9 +15,9 @@
|
|
|
15
15
|
"main": "lib/index.js",
|
|
16
16
|
"typings": "dist/rollup.d.ts",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@microsoft/api-extractor-model": "7.13.
|
|
18
|
+
"@microsoft/api-extractor-model": "7.13.16",
|
|
19
19
|
"@microsoft/tsdoc": "0.13.2",
|
|
20
|
-
"@rushstack/node-core-library": "3.43.
|
|
20
|
+
"@rushstack/node-core-library": "3.43.2",
|
|
21
21
|
"@rushstack/ts-command-line": "4.10.4",
|
|
22
22
|
"colors": "~1.2.1",
|
|
23
23
|
"js-yaml": "~3.13.1",
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"@rushstack/eslint-config": "2.4.5",
|
|
28
|
-
"@rushstack/heft": "0.42.
|
|
29
|
-
"@rushstack/heft-node-rig": "1.2.
|
|
28
|
+
"@rushstack/heft": "0.42.3",
|
|
29
|
+
"@rushstack/heft-node-rig": "1.2.32",
|
|
30
30
|
"@types/heft-jest": "1.0.1",
|
|
31
31
|
"@types/js-yaml": "3.12.1",
|
|
32
32
|
"@types/node": "12.20.24",
|