@firebase/api-documenter 0.1.2-canary.233e117f0

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.
Files changed (92) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/README.md +16 -0
  3. package/dist/cli/ApiDocumenterCommandLine.d.ts +22 -0
  4. package/dist/cli/ApiDocumenterCommandLine.js +44 -0
  5. package/dist/cli/ApiDocumenterCommandLine.js.map +1 -0
  6. package/dist/cli/BaseAction.d.ts +37 -0
  7. package/dist/cli/BaseAction.js +125 -0
  8. package/dist/cli/BaseAction.js.map +1 -0
  9. package/dist/cli/MarkdownAction.d.ts +22 -0
  10. package/dist/cli/MarkdownAction.js +47 -0
  11. package/dist/cli/MarkdownAction.js.map +1 -0
  12. package/dist/cli/TocAction.d.ts +25 -0
  13. package/dist/cli/TocAction.js +67 -0
  14. package/dist/cli/TocAction.js.map +1 -0
  15. package/dist/documenters/DocumenterConfig.d.ts +45 -0
  16. package/dist/documenters/DocumenterConfig.js +63 -0
  17. package/dist/documenters/DocumenterConfig.js.map +1 -0
  18. package/dist/documenters/IConfigFile.d.ts +98 -0
  19. package/dist/documenters/IConfigFile.js +19 -0
  20. package/dist/documenters/IConfigFile.js.map +1 -0
  21. package/dist/documenters/MarkdownDocumenter.d.ts +75 -0
  22. package/dist/documenters/MarkdownDocumenter.js +750 -0
  23. package/dist/documenters/MarkdownDocumenter.js.map +1 -0
  24. package/dist/documenters/MarkdownDocumenterHelpers.d.ts +40 -0
  25. package/dist/documenters/MarkdownDocumenterHelpers.js +306 -0
  26. package/dist/documenters/MarkdownDocumenterHelpers.js.map +1 -0
  27. package/dist/index.d.ts +27 -0
  28. package/dist/index.js +29 -0
  29. package/dist/index.js.map +1 -0
  30. package/dist/markdown/CustomMarkdownEmitter.d.ts +32 -0
  31. package/dist/markdown/CustomMarkdownEmitter.js +161 -0
  32. package/dist/markdown/CustomMarkdownEmitter.js.map +1 -0
  33. package/dist/markdown/MarkdownEmitter.d.ts +48 -0
  34. package/dist/markdown/MarkdownEmitter.js +243 -0
  35. package/dist/markdown/MarkdownEmitter.js.map +1 -0
  36. package/dist/markdown/test/CustomMarkdownEmitter.test.d.ts +17 -0
  37. package/dist/markdown/test/CustomMarkdownEmitter.test.js +205 -0
  38. package/dist/markdown/test/CustomMarkdownEmitter.test.js.map +1 -0
  39. package/dist/nodes/CustomDocNodeKind.d.ts +32 -0
  40. package/dist/nodes/CustomDocNodeKind.js +58 -0
  41. package/dist/nodes/CustomDocNodeKind.js.map +1 -0
  42. package/dist/nodes/DocEmphasisSpan.d.ts +35 -0
  43. package/dist/nodes/DocEmphasisSpan.js +39 -0
  44. package/dist/nodes/DocEmphasisSpan.js.map +1 -0
  45. package/dist/nodes/DocHeading.d.ts +38 -0
  46. package/dist/nodes/DocHeading.js +45 -0
  47. package/dist/nodes/DocHeading.js.map +1 -0
  48. package/dist/nodes/DocNoteBox.d.ts +33 -0
  49. package/dist/nodes/DocNoteBox.js +41 -0
  50. package/dist/nodes/DocNoteBox.js.map +1 -0
  51. package/dist/nodes/DocTable.d.ts +41 -0
  52. package/dist/nodes/DocTable.js +77 -0
  53. package/dist/nodes/DocTable.js.map +1 -0
  54. package/dist/nodes/DocTableCell.d.ts +31 -0
  55. package/dist/nodes/DocTableCell.js +37 -0
  56. package/dist/nodes/DocTableCell.js.map +1 -0
  57. package/dist/nodes/DocTableRow.d.ts +38 -0
  58. package/dist/nodes/DocTableRow.js +68 -0
  59. package/dist/nodes/DocTableRow.js.map +1 -0
  60. package/dist/plugin/IApiDocumenterPluginManifest.d.ts +85 -0
  61. package/dist/plugin/IApiDocumenterPluginManifest.js +19 -0
  62. package/dist/plugin/IApiDocumenterPluginManifest.js.map +1 -0
  63. package/dist/plugin/MarkdownDocumenterAccessor.d.ts +41 -0
  64. package/dist/plugin/MarkdownDocumenterAccessor.js +44 -0
  65. package/dist/plugin/MarkdownDocumenterAccessor.js.map +1 -0
  66. package/dist/plugin/MarkdownDocumenterFeature.d.ts +88 -0
  67. package/dist/plugin/MarkdownDocumenterFeature.js +66 -0
  68. package/dist/plugin/MarkdownDocumenterFeature.js.map +1 -0
  69. package/dist/plugin/PluginFeature.d.ts +61 -0
  70. package/dist/plugin/PluginFeature.js +76 -0
  71. package/dist/plugin/PluginFeature.js.map +1 -0
  72. package/dist/plugin/PluginLoader.d.ts +22 -0
  73. package/dist/plugin/PluginLoader.js +100 -0
  74. package/dist/plugin/PluginLoader.js.map +1 -0
  75. package/dist/schemas/api-documenter-template.json +92 -0
  76. package/dist/schemas/api-documenter.schema.json +42 -0
  77. package/dist/start.d.ts +18 -0
  78. package/dist/start.js +32 -0
  79. package/dist/start.js.map +1 -0
  80. package/dist/toc.d.ts +25 -0
  81. package/dist/toc.js +61 -0
  82. package/dist/toc.js.map +1 -0
  83. package/dist/utils/IndentedWriter.d.ts +116 -0
  84. package/dist/utils/IndentedWriter.js +213 -0
  85. package/dist/utils/IndentedWriter.js.map +1 -0
  86. package/dist/utils/Utilities.d.ts +28 -0
  87. package/dist/utils/Utilities.js +47 -0
  88. package/dist/utils/Utilities.js.map +1 -0
  89. package/dist/utils/test/IndentedWriter.test.d.ts +17 -0
  90. package/dist/utils/test/IndentedWriter.test.js +87 -0
  91. package/dist/utils/test/IndentedWriter.test.js.map +1 -0
  92. package/package.json +38 -0
@@ -0,0 +1,205 @@
1
+ "use strict";
2
+ /**
3
+ * @license
4
+ * Copyright 2020 Google LLC
5
+ *
6
+ * Licensed under the Apache License, Version 2.0 (the "License");
7
+ * you may not use this file except in compliance with the License.
8
+ * You may obtain a copy of the License at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing, software
13
+ * distributed under the License is distributed on an "AS IS" BASIS,
14
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ * See the License for the specific language governing permissions and
16
+ * limitations under the License.
17
+ */
18
+ Object.defineProperty(exports, "__esModule", { value: true });
19
+ // Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
20
+ // See LICENSE in the project root for license information.
21
+ const tsdoc_1 = require("@microsoft/tsdoc");
22
+ const CustomDocNodeKind_1 = require("../../nodes/CustomDocNodeKind");
23
+ const DocHeading_1 = require("../../nodes/DocHeading");
24
+ const DocEmphasisSpan_1 = require("../../nodes/DocEmphasisSpan");
25
+ const DocTable_1 = require("../../nodes/DocTable");
26
+ const DocTableRow_1 = require("../../nodes/DocTableRow");
27
+ const DocTableCell_1 = require("../../nodes/DocTableCell");
28
+ const CustomMarkdownEmitter_1 = require("../CustomMarkdownEmitter");
29
+ const api_extractor_model_me_1 = require("api-extractor-model-me");
30
+ const chai_1 = require("chai");
31
+ const mocha_chai_jest_snapshot_1 = require("mocha-chai-jest-snapshot");
32
+ chai_1.use(mocha_chai_jest_snapshot_1.jestSnapshotPlugin());
33
+ it('render Markdown from TSDoc', () => {
34
+ const configuration = CustomDocNodeKind_1.CustomDocNodes.configuration;
35
+ const output = new tsdoc_1.DocSection({ configuration });
36
+ output.appendNodes([
37
+ new DocHeading_1.DocHeading({ configuration, title: 'Simple bold test' }),
38
+ new tsdoc_1.DocParagraph({ configuration }, [
39
+ new tsdoc_1.DocPlainText({ configuration, text: 'This is a ' }),
40
+ new DocEmphasisSpan_1.DocEmphasisSpan({ configuration, bold: true }, [
41
+ new tsdoc_1.DocPlainText({ configuration, text: 'bold' })
42
+ ]),
43
+ new tsdoc_1.DocPlainText({ configuration, text: ' word.' })
44
+ ])
45
+ ]);
46
+ output.appendNodes([
47
+ new DocHeading_1.DocHeading({ configuration, title: 'All whitespace bold' }),
48
+ new tsdoc_1.DocParagraph({ configuration }, [
49
+ new DocEmphasisSpan_1.DocEmphasisSpan({ configuration, bold: true }, [
50
+ new tsdoc_1.DocPlainText({ configuration, text: ' ' })
51
+ ])
52
+ ])
53
+ ]);
54
+ output.appendNodes([
55
+ new DocHeading_1.DocHeading({ configuration, title: 'Newline bold' }),
56
+ new tsdoc_1.DocParagraph({ configuration }, [
57
+ new DocEmphasisSpan_1.DocEmphasisSpan({ configuration, bold: true }, [
58
+ new tsdoc_1.DocPlainText({ configuration, text: 'line 1' }),
59
+ new tsdoc_1.DocSoftBreak({ configuration }),
60
+ new tsdoc_1.DocPlainText({ configuration, text: 'line 2' })
61
+ ])
62
+ ])
63
+ ]);
64
+ output.appendNodes([
65
+ new DocHeading_1.DocHeading({ configuration, title: 'Newline bold with spaces' }),
66
+ new tsdoc_1.DocParagraph({ configuration }, [
67
+ new DocEmphasisSpan_1.DocEmphasisSpan({ configuration, bold: true }, [
68
+ new tsdoc_1.DocPlainText({ configuration, text: ' line 1 ' }),
69
+ new tsdoc_1.DocSoftBreak({ configuration }),
70
+ new tsdoc_1.DocPlainText({ configuration, text: ' line 2 ' }),
71
+ new tsdoc_1.DocSoftBreak({ configuration }),
72
+ new tsdoc_1.DocPlainText({ configuration, text: ' line 3 ' })
73
+ ])
74
+ ])
75
+ ]);
76
+ output.appendNodes([
77
+ new DocHeading_1.DocHeading({ configuration, title: 'Adjacent bold regions' }),
78
+ new tsdoc_1.DocParagraph({ configuration }, [
79
+ new DocEmphasisSpan_1.DocEmphasisSpan({ configuration, bold: true }, [
80
+ new tsdoc_1.DocPlainText({ configuration, text: 'one' })
81
+ ]),
82
+ new DocEmphasisSpan_1.DocEmphasisSpan({ configuration, bold: true }, [
83
+ new tsdoc_1.DocPlainText({ configuration, text: 'two' })
84
+ ]),
85
+ new DocEmphasisSpan_1.DocEmphasisSpan({ configuration, bold: true }, [
86
+ new tsdoc_1.DocPlainText({ configuration, text: ' three ' })
87
+ ]),
88
+ new tsdoc_1.DocPlainText({ configuration, text: '' }),
89
+ new DocEmphasisSpan_1.DocEmphasisSpan({ configuration, bold: true }, [
90
+ new tsdoc_1.DocPlainText({ configuration, text: 'four' })
91
+ ]),
92
+ new tsdoc_1.DocPlainText({ configuration, text: 'non-bold' }),
93
+ new DocEmphasisSpan_1.DocEmphasisSpan({ configuration, bold: true }, [
94
+ new tsdoc_1.DocPlainText({ configuration, text: 'five' })
95
+ ])
96
+ ])
97
+ ]);
98
+ output.appendNodes([
99
+ new DocHeading_1.DocHeading({ configuration, title: 'Adjacent to other characters' }),
100
+ new tsdoc_1.DocParagraph({ configuration }, [
101
+ new tsdoc_1.DocLinkTag({
102
+ configuration,
103
+ tagName: '@link',
104
+ linkText: 'a link',
105
+ urlDestination: './index.md'
106
+ }),
107
+ new DocEmphasisSpan_1.DocEmphasisSpan({ configuration, bold: true }, [
108
+ new tsdoc_1.DocPlainText({ configuration, text: 'bold' })
109
+ ]),
110
+ new tsdoc_1.DocPlainText({ configuration, text: 'non-bold' }),
111
+ new tsdoc_1.DocPlainText({ configuration, text: 'more-non-bold' })
112
+ ])
113
+ ]);
114
+ output.appendNodes([
115
+ new DocHeading_1.DocHeading({ configuration, title: 'Unknown block tag' }),
116
+ new tsdoc_1.DocParagraph({ configuration }, [
117
+ new tsdoc_1.DocBlockTag({
118
+ configuration,
119
+ tagName: '@unknown'
120
+ }),
121
+ new DocEmphasisSpan_1.DocEmphasisSpan({ configuration, bold: true }, [
122
+ new tsdoc_1.DocPlainText({ configuration, text: 'bold' })
123
+ ]),
124
+ new tsdoc_1.DocPlainText({ configuration, text: 'non-bold' }),
125
+ new tsdoc_1.DocPlainText({ configuration, text: 'more-non-bold' })
126
+ ])
127
+ ]);
128
+ output.appendNodes([
129
+ new DocHeading_1.DocHeading({ configuration, title: 'Bad characters' }),
130
+ new tsdoc_1.DocParagraph({ configuration }, [
131
+ new DocEmphasisSpan_1.DocEmphasisSpan({ configuration, bold: true }, [
132
+ new tsdoc_1.DocPlainText({ configuration, text: '*one*two*' })
133
+ ]),
134
+ new DocEmphasisSpan_1.DocEmphasisSpan({ configuration, bold: true }, [
135
+ new tsdoc_1.DocPlainText({ configuration, text: 'three*four' })
136
+ ])
137
+ ])
138
+ ]);
139
+ output.appendNodes([
140
+ new DocHeading_1.DocHeading({
141
+ configuration,
142
+ title: 'Characters that should be escaped'
143
+ }),
144
+ new tsdoc_1.DocParagraph({ configuration }, [
145
+ new tsdoc_1.DocPlainText({
146
+ configuration,
147
+ text: 'Double-encoded JSON: "{ \\"A\\": 123}"'
148
+ })
149
+ ]),
150
+ new tsdoc_1.DocParagraph({ configuration }, [
151
+ new tsdoc_1.DocPlainText({
152
+ configuration,
153
+ text: 'HTML chars: <script>alert("[You] are #1!");</script>'
154
+ })
155
+ ]),
156
+ new tsdoc_1.DocParagraph({ configuration }, [
157
+ new tsdoc_1.DocPlainText({ configuration, text: 'HTML escape: &quot;' })
158
+ ]),
159
+ new tsdoc_1.DocParagraph({ configuration }, [
160
+ new tsdoc_1.DocPlainText({
161
+ configuration,
162
+ text: '3 or more hyphens: - -- --- ---- ----- ------'
163
+ })
164
+ ])
165
+ ]);
166
+ output.appendNodes([
167
+ new DocHeading_1.DocHeading({ configuration, title: 'HTML tag' }),
168
+ new tsdoc_1.DocParagraph({ configuration }, [
169
+ new tsdoc_1.DocHtmlStartTag({ configuration, name: 'b' }),
170
+ new tsdoc_1.DocPlainText({ configuration, text: 'bold' }),
171
+ new tsdoc_1.DocHtmlEndTag({ configuration, name: 'b' })
172
+ ])
173
+ ]);
174
+ output.appendNodes([
175
+ new DocHeading_1.DocHeading({ configuration, title: 'Table' }),
176
+ new DocTable_1.DocTable({
177
+ configuration,
178
+ headerTitles: ['Header 1', 'Header 2']
179
+ }, [
180
+ new DocTableRow_1.DocTableRow({ configuration }, [
181
+ new DocTableCell_1.DocTableCell({ configuration }, [
182
+ new tsdoc_1.DocParagraph({ configuration }, [
183
+ new tsdoc_1.DocPlainText({ configuration, text: 'Cell 1' })
184
+ ])
185
+ ]),
186
+ new DocTableCell_1.DocTableCell({ configuration }, [
187
+ new tsdoc_1.DocParagraph({ configuration }, [
188
+ new tsdoc_1.DocPlainText({ configuration, text: 'Cell 2' })
189
+ ])
190
+ ])
191
+ ])
192
+ ])
193
+ ]);
194
+ const stringBuilder = new tsdoc_1.StringBuilder();
195
+ const apiModel = new api_extractor_model_me_1.ApiModel();
196
+ const markdownEmitter = new CustomMarkdownEmitter_1.CustomMarkdownEmitter(apiModel);
197
+ markdownEmitter.emit(stringBuilder, output, {
198
+ contextApiItem: undefined,
199
+ onGetFilenameForApiItem: (apiItem) => {
200
+ return '#';
201
+ }
202
+ });
203
+ chai_1.expect(stringBuilder).toMatchSnapshot();
204
+ });
205
+ //# sourceMappingURL=CustomMarkdownEmitter.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CustomMarkdownEmitter.test.js","sourceRoot":"","sources":["../../../src/markdown/test/CustomMarkdownEmitter.test.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;AAEH,4FAA4F;AAC5F,2DAA2D;AAE3D,4CAW0B;AAE1B,qEAA+D;AAC/D,uDAAoD;AACpD,iEAA8D;AAC9D,mDAAgD;AAChD,yDAAsD;AACtD,2DAAwD;AACxD,oEAAiE;AACjE,mEAA2D;AAC3D,+BAAmC;AACnC,uEAA8D;AAE9D,UAAG,CAAC,6CAAkB,EAAE,CAAC,CAAC;AAE1B,EAAE,CAAC,4BAA4B,EAAE,GAAG,EAAE;IACpC,MAAM,aAAa,GAAuB,kCAAc,CAAC,aAAa,CAAC;IAEvE,MAAM,MAAM,GAAe,IAAI,kBAAU,CAAC,EAAE,aAAa,EAAE,CAAC,CAAC;IAE7D,MAAM,CAAC,WAAW,CAAC;QACjB,IAAI,uBAAU,CAAC,EAAE,aAAa,EAAE,KAAK,EAAE,kBAAkB,EAAE,CAAC;QAC5D,IAAI,oBAAY,CAAC,EAAE,aAAa,EAAE,EAAE;YAClC,IAAI,oBAAY,CAAC,EAAE,aAAa,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;YACvD,IAAI,iCAAe,CAAC,EAAE,aAAa,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE;gBACjD,IAAI,oBAAY,CAAC,EAAE,aAAa,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;aAClD,CAAC;YACF,IAAI,o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IAC1C,MAAM,eAAe,GAA0B,IAAI,6CAAqB,CACtE,QAAQ,CACT,CAAC;IACF,eAAe,CAAC,IAAI,CAAC,aAAa,EAAE,MAAM,EAAE;QAC1C,cAAc,EAAE,SAAS;QACzB,uBAAuB,EAAE,CAAC,OAAgB,EAAE,EAAE;YAC5C,OAAO,GAAG,CAAC;QACb,CAAC;KACF,CAAC,CAAC;IAEH,aAAM,CAAC,aAAa,CAAC,CAAC,eAAe,EAAE,CAAC;AAC1C,CAAC,CAAC,CAAC"}
@@ -0,0 +1,32 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2020 Google LLC
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ import { TSDocConfiguration } from '@microsoft/tsdoc';
18
+ /**
19
+ * Identifies custom subclasses of {@link DocNode}.
20
+ */
21
+ export declare const enum CustomDocNodeKind {
22
+ EmphasisSpan = "EmphasisSpan",
23
+ Heading = "Heading",
24
+ NoteBox = "NoteBox",
25
+ Table = "Table",
26
+ TableCell = "TableCell",
27
+ TableRow = "TableRow"
28
+ }
29
+ export declare class CustomDocNodes {
30
+ private static _configuration;
31
+ static get configuration(): TSDocConfiguration;
32
+ }
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+ /**
3
+ * @license
4
+ * Copyright 2020 Google LLC
5
+ *
6
+ * Licensed under the Apache License, Version 2.0 (the "License");
7
+ * you may not use this file except in compliance with the License.
8
+ * You may obtain a copy of the License at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing, software
13
+ * distributed under the License is distributed on an "AS IS" BASIS,
14
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ * See the License for the specific language governing permissions and
16
+ * limitations under the License.
17
+ */
18
+ Object.defineProperty(exports, "__esModule", { value: true });
19
+ exports.CustomDocNodes = void 0;
20
+ const tsdoc_1 = require("@microsoft/tsdoc");
21
+ const DocEmphasisSpan_1 = require("./DocEmphasisSpan");
22
+ const DocHeading_1 = require("./DocHeading");
23
+ const DocNoteBox_1 = require("./DocNoteBox");
24
+ const DocTable_1 = require("./DocTable");
25
+ const DocTableCell_1 = require("./DocTableCell");
26
+ const DocTableRow_1 = require("./DocTableRow");
27
+ class CustomDocNodes {
28
+ static get configuration() {
29
+ if (CustomDocNodes._configuration === undefined) {
30
+ const configuration = new tsdoc_1.TSDocConfiguration();
31
+ configuration.docNodeManager.registerDocNodes('@micrososft/api-documenter', [
32
+ {
33
+ docNodeKind: "EmphasisSpan" /* EmphasisSpan */,
34
+ constructor: DocEmphasisSpan_1.DocEmphasisSpan
35
+ },
36
+ { docNodeKind: "Heading" /* Heading */, constructor: DocHeading_1.DocHeading },
37
+ { docNodeKind: "NoteBox" /* NoteBox */, constructor: DocNoteBox_1.DocNoteBox },
38
+ { docNodeKind: "Table" /* Table */, constructor: DocTable_1.DocTable },
39
+ {
40
+ docNodeKind: "TableCell" /* TableCell */,
41
+ constructor: DocTableCell_1.DocTableCell
42
+ },
43
+ { docNodeKind: "TableRow" /* TableRow */, constructor: DocTableRow_1.DocTableRow }
44
+ ]);
45
+ configuration.docNodeManager.registerAllowableChildren("EmphasisSpan" /* EmphasisSpan */, ["PlainText" /* PlainText */, "SoftBreak" /* SoftBreak */]);
46
+ configuration.docNodeManager.registerAllowableChildren("Section" /* Section */, [
47
+ "Heading" /* Heading */,
48
+ "NoteBox" /* NoteBox */,
49
+ "Table" /* Table */
50
+ ]);
51
+ configuration.docNodeManager.registerAllowableChildren("Paragraph" /* Paragraph */, ["EmphasisSpan" /* EmphasisSpan */]);
52
+ CustomDocNodes._configuration = configuration;
53
+ }
54
+ return CustomDocNodes._configuration;
55
+ }
56
+ }
57
+ exports.CustomDocNodes = CustomDocNodes;
58
+ //# sourceMappingURL=CustomDocNodeKind.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CustomDocNodeKind.js","sourceRoot":"","sources":["../../src/nodes/CustomDocNodeKind.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAEH,4CAAmE;AACnE,uDAAoD;AACpD,6CAA0C;AAC1C,6CAA0C;AAC1C,yCAAsC;AACtC,iDAA8C;AAC9C,+CAA4C;AAiB5C,MAAa,cAAc;IAGlB,MAAM,KAAK,aAAa;QAC7B,IAAI,cAAc,CAAC,cAAc,KAAK,SAAS,EAAE;YAC/C,MAAM,aAAa,GAAuB,IAAI,0BAAkB,EAAE,CAAC;YAEnE,aAAa,CAAC,cAAc,CAAC,gBAAgB,CAC3C,4BAA4B,EAC5B;gBACE;oBACE,WAAW,mCAAgC;oBAC3C,WAAW,EAAE,iCAAe;iBAC7B;gBACD,EAAE,WAAW,yBAA2B,EAAE,WAAW,EAAE,uBAAU,EAAE;gBACnE,EAAE,WAAW,yBAA2B,EAAE,WAAW,EAAE,uBAAU,EAAE;gBACnE,EAAE,WAAW,qBAAyB,EAAE,WAAW,EAAE,mBAAQ,EAAE;gBAC/D;oBACE,WAAW,6BAA6B;oBACxC,WAAW,EAAE,2BAAY;iBAC1B;gBACD,EAAE,WAAW,2BAA4B,EAAE,WAAW,EAAE,yBAAW,EAAE;aACtE,CACF,CAAC;YAEF,aAAa,CAAC,cAAc,CAAC,yBAAyB,oCAEpD,0DAA8C,CAC/C,CAAC;YAEF,aAAa,CAAC,cAAc,CAAC,yBAAyB,0BAEpD;;;;aAIC,CACF,CAAC;YAEF,aAAa,CAAC,cAAc,CAAC,yBAAyB,8BAEpD,mCAAgC,CACjC,CAAC;YAEF,cAAc,CAAC,cAAc,GAAG,aAAa,CAAC;SAC/C;QACD,OAAO,cAAc,CAAC,cAAc,CAAC;IACvC,CAAC;CACF;AAhDD,wCAgDC"}
@@ -0,0 +1,35 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2020 Google LLC
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ import { DocNode, DocNodeContainer, IDocNodeContainerParameters } from '@microsoft/tsdoc';
18
+ /**
19
+ * Constructor parameters for {@link DocEmphasisSpan}.
20
+ */
21
+ export interface IDocEmphasisSpanParameters extends IDocNodeContainerParameters {
22
+ bold?: boolean;
23
+ italic?: boolean;
24
+ }
25
+ /**
26
+ * Represents a span of text that is styled with CommonMark emphasis (italics), strong emphasis (boldface),
27
+ * or both.
28
+ */
29
+ export declare class DocEmphasisSpan extends DocNodeContainer {
30
+ readonly bold: boolean;
31
+ readonly italic: boolean;
32
+ constructor(parameters: IDocEmphasisSpanParameters, children?: DocNode[]);
33
+ /** @override */
34
+ get kind(): string;
35
+ }
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+ /**
3
+ * @license
4
+ * Copyright 2020 Google LLC
5
+ *
6
+ * Licensed under the Apache License, Version 2.0 (the "License");
7
+ * you may not use this file except in compliance with the License.
8
+ * You may obtain a copy of the License at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing, software
13
+ * distributed under the License is distributed on an "AS IS" BASIS,
14
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ * See the License for the specific language governing permissions and
16
+ * limitations under the License.
17
+ */
18
+ Object.defineProperty(exports, "__esModule", { value: true });
19
+ exports.DocEmphasisSpan = void 0;
20
+ // Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
21
+ // See LICENSE in the project root for license information.
22
+ const tsdoc_1 = require("@microsoft/tsdoc");
23
+ /**
24
+ * Represents a span of text that is styled with CommonMark emphasis (italics), strong emphasis (boldface),
25
+ * or both.
26
+ */
27
+ class DocEmphasisSpan extends tsdoc_1.DocNodeContainer {
28
+ constructor(parameters, children) {
29
+ super(parameters, children);
30
+ this.bold = !!parameters.bold;
31
+ this.italic = !!parameters.italic;
32
+ }
33
+ /** @override */
34
+ get kind() {
35
+ return "EmphasisSpan" /* EmphasisSpan */;
36
+ }
37
+ }
38
+ exports.DocEmphasisSpan = DocEmphasisSpan;
39
+ //# sourceMappingURL=DocEmphasisSpan.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DocEmphasisSpan.js","sourceRoot":"","sources":["../../src/nodes/DocEmphasisSpan.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAEH,4FAA4F;AAC5F,2DAA2D;AAE3D,4CAI0B;AAY1B;;;GAGG;AACH,MAAa,eAAgB,SAAQ,wBAAgB;IAInD,YACE,UAAsC,EACtC,QAAoB;QAEpB,KAAK,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;QAC5B,IAAI,CAAC,IAAI,GAAG,CAAC,CAAC,UAAU,CAAC,IAAI,CAAC;QAC9B,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC,UAAU,CAAC,MAAM,CAAC;IACpC,CAAC;IAED,gBAAgB;IAChB,IAAW,IAAI;QACb,yCAAsC;IACxC,CAAC;CACF;AAjBD,0CAiBC"}
@@ -0,0 +1,38 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2020 Google LLC
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ import { IDocNodeParameters, DocNode } from '@microsoft/tsdoc';
18
+ /**
19
+ * Constructor parameters for {@link DocHeading}.
20
+ */
21
+ export interface IDocHeadingParameters extends IDocNodeParameters {
22
+ title: string;
23
+ level?: number;
24
+ }
25
+ /**
26
+ * Represents a section header similar to an HTML `<h1>` or `<h2>` element.
27
+ */
28
+ export declare class DocHeading extends DocNode {
29
+ readonly title: string;
30
+ readonly level: number;
31
+ /**
32
+ * Don't call this directly. Instead use {@link TSDocParser}
33
+ * @internal
34
+ */
35
+ constructor(parameters: IDocHeadingParameters);
36
+ /** @override */
37
+ get kind(): string;
38
+ }
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ /**
3
+ * @license
4
+ * Copyright 2020 Google LLC
5
+ *
6
+ * Licensed under the Apache License, Version 2.0 (the "License");
7
+ * you may not use this file except in compliance with the License.
8
+ * You may obtain a copy of the License at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing, software
13
+ * distributed under the License is distributed on an "AS IS" BASIS,
14
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ * See the License for the specific language governing permissions and
16
+ * limitations under the License.
17
+ */
18
+ Object.defineProperty(exports, "__esModule", { value: true });
19
+ exports.DocHeading = void 0;
20
+ // Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
21
+ // See LICENSE in the project root for license information.
22
+ const tsdoc_1 = require("@microsoft/tsdoc");
23
+ /**
24
+ * Represents a section header similar to an HTML `<h1>` or `<h2>` element.
25
+ */
26
+ class DocHeading extends tsdoc_1.DocNode {
27
+ /**
28
+ * Don't call this directly. Instead use {@link TSDocParser}
29
+ * @internal
30
+ */
31
+ constructor(parameters) {
32
+ super(parameters);
33
+ this.title = parameters.title;
34
+ this.level = parameters.level !== undefined ? parameters.level : 1;
35
+ if (this.level < 1 || this.level > 5) {
36
+ throw new Error('IDocHeadingParameters.level must be a number between 1 and 5');
37
+ }
38
+ }
39
+ /** @override */
40
+ get kind() {
41
+ return "Heading" /* Heading */;
42
+ }
43
+ }
44
+ exports.DocHeading = DocHeading;
45
+ //# sourceMappingURL=DocHeading.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DocHeading.js","sourceRoot":"","sources":["../../src/nodes/DocHeading.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAEH,4FAA4F;AAC5F,2DAA2D;AAE3D,4CAA+D;AAW/D;;GAEG;AACH,MAAa,UAAW,SAAQ,eAAO;IAIrC;;;OAGG;IACH,YAAmB,UAAiC;QAClD,KAAK,CAAC,UAAU,CAAC,CAAC;QAClB,IAAI,CAAC,KAAK,GAAG,UAAU,CAAC,KAAK,CAAC;QAC9B,IAAI,CAAC,KAAK,GAAG,UAAU,CAAC,KAAK,KAAK,SAAS,CAAC,CAAC,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;QAEnE,IAAI,IAAI,CAAC,KAAK,GAAG,CAAC,IAAI,IAAI,CAAC,KAAK,GAAG,CAAC,EAAE;YACpC,MAAM,IAAI,KAAK,CACb,8DAA8D,CAC/D,CAAC;SACH;IACH,CAAC;IAED,gBAAgB;IAChB,IAAW,IAAI;QACb,+BAAiC;IACnC,CAAC;CACF;AAxBD,gCAwBC"}
@@ -0,0 +1,33 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2020 Google LLC
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ import { IDocNodeParameters, DocNode, DocSection } from '@microsoft/tsdoc';
18
+ /**
19
+ * Constructor parameters for {@link DocNoteBox}.
20
+ */
21
+ export interface IDocNoteBoxParameters extends IDocNodeParameters {
22
+ }
23
+ /**
24
+ * Represents a note box, which is typically displayed as a bordered box containing informational text.
25
+ */
26
+ export declare class DocNoteBox extends DocNode {
27
+ readonly content: DocSection;
28
+ constructor(parameters: IDocNoteBoxParameters, sectionChildNodes?: ReadonlyArray<DocNode>);
29
+ /** @override */
30
+ get kind(): string;
31
+ /** @override */
32
+ protected onGetChildNodes(): ReadonlyArray<DocNode | undefined>;
33
+ }
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ /**
3
+ * @license
4
+ * Copyright 2020 Google LLC
5
+ *
6
+ * Licensed under the Apache License, Version 2.0 (the "License");
7
+ * you may not use this file except in compliance with the License.
8
+ * You may obtain a copy of the License at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing, software
13
+ * distributed under the License is distributed on an "AS IS" BASIS,
14
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ * See the License for the specific language governing permissions and
16
+ * limitations under the License.
17
+ */
18
+ Object.defineProperty(exports, "__esModule", { value: true });
19
+ exports.DocNoteBox = void 0;
20
+ // Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
21
+ // See LICENSE in the project root for license information.
22
+ const tsdoc_1 = require("@microsoft/tsdoc");
23
+ /**
24
+ * Represents a note box, which is typically displayed as a bordered box containing informational text.
25
+ */
26
+ class DocNoteBox extends tsdoc_1.DocNode {
27
+ constructor(parameters, sectionChildNodes) {
28
+ super(parameters);
29
+ this.content = new tsdoc_1.DocSection({ configuration: this.configuration }, sectionChildNodes);
30
+ }
31
+ /** @override */
32
+ get kind() {
33
+ return "NoteBox" /* NoteBox */;
34
+ }
35
+ /** @override */
36
+ onGetChildNodes() {
37
+ return [this.content];
38
+ }
39
+ }
40
+ exports.DocNoteBox = DocNoteBox;
41
+ //# sourceMappingURL=DocNoteBox.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DocNoteBox.js","sourceRoot":"","sources":["../../src/nodes/DocNoteBox.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAEH,4FAA4F;AAC5F,2DAA2D;AAE3D,4CAA2E;AAQ3E;;GAEG;AACH,MAAa,UAAW,SAAQ,eAAO;IAGrC,YACE,UAAiC,EACjC,iBAA0C;QAE1C,KAAK,CAAC,UAAU,CAAC,CAAC;QAClB,IAAI,CAAC,OAAO,GAAG,IAAI,kBAAU,CAC3B,EAAE,aAAa,EAAE,IAAI,CAAC,aAAa,EAAE,EACrC,iBAAiB,CAClB,CAAC;IACJ,CAAC;IAED,gBAAgB;IAChB,IAAW,IAAI;QACb,+BAAiC;IACnC,CAAC;IAED,gBAAgB;IACN,eAAe;QACvB,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACxB,CAAC;CACF;AAvBD,gCAuBC"}
@@ -0,0 +1,41 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2020 Google LLC
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ import { IDocNodeParameters, DocNode } from '@microsoft/tsdoc';
18
+ import { DocTableRow } from './DocTableRow';
19
+ import { DocTableCell } from './DocTableCell';
20
+ /**
21
+ * Constructor parameters for {@link DocTable}.
22
+ */
23
+ export interface IDocTableParameters extends IDocNodeParameters {
24
+ headerCells?: ReadonlyArray<DocTableCell>;
25
+ headerTitles?: string[];
26
+ }
27
+ /**
28
+ * Represents table, similar to an HTML `<table>` element.
29
+ */
30
+ export declare class DocTable extends DocNode {
31
+ readonly header: DocTableRow;
32
+ private _rows;
33
+ constructor(parameters: IDocTableParameters, rows?: ReadonlyArray<DocTableRow>);
34
+ /** @override */
35
+ get kind(): string;
36
+ get rows(): ReadonlyArray<DocTableRow>;
37
+ addRow(row: DocTableRow): void;
38
+ createAndAddRow(): DocTableRow;
39
+ /** @override */
40
+ protected onGetChildNodes(): ReadonlyArray<DocNode | undefined>;
41
+ }