@ng-doc/builder 18.0.2 → 18.0.3
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/engine/builders/helpers/get-entry-route.js +3 -0
- package/engine/builders/helpers/get-entry-route.js.map +1 -1
- package/engine/builders/interfaces/entry.d.ts +6 -0
- package/engine/builders/interfaces/entry.js +9 -0
- package/engine/builders/interfaces/entry.js.map +1 -1
- package/package.json +3 -3
|
@@ -18,6 +18,9 @@ function getEntryRoute(entry, filePath) {
|
|
|
18
18
|
if ((0, interfaces_1.isApiEntry)(entry, filePath)) {
|
|
19
19
|
return entry.route ?? 'api';
|
|
20
20
|
}
|
|
21
|
+
if ((0, interfaces_1.isCategoryEntry)(entry, filePath)) {
|
|
22
|
+
return entry.route ?? dirName;
|
|
23
|
+
}
|
|
21
24
|
return dirName;
|
|
22
25
|
}
|
|
23
26
|
//# sourceMappingURL=get-entry-route.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-entry-route.js","sourceRoot":"","sources":["../../../../../../libs/builder/engine/builders/helpers/get-entry-route.ts"],"names":[],"mappings":";;AAUA,
|
|
1
|
+
{"version":3,"file":"get-entry-route.js","sourceRoot":"","sources":["../../../../../../libs/builder/engine/builders/helpers/get-entry-route.ts"],"names":[],"mappings":";;AAUA,sCAgBC;;AA1BD,uCAAuC;AACvC,wDAAwB;AAExB,8CAAgF;AAEhF;;;;GAIG;AACH,SAAgB,aAAa,CAAC,KAAY,EAAE,QAAgB;IAC1D,MAAM,OAAO,GAAG,cAAI,CAAC,QAAQ,CAAC,cAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC;IAEtD,IAAI,IAAA,wBAAW,EAAC,KAAK,EAAE,QAAQ,CAAC,EAAE,CAAC;QACjC,OAAO,CAAC,IAAA,cAAO,EAAC,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,EAAE,KAAK,CAAC,IAAI,OAAO,CAAC;IAC/E,CAAC;IAED,IAAI,IAAA,uBAAU,EAAC,KAAK,EAAE,QAAQ,CAAC,EAAE,CAAC;QAChC,OAAO,KAAK,CAAC,KAAK,IAAI,KAAK,CAAC;IAC9B,CAAC;IAED,IAAI,IAAA,4BAAe,EAAC,KAAK,EAAE,QAAQ,CAAC,EAAE,CAAC;QACrC,OAAO,KAAK,CAAC,KAAK,IAAI,OAAO,CAAC;IAChC,CAAC;IAED,OAAO,OAAO,CAAC;AACjB,CAAC"}
|
|
@@ -15,6 +15,12 @@ export type Entry = ContentEntry | NgDocCategory;
|
|
|
15
15
|
* @param filePath
|
|
16
16
|
*/
|
|
17
17
|
export declare function isPageEntry(entry: Entry, filePath: string): entry is NgDocPage;
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @param entry
|
|
21
|
+
* @param filePath
|
|
22
|
+
*/
|
|
23
|
+
export declare function isCategoryEntry(entry: Entry, filePath: string): entry is NgDocCategory;
|
|
18
24
|
/**
|
|
19
25
|
*
|
|
20
26
|
* @param entry
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.isPageEntry = isPageEntry;
|
|
4
|
+
exports.isCategoryEntry = isCategoryEntry;
|
|
4
5
|
exports.isApiEntry = isApiEntry;
|
|
5
6
|
const minimatch_1 = require("minimatch");
|
|
6
7
|
const variables_1 = require("../../variables");
|
|
@@ -12,6 +13,14 @@ const variables_1 = require("../../variables");
|
|
|
12
13
|
function isPageEntry(entry, filePath) {
|
|
13
14
|
return (0, minimatch_1.minimatch)(filePath, variables_1.PAGE_PATTERN);
|
|
14
15
|
}
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @param entry
|
|
19
|
+
* @param filePath
|
|
20
|
+
*/
|
|
21
|
+
function isCategoryEntry(entry, filePath) {
|
|
22
|
+
return (0, minimatch_1.minimatch)(filePath, variables_1.CATEGORY_PATTERN);
|
|
23
|
+
}
|
|
15
24
|
/**
|
|
16
25
|
*
|
|
17
26
|
* @param entry
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entry.js","sourceRoot":"","sources":["../../../../../../libs/builder/engine/builders/interfaces/entry.ts"],"names":[],"mappings":";;AA4BA,kCAEC;AAOD,gCAEC;
|
|
1
|
+
{"version":3,"file":"entry.js","sourceRoot":"","sources":["../../../../../../libs/builder/engine/builders/interfaces/entry.ts"],"names":[],"mappings":";;AA4BA,kCAEC;AAOD,0CAEC;AAOD,gCAEC;AA/CD,yCAAsC;AAGtC,+CAA8E;AAmB9E;;;;GAIG;AACH,SAAgB,WAAW,CAAC,KAAY,EAAE,QAAgB;IACxD,OAAO,IAAA,qBAAS,EAAC,QAAQ,EAAE,wBAAY,CAAC,CAAC;AAC3C,CAAC;AAED;;;;GAIG;AACH,SAAgB,eAAe,CAAC,KAAY,EAAE,QAAgB;IAC5D,OAAO,IAAA,qBAAS,EAAC,QAAQ,EAAE,4BAAgB,CAAC,CAAC;AAC/C,CAAC;AAED;;;;GAIG;AACH,SAAgB,UAAU,CAAC,KAAY,EAAE,QAAgB;IACvD,OAAO,IAAA,qBAAS,EAAC,QAAQ,EAAE,uBAAW,CAAC,CAAC;AAC1C,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ng-doc/builder",
|
|
3
|
-
"version": "18.0.
|
|
3
|
+
"version": "18.0.3",
|
|
4
4
|
"type": "commonjs",
|
|
5
5
|
"builders": "./builders.json",
|
|
6
6
|
"schematics": "./schematics/collection.json",
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
]
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@ng-doc/core": "18.0.
|
|
15
|
-
"@ng-doc/utils": "18.0.
|
|
14
|
+
"@ng-doc/core": "18.0.3",
|
|
15
|
+
"@ng-doc/utils": "18.0.3",
|
|
16
16
|
"@angular-devkit/architect": ">=0.1801.0",
|
|
17
17
|
"@angular-devkit/build-angular": ">=18.1.0",
|
|
18
18
|
"chokidar": "3.5.3",
|