Skip to content

Commit 28c2179

Browse files
committed
Merge remote-tracking branch 'remotes/origin/master' into octogonz/ae-bundledPackages
2 parents 6548b42 + c998284 commit 28c2179

248 files changed

Lines changed: 7289 additions & 1491 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎README.md‎

Lines changed: 98 additions & 198 deletions
Large diffs are not rendered by default.

‎apps/api-documenter/CHANGELOG.json‎

Lines changed: 124 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,130 @@
11
{
22
"name": "@microsoft/api-documenter",
33
"entries": [
4+
{
5+
"version": "7.4.9",
6+
"tag": "@microsoft/api-documenter_v7.4.9",
7+
"date": "Fri, 04 Oct 2019 00:15:22 GMT",
8+
"comments": {
9+
"dependency": [
10+
{
11+
"comment": "Updating dependency \"@microsoft/rush-stack-compiler-3.4\" from `0.2.3` to `0.2.4`"
12+
},
13+
{
14+
"comment": "Updating dependency \"@microsoft/node-library-build\" from `6.2.3` to `6.2.4`"
15+
}
16+
]
17+
}
18+
},
19+
{
20+
"version": "7.4.8",
21+
"tag": "@microsoft/api-documenter_v7.4.8",
22+
"date": "Sun, 29 Sep 2019 23:56:29 GMT",
23+
"comments": {
24+
"patch": [
25+
{
26+
"comment": "Update repository URL"
27+
}
28+
],
29+
"dependency": [
30+
{
31+
"comment": "Updating dependency \"@microsoft/api-extractor-model\" from `7.5.0` to `7.5.1`"
32+
},
33+
{
34+
"comment": "Updating dependency \"@microsoft/node-core-library\" from `3.15.0` to `3.15.1`"
35+
},
36+
{
37+
"comment": "Updating dependency \"@microsoft/ts-command-line\" from `4.3.1` to `4.3.2`"
38+
},
39+
{
40+
"comment": "Updating dependency \"@microsoft/rush-stack-compiler-3.4\" from `0.2.2` to `0.2.3`"
41+
},
42+
{
43+
"comment": "Updating dependency \"@microsoft/node-library-build\" from `6.2.2` to `6.2.3`"
44+
}
45+
]
46+
}
47+
},
48+
{
49+
"version": "7.4.7",
50+
"tag": "@microsoft/api-documenter_v7.4.7",
51+
"date": "Wed, 25 Sep 2019 15:15:31 GMT",
52+
"comments": {
53+
"patch": [
54+
{
55+
"comment": "Disambiguate output files for items with colliding names"
56+
}
57+
],
58+
"dependency": [
59+
{
60+
"comment": "Updating dependency \"@microsoft/api-extractor-model\" from `7.4.2` to `7.5.0`"
61+
},
62+
{
63+
"comment": "Updating dependency \"@microsoft/rush-stack-compiler-3.4\" from `0.2.1` to `0.2.2`"
64+
},
65+
{
66+
"comment": "Updating dependency \"@microsoft/node-library-build\" from `6.2.1` to `6.2.2`"
67+
}
68+
]
69+
}
70+
},
71+
{
72+
"version": "7.4.6",
73+
"tag": "@microsoft/api-documenter_v7.4.6",
74+
"date": "Tue, 24 Sep 2019 02:58:49 GMT",
75+
"comments": {
76+
"dependency": [
77+
{
78+
"comment": "Updating dependency \"@microsoft/ts-command-line\" from `4.3.0` to `4.3.1`"
79+
},
80+
{
81+
"comment": "Updating dependency \"@microsoft/rush-stack-compiler-3.4\" from `0.2.0` to `0.2.1`"
82+
},
83+
{
84+
"comment": "Updating dependency \"@microsoft/node-library-build\" from `6.2.0` to `6.2.1`"
85+
}
86+
]
87+
}
88+
},
89+
{
90+
"version": "7.4.5",
91+
"tag": "@microsoft/api-documenter_v7.4.5",
92+
"date": "Mon, 23 Sep 2019 15:14:55 GMT",
93+
"comments": {
94+
"dependency": [
95+
{
96+
"comment": "Updating dependency \"@microsoft/api-extractor-model\" from `7.4.1` to `7.4.2`"
97+
},
98+
{
99+
"comment": "Updating dependency \"@microsoft/node-core-library\" from `3.14.2` to `3.15.0`"
100+
},
101+
{
102+
"comment": "Updating dependency \"@microsoft/ts-command-line\" from `4.2.8` to `4.3.0`"
103+
},
104+
{
105+
"comment": "Updating dependency \"@microsoft/rush-stack-compiler-3.4\" from `0.1.24` to `0.2.0`"
106+
},
107+
{
108+
"comment": "Updating dependency \"@microsoft/node-library-build\" from `6.1.11` to `6.2.0`"
109+
}
110+
]
111+
}
112+
},
113+
{
114+
"version": "7.4.4",
115+
"tag": "@microsoft/api-documenter_v7.4.4",
116+
"date": "Fri, 20 Sep 2019 21:27:22 GMT",
117+
"comments": {
118+
"dependency": [
119+
{
120+
"comment": "Updating dependency \"@microsoft/rush-stack-compiler-3.4\" from `0.1.23` to `0.1.24`"
121+
},
122+
{
123+
"comment": "Updating dependency \"@microsoft/node-library-build\" from `6.1.10` to `6.1.11`"
124+
}
125+
]
126+
}
127+
},
4128
{
5129
"version": "7.4.3",
6130
"tag": "@microsoft/api-documenter_v7.4.3",

‎apps/api-documenter/CHANGELOG.md‎

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,40 @@
11
# Change Log - @microsoft/api-documenter
22

3-
This log was last generated on Wed, 11 Sep 2019 19:56:23 GMT and should not be manually modified.
3+
This log was last generated on Fri, 04 Oct 2019 00:15:22 GMT and should not be manually modified.
4+
5+
## 7.4.9
6+
Fri, 04 Oct 2019 00:15:22 GMT
7+
8+
*Version update only*
9+
10+
## 7.4.8
11+
Sun, 29 Sep 2019 23:56:29 GMT
12+
13+
### Patches
14+
15+
- Update repository URL
16+
17+
## 7.4.7
18+
Wed, 25 Sep 2019 15:15:31 GMT
19+
20+
### Patches
21+
22+
- Disambiguate output files for items with colliding names
23+
24+
## 7.4.6
25+
Tue, 24 Sep 2019 02:58:49 GMT
26+
27+
*Version update only*
28+
29+
## 7.4.5
30+
Mon, 23 Sep 2019 15:14:55 GMT
31+
32+
*Version update only*
33+
34+
## 7.4.4
35+
Fri, 20 Sep 2019 21:27:22 GMT
36+
37+
*Version update only*
438

539
## 7.4.3
640
Wed, 11 Sep 2019 19:56:23 GMT

‎apps/api-documenter/package.json‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
22
"name": "@microsoft/api-documenter",
3-
"version": "7.4.3",
3+
"version": "7.4.9",
44
"description": "Read JSON files from api-extractor, generate documentation pages",
55
"repository": {
66
"type": "git",
7-
"url": "https://github.com/Microsoft/web-build-tools/tree/master/apps/api-documenter"
7+
"url": "https://github.com/microsoft/rushstack/tree/master/apps/api-documenter"
88
},
99
"homepage": "https://api-extractor.com/",
1010
"license": "MIT",
@@ -17,20 +17,20 @@
1717
"main": "lib/index.js",
1818
"typings": "dist/rollup.d.ts",
1919
"dependencies": {
20-
"@microsoft/api-extractor-model": "7.4.1",
21-
"@microsoft/node-core-library": "3.14.2",
22-
"@microsoft/ts-command-line": "4.2.8",
20+
"@microsoft/api-extractor-model": "7.5.1",
21+
"@microsoft/node-core-library": "3.15.1",
22+
"@microsoft/ts-command-line": "4.3.2",
2323
"@microsoft/tsdoc": "0.12.14",
2424
"colors": "~1.2.1",
2525
"js-yaml": "~3.13.1",
2626
"resolve": "1.8.1"
2727
},
2828
"devDependencies": {
29-
"@microsoft/rush-stack-compiler-3.4": "0.1.23",
30-
"@microsoft/node-library-build": "6.1.10",
29+
"@microsoft/rush-stack-compiler-3.4": "0.2.4",
30+
"@microsoft/node-library-build": "6.2.4",
3131
"@types/jest": "23.3.11",
3232
"@types/js-yaml": "3.12.1",
33-
"@types/node": "8.5.8",
33+
"@types/node": "8.10.54",
3434
"@types/resolve": "0.0.8",
3535
"gulp": "~4.0.2",
3636
"jest": "~23.6.0"

‎apps/api-documenter/src/documenters/ExperimentalYamlDocumenter.ts‎

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
22
// See LICENSE in the project root for license information.
33

4-
import { PackageName } from '@microsoft/node-core-library';
54
import { DocComment, DocInlineTag } from '@microsoft/tsdoc';
65
import { ApiModel, ApiItem, ApiItemKind, ApiDocumentedItem } from '@microsoft/api-extractor-model';
76

@@ -42,24 +41,20 @@ export class ExperimentalYamlDocumenter extends YamlDocumenter {
4241
if (apiItem.kind === ApiItemKind.Namespace) {
4342
// Namespaces don't have nodes yet
4443
tocItem = {
45-
name: apiItem.displayName
44+
name: this._getTocItemName(apiItem)
4645
};
4746
} else {
4847
if (this._shouldEmbed(apiItem.kind)) {
4948
// Don't generate table of contents items for embedded definitions
5049
continue;
5150
}
5251

53-
if (apiItem.kind === ApiItemKind.Package) {
54-
tocItem = {
55-
name: PackageName.getUnscopedName(apiItem.displayName),
56-
uid: this._getUid(apiItem)
57-
};
58-
} else {
59-
tocItem = {
60-
name: apiItem.displayName,
61-
uid: this._getUid(apiItem)
62-
};
52+
tocItem = {
53+
name: this._getTocItemName(apiItem),
54+
uid: this._getUid(apiItem)
55+
};
56+
57+
if (apiItem.kind !== ApiItemKind.Package) {
6358
this._filterItem(apiItem, tocItem);
6459
}
6560
}

‎apps/api-documenter/src/documenters/YamlDocumenter.ts‎

Lines changed: 27 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ export class YamlDocumenter {
7575

7676
private _apiItemsByCanonicalReference: Map<string, ApiItem>;
7777
private _yamlReferences: IYamlReferences | undefined;
78-
7978
private _outputFolder: string;
8079

8180
public constructor(apiModel: ApiModel) {
@@ -232,25 +231,18 @@ export class YamlDocumenter {
232231
if (apiItem.kind === ApiItemKind.Namespace) {
233232
// Namespaces don't have nodes yet
234233
tocItem = {
235-
name: apiItem.displayName
234+
name: this._getTocItemName(apiItem)
236235
};
237236
} else {
238237
if (this._shouldEmbed(apiItem.kind)) {
239238
// Don't generate table of contents items for embedded definitions
240239
continue;
241240
}
242241

243-
if (apiItem.kind === ApiItemKind.Package) {
244-
tocItem = {
245-
name: PackageName.getUnscopedName(apiItem.displayName),
246-
uid: this._getUid(apiItem)
247-
};
248-
} else {
249-
tocItem = {
250-
name: apiItem.displayName,
251-
uid: this._getUid(apiItem)
252-
};
253-
}
242+
tocItem = {
243+
name: this._getTocItemName(apiItem),
244+
uid: this._getUid(apiItem)
245+
};
254246
}
255247

256248
tocItems.push(tocItem);
@@ -271,6 +263,20 @@ export class YamlDocumenter {
271263
return tocItems;
272264
}
273265

266+
/** @virtual */
267+
protected _getTocItemName(apiItem: ApiItem): string {
268+
let name: string = apiItem.displayName;
269+
if (apiItem.kind === ApiItemKind.Package) {
270+
name = PackageName.getUnscopedName(name);
271+
}
272+
273+
if (apiItem.getMergedSiblings().length > 1) {
274+
name += ` (${apiItem.kind})`;
275+
}
276+
277+
return name;
278+
}
279+
274280
protected _shouldEmbed(apiItemKind: ApiItemKind): boolean {
275281
switch (apiItemKind) {
276282
case ApiItemKind.Class:
@@ -591,7 +597,6 @@ export class YamlDocumenter {
591597
*/
592598
private _initApiItems(): void {
593599
this._initApiItemsRecursive(this._apiModel);
594-
595600
}
596601

597602
/**
@@ -803,11 +808,17 @@ export class YamlDocumenter {
803808
break;
804809
}
805810
}
806-
return path.join(this._outputFolder, result + '.yml');
811+
812+
let disambiguator: string = '';
813+
if (apiItem.getMergedSiblings().length > 1) {
814+
disambiguator = `-${apiItem.kind.toLowerCase()}`;
815+
}
816+
817+
return path.join(this._outputFolder, result + disambiguator + '.yml');
807818
}
808819

809820
private _deleteOldOutputFiles(): void {
810821
console.log('Deleting old output from ' + this._outputFolder);
811822
FileSystem.ensureEmptyFolder(this._outputFolder);
812823
}
813-
}
824+
}

‎apps/api-documenter/src/plugin/IApiDocumenterPluginManifest.ts‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ import { PluginFeatureInitialization } from './PluginFeature';
77
/**
88
* Defines a "feature" that is provided by an API Documenter plugin. A feature is a user-defined module
99
* that customizes the behavior of API Documenter.
10+
*
11+
* @public
1012
*/
1113
export interface IFeatureDefinition {
1214
/**
@@ -58,6 +60,7 @@ export interface IFeatureDefinition {
5860
* ]
5961
* };
6062
* ```
63+
* @public
6164
*/
6265
export interface IApiDocumenterPluginManifest {
6366
/**

‎apps/api-documenter/src/utils/Utilities.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export class Utilities {
2323
*/
2424
public static getSafeFilenameForName(name: string): string {
2525
// TODO: This can introduce naming collisions.
26-
// We will fix that as part of https://github.com/microsoft/web-build-tools/issues/1308
26+
// We will fix that as part of https://github.com/microsoft/rushstack/issues/1308
2727
return name.replace(Utilities._badFilenameCharsRegExp, '_').toLowerCase();
2828
}
2929
}

0 commit comments

Comments
 (0)