@ng-doc/builder 15.8.0 → 15.10.0-beta.1

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 (148) hide show
  1. package/README.md +0 -2
  2. package/engine/.cache/apps/ng-doc/src/app/docs/content/api/ng-doc.category.js +42 -0
  3. package/engine/.cache/apps/ng-doc/src/app/docs/content/{api-templating → api/templating}/ng-doc.page.js +14 -5
  4. package/engine/.cache/apps/ng-doc/src/app/docs/content/guides/demo-pane/ng-doc.page.js +51 -0
  5. package/engine/.cache/apps/ng-doc/src/app/docs/content/guides/snippets/ng-doc.page.js +51 -0
  6. package/engine/.cache/apps/ng-doc/src/app/docs/{getting-started/roadmap → customization/search}/ng-doc.page.js +13 -13
  7. package/engine/.cache/apps/ng-doc/src/app/docs/customization/themes/ng-doc.page.js +1 -1
  8. package/engine/.cache/apps/ng-doc/src/app/docs/customization/type-controls/ng-doc.page.js +1 -1
  9. package/engine/.cache/apps/ng-doc/src/app/docs/develop/ng-doc.page.js +0 -4247
  10. package/engine/.cache/apps/ng-doc/src/app/docs/{entities → file-entities}/api/ng-doc.page.js +4 -4
  11. package/engine/.cache/apps/ng-doc/src/app/docs/{entities → file-entities}/category/ng-doc.page.js +4 -4
  12. package/engine/.cache/apps/ng-doc/src/app/docs/{entities → file-entities}/dependencies/ng-doc.page.js +4 -4
  13. package/engine/.cache/apps/ng-doc/src/app/docs/{entities → file-entities}/ng-doc.category.js +2 -2
  14. package/engine/.cache/apps/ng-doc/src/app/docs/{entities → file-entities}/page/ng-doc.page.js +4 -4
  15. package/engine/.cache/apps/ng-doc/src/app/docs/ng-doc.api.js +1 -1
  16. package/engine/actions/demo-pane.action.d.ts +10 -0
  17. package/engine/actions/demo-pane.action.js +22 -0
  18. package/engine/actions/demo-pane.action.js.map +1 -0
  19. package/engine/actions/demo.action.d.ts +3 -3
  20. package/engine/actions/demo.action.js +4 -4
  21. package/engine/actions/playground.action.js +1 -1
  22. package/engine/actions/playground.action.js.map +1 -1
  23. package/engine/actions.d.ts +2 -1
  24. package/engine/actions.js +4 -0
  25. package/engine/actions.js.map +1 -1
  26. package/engine/entities/abstractions/entity.d.ts +3 -0
  27. package/engine/entities/abstractions/entity.js +30 -8
  28. package/engine/entities/abstractions/entity.js.map +1 -1
  29. package/engine/entities/abstractions/route.entity.js +0 -5
  30. package/engine/entities/abstractions/route.entity.js.map +1 -1
  31. package/engine/entities/page.entity.d.ts +1 -0
  32. package/engine/entities/page.entity.js +4 -1
  33. package/engine/entities/page.entity.js.map +1 -1
  34. package/engine/entities/skeleton.entity.js +7 -9
  35. package/engine/entities/skeleton.entity.js.map +1 -1
  36. package/engine/entity-store.d.ts +1 -1
  37. package/engine/entity-store.js.map +1 -1
  38. package/engine/extentions/index.extension.d.ts +6 -0
  39. package/engine/extentions/index.extension.js +25 -0
  40. package/engine/extentions/index.extension.js.map +1 -0
  41. package/engine/index.d.ts +0 -1
  42. package/engine/index.js +0 -1
  43. package/engine/index.js.map +1 -1
  44. package/engine/renderer.js +2 -0
  45. package/engine/renderer.js.map +1 -1
  46. package/engine/template-filters.d.ts +1 -1
  47. package/engine/template-filters.js +2 -1
  48. package/engine/template-filters.js.map +1 -1
  49. package/helpers/build-indexes.d.ts +9 -0
  50. package/helpers/build-indexes.js +117 -0
  51. package/helpers/build-indexes.js.map +1 -0
  52. package/helpers/extract-docs.js +14 -8
  53. package/helpers/extract-docs.js.map +1 -1
  54. package/helpers/extract-selectors.js.map +1 -1
  55. package/helpers/generate-api-entities.js.map +1 -1
  56. package/helpers/get-demo-class-declarations.js +1 -2
  57. package/helpers/get-demo-class-declarations.js.map +1 -1
  58. package/helpers/get-keyword-type-from-entity.d.ts +1 -1
  59. package/helpers/get-keyword-type-from-entity.js.map +1 -1
  60. package/helpers/get-playground-by-id.js.map +1 -1
  61. package/helpers/get-playground-properties.js +2 -1
  62. package/helpers/get-playground-properties.js.map +1 -1
  63. package/helpers/import-es-module.d.ts +6 -0
  64. package/helpers/import-es-module.js +13 -0
  65. package/helpers/import-es-module.js.map +1 -0
  66. package/helpers/index.d.ts +1 -1
  67. package/helpers/index.js +1 -1
  68. package/helpers/index.js.map +1 -1
  69. package/helpers/marked.d.ts +4 -1
  70. package/helpers/marked.js +45 -3
  71. package/helpers/marked.js.map +1 -1
  72. package/helpers/presentation.js +10 -5
  73. package/helpers/presentation.js.map +1 -1
  74. package/helpers/typescript/display-type.d.ts +6 -1
  75. package/helpers/typescript/display-type.js +10 -2
  76. package/helpers/typescript/display-type.js.map +1 -1
  77. package/helpers/typescript/member/member-type.d.ts +3 -3
  78. package/interfaces/configuration.d.ts +1 -1
  79. package/interfaces/index.d.ts +0 -1
  80. package/interfaces/index.js +0 -1
  81. package/interfaces/index.js.map +1 -1
  82. package/package.json +6 -13
  83. package/schematics/api/schema.d.ts +1 -1
  84. package/templates/api/base.html.nunj +8 -2
  85. package/templates/api/class.html.nunj +1 -1
  86. package/templates/api/interface.html.nunj +1 -1
  87. package/templates/api-page.module.ts.nunj +1 -0
  88. package/templates/api-scope.module.ts.nunj +1 -0
  89. package/templates/category.module.ts.nunj +1 -0
  90. package/templates/context.ts.nunj +1 -0
  91. package/templates/helpers/accessor.html.nunj +3 -3
  92. package/templates/helpers/badge.html.nunj +1 -1
  93. package/templates/helpers/constructor.html.nunj +2 -2
  94. package/templates/helpers/declaration-modifiers.html.nunj +3 -3
  95. package/templates/helpers/decorators.html.nunj +1 -1
  96. package/templates/helpers/members.html.nunj +3 -3
  97. package/templates/helpers/method.html.nunj +4 -4
  98. package/templates/helpers/modifier.html.nunj +1 -1
  99. package/templates/helpers/no-content.html.nunj +1 -1
  100. package/templates/helpers/parameters.html.nunj +3 -3
  101. package/templates/helpers/properties.html.nunj +3 -3
  102. package/templates/helpers/tag.html.nunj +1 -1
  103. package/templates/helpers/type.html.nunj +5 -1
  104. package/templates/page.module.ts.nunj +1 -0
  105. package/templates/parts/page-tags.html.nunj +3 -3
  106. package/templates/parts/see-also.html.nunj +1 -1
  107. package/types/action.d.ts +1 -1
  108. package/types/artifact-processor.d.ts +1 -1
  109. package/types/component-asset.d.ts +1 -1
  110. package/types/index.d.ts +0 -1
  111. package/types/index.js +0 -1
  112. package/types/index.js.map +1 -1
  113. package/types/snippet-type.d.ts +1 -1
  114. package/types/supported-declarations.d.ts +1 -1
  115. package/engine/post-processors/html-plugins/autolink-headings.d.ts +0 -6
  116. package/engine/post-processors/html-plugins/autolink-headings.js +0 -40
  117. package/engine/post-processors/html-plugins/autolink-headings.js.map +0 -1
  118. package/engine/post-processors/html-plugins/autolink-headings.ts +0 -40
  119. package/engine/post-processors/html-plugins/keywords-processor.d.ts +0 -8
  120. package/engine/post-processors/html-plugins/keywords-processor.js +0 -108
  121. package/engine/post-processors/html-plugins/keywords-processor.js.map +0 -1
  122. package/engine/post-processors/html-plugins/keywords-processor.ts +0 -125
  123. package/engine/post-processors/html-plugins/mark-elements.d.ts +0 -6
  124. package/engine/post-processors/html-plugins/mark-elements.js +0 -19
  125. package/engine/post-processors/html-plugins/mark-elements.js.map +0 -1
  126. package/engine/post-processors/html-plugins/mark-elements.ts +0 -17
  127. package/engine/post-processors/html-plugins/slugger.d.ts +0 -7
  128. package/engine/post-processors/html-plugins/slugger.js +0 -25
  129. package/engine/post-processors/html-plugins/slugger.js.map +0 -1
  130. package/engine/post-processors/html-plugins/slugger.ts +0 -26
  131. package/engine/post-processors/html-post-processor.d.ts +0 -9
  132. package/engine/post-processors/html-post-processor.js +0 -33
  133. package/engine/post-processors/html-post-processor.js.map +0 -1
  134. package/engine/post-processors/index.d.ts +0 -1
  135. package/engine/post-processors/index.js +0 -5
  136. package/engine/post-processors/index.js.map +0 -1
  137. package/helpers/build-global-indexes.d.ts +0 -6
  138. package/helpers/build-global-indexes.js +0 -141
  139. package/helpers/build-global-indexes.js.map +0 -1
  140. package/helpers/print-console.d.ts +0 -5
  141. package/helpers/print-console.js +0 -14
  142. package/helpers/print-console.js.map +0 -1
  143. package/interfaces/keyword-map.d.ts +0 -12
  144. package/interfaces/keyword-map.js +0 -3
  145. package/interfaces/keyword-map.js.map +0 -1
  146. package/types/keyword-type.d.ts +0 -2
  147. package/types/keyword-type.js +0 -3
  148. package/types/keyword-type.js.map +0 -1
@@ -1,108 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const defaults_1 = require("@ng-doc/core/constants/defaults");
4
- const helpers_1 = require("../../../helpers");
5
- const visit = require('unist-util-visit-parents');
6
- const is = require('hast-util-is-element');
7
- const textContent = require('hast-util-to-string');
8
- const languages = ['typescript'];
9
- /**
10
- *
11
- * @param entityStore
12
- * @param entity
13
- */
14
- function keywordsProcessor(entityStore, entity) {
15
- if (entity) {
16
- entity.usedKeywords = new Set();
17
- }
18
- return (tree) => visit(tree, 'element', (node, ancestors) => {
19
- if (!isCodeNode(node)) {
20
- return;
21
- }
22
- const parent = ancestors[ancestors.length - 1];
23
- const isInlineCode = !is(parent, 'pre');
24
- if (isInlineCode || languages.includes(node.properties.lang)) {
25
- visit(node, 'text', (node, ancestors) => {
26
- if (hasLinkAncestor(ancestors)) {
27
- return;
28
- }
29
- const parent = ancestors[ancestors.length - 1];
30
- const index = parent.children.indexOf(node);
31
- // Parse the text for words that we can convert to links
32
- const nodes = getNodes(node, parent, entityStore, isInlineCode, entity);
33
- // Replace the text node with the links and leftover text nodes
34
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
35
- // @ts-ignore
36
- Array.prototype.splice.apply(parent.children, [index, 1].concat(nodes));
37
- // Do not visit this node's children or the newly added nodes
38
- return [visit.SKIP, index + nodes.length];
39
- });
40
- }
41
- });
42
- }
43
- exports.default = keywordsProcessor;
44
- /**
45
- *
46
- * @param ancestors
47
- */
48
- function hasLinkAncestor(ancestors) {
49
- return ancestors.some((ancestor) => is(ancestor, 'a'));
50
- }
51
- /**
52
- *
53
- * @param node
54
- */
55
- function isCodeNode(node) {
56
- return is(node, 'code') || is(node, 'ng-doc-code');
57
- }
58
- /**
59
- *
60
- * @param node
61
- * @param parent
62
- * @param entityStore
63
- * @param inlineLink
64
- * @param e
65
- */
66
- function getNodes(node, parent, entityStore, inlineLink, e) {
67
- const KeywordRegexp = /([A-Za-z0-9_.-/*]+)/;
68
- return textContent(node)
69
- .split(KeywordRegexp)
70
- .filter((word) => word.length)
71
- .map((word) => {
72
- if (e && KeywordRegexp.test(word)) {
73
- e.usedKeywords.add(word);
74
- }
75
- const keyword = entityStore.getByKeyword(word);
76
- if (inlineLink && /^\*\w+/gm.test(word) && !keyword) {
77
- (0, helpers_1.printWarning)(`Keyword "${word}" is missing.`);
78
- }
79
- // Convert code tag to link if it's a link to the page entity
80
- if (inlineLink && (keyword === null || keyword === void 0 ? void 0 : keyword.isCodeLink) === false) {
81
- parent.tagName = 'a';
82
- parent.properties = { href: keyword.path };
83
- return { type: 'text', value: keyword.title };
84
- }
85
- else if (inlineLink && keyword) {
86
- parent.properties.class = [defaults_1.NG_DOC_ELEMENT, 'ng-doc-code-with-link'];
87
- }
88
- // Add link inside the code if it's a link to the API entity
89
- return keyword
90
- ? createLinkNode(inlineLink ? keyword.title : word, keyword.path, keyword.type)
91
- : { type: 'text', value: word };
92
- });
93
- }
94
- /**
95
- *
96
- * @param text
97
- * @param href
98
- * @param type
99
- */
100
- function createLinkNode(text, href, type) {
101
- return {
102
- type: 'element',
103
- tagName: 'a',
104
- properties: { href: href, class: ['ng-doc-code-anchor', defaults_1.NG_DOC_ELEMENT], 'data-link-type': type },
105
- children: [{ type: 'text', value: text }],
106
- };
107
- }
108
- //# sourceMappingURL=keywords-processor.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"keywords-processor.js","sourceRoot":"","sources":["../../../../../../libs/builder/engine/post-processors/html-plugins/keywords-processor.ts"],"names":[],"mappings":";;AACA,8DAA+D;AAE/D,8CAA8C;AAI9C,MAAM,KAAK,GAAQ,OAAO,CAAC,0BAA0B,CAAC,CAAC;AACvD,MAAM,EAAE,GAAQ,OAAO,CAAC,sBAAsB,CAAC,CAAC;A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';
5
- import {NgDocRouteEntity} from '../../entities/abstractions/route.entity';
6
- import {NgDocEntityStore} from '../../entity-store';
7
-
8
- const visit: any = require('unist-util-visit-parents');
9
- const is: any = require('hast-util-is-element');
10
- const textContent: any = require('hast-util-to-string');
11
-
12
- const languages: string[] = ['typescript'];
13
-
14
- /**
15
- *
16
- * @param entityStore
17
- * @param entity
18
- */
19
- export default function keywordsProcessor(entityStore: NgDocEntityStore, entity?: NgDocRouteEntity): any {
20
- if (entity) {
21
- entity.usedKeywords = new Set();
22
- }
23
-
24
- return (tree: any) =>
25
- visit(tree, 'element', (node: any, ancestors: any) => {
26
- if (!isCodeNode(node)) {
27
- return;
28
- }
29
- const parent: any = ancestors[ancestors.length - 1];
30
- const isInlineCode: boolean = !is(parent, 'pre');
31
-
32
- if (isInlineCode || languages.includes(node.properties.lang)) {
33
- visit(node, 'text', (node: any, ancestors: any) => {
34
- if (hasLinkAncestor(ancestors)) {
35
- return;
36
- }
37
-
38
- const parent: any = ancestors[ancestors.length - 1];
39
- const index: number = parent.children.indexOf(node);
40
-
41
- // Parse the text for words that we can convert to links
42
- const nodes: any[] = getNodes(node, parent, entityStore, isInlineCode, entity);
43
- // Replace the text node with the links and leftover text nodes
44
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
45
- // @ts-ignore
46
- Array.prototype.splice.apply(parent.children, [index, 1].concat(nodes));
47
- // Do not visit this node's children or the newly added nodes
48
- return [visit.SKIP, index + nodes.length];
49
- });
50
- }
51
- });
52
- }
53
-
54
- /**
55
- *
56
- * @param ancestors
57
- */
58
- function hasLinkAncestor(ancestors: any[]) {
59
- return ancestors.some((ancestor: any) => is(ancestor, 'a'));
60
- }
61
-
62
- /**
63
- *
64
- * @param node
65
- */
66
- function isCodeNode(node: any): boolean {
67
- return is(node, 'code') || is(node, 'ng-doc-code');
68
- }
69
-
70
- /**
71
- *
72
- * @param node
73
- * @param parent
74
- * @param entityStore
75
- * @param inlineLink
76
- * @param e
77
- */
78
- function getNodes(node: any, parent: any, entityStore: NgDocEntityStore, inlineLink: boolean, e?: NgDocRouteEntity) {
79
- const KeywordRegexp: RegExp = /([A-Za-z0-9_.-/*]+)/;
80
-
81
- return textContent(node)
82
- .split(KeywordRegexp)
83
- .filter((word: string) => word.length)
84
- .map((word: string) => {
85
- if (e && KeywordRegexp.test(word)) {
86
- e.usedKeywords.add(word);
87
- }
88
-
89
- const keyword: NgDocKeyword | undefined = entityStore.getByKeyword(word);
90
-
91
- if (inlineLink && /^\*\w+/gm.test(word) && !keyword) {
92
- printWarning(`Keyword "${word}" is missing.`);
93
- }
94
-
95
- // Convert code tag to link if it's a link to the page entity
96
- if (inlineLink && keyword?.isCodeLink === false) {
97
- parent.tagName = 'a';
98
- parent.properties = {href: keyword.path};
99
-
100
- return {type: 'text', value: keyword.title};
101
- } else if (inlineLink && keyword) {
102
- parent.properties.class = [NG_DOC_ELEMENT, 'ng-doc-code-with-link'];
103
- }
104
-
105
- // Add link inside the code if it's a link to the API entity
106
- return keyword
107
- ? createLinkNode(inlineLink ? keyword.title : word, keyword.path, keyword.type)
108
- : {type: 'text', value: word};
109
- });
110
- }
111
-
112
- /**
113
- *
114
- * @param text
115
- * @param href
116
- * @param type
117
- */
118
- function createLinkNode(text: string, href: string, type?: string) {
119
- return {
120
- type: 'element',
121
- tagName: 'a',
122
- properties: {href: href, class: ['ng-doc-code-anchor', NG_DOC_ELEMENT], 'data-link-type': type},
123
- children: [{type: 'text', value: text}],
124
- };
125
- }
@@ -1,6 +0,0 @@
1
- /**
2
- *
3
- * @param tree
4
- * @param headings
5
- */
6
- export default function markElements(): any;
@@ -1,19 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const defaults_1 = require("@ng-doc/core/constants/defaults");
4
- const as_array_1 = require("@ng-doc/core/helpers/as-array");
5
- const visit = require('unist-util-visit');
6
- /**
7
- *
8
- * @param tree
9
- * @param headings
10
- */
11
- function markElements() {
12
- return (tree) => {
13
- visit(tree, 'element', (node) => {
14
- node.properties.className = [...(0, as_array_1.asArray)(node.properties.className), defaults_1.NG_DOC_ELEMENT];
15
- });
16
- };
17
- }
18
- exports.default = markElements;
19
- //# sourceMappingURL=mark-elements.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"mark-elements.js","sourceRoot":"","sources":["../../../../../../libs/builder/engine/post-processors/html-plugins/mark-elements.ts"],"names":[],"mappings":";;AAAA,8DAA+D;AAC/D,4DAAsD;AAEtD,MAAM,KAAK,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAAC;AAE1C;;;;GAIG;AACH,SAAwB,YAAY;IACnC,OAAO,CAAC,IAAS,EAAE,EAAE;QACpB,KAAK,CAAC,IAAI,EAAE,SAAS,EAAE,CAAC,IAAS,EAAE,EAAE;YACpC,IAAI,CAAC,UAAU,CAAC,SAAS,GAAG,CAAC,GAAG,IAAA,kBAAO,EAAC,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,EAAE,yBAAc,CAAC,CAAC;QACrF,CAAC,CAAC,CAAC;IACJ,CAAC,CAAC;AACH,CAAC;AAND,+BAMC"}
@@ -1,17 +0,0 @@
1
- import {NG_DOC_ELEMENT} from '@ng-doc/core/constants/defaults';
2
- import {asArray} from '@ng-doc/core/helpers/as-array';
3
-
4
- const visit = require('unist-util-visit');
5
-
6
- /**
7
- *
8
- * @param tree
9
- * @param headings
10
- */
11
- export default function markElements(): any {
12
- return (tree: any) => {
13
- visit(tree, 'element', (node: any) => {
14
- node.properties.className = [...asArray(node.properties.className), NG_DOC_ELEMENT];
15
- });
16
- };
17
- }
@@ -1,7 +0,0 @@
1
- import { NgDocHeading } from '@ng-doc/core';
2
- /**
3
- *
4
- * @param tree
5
- * @param headings
6
- */
7
- export default function slugger(headings?: NgDocHeading[]): any;
@@ -1,25 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const slugs = require('github-slugger')();
4
- const has = require('hast-util-has-property');
5
- const rank = require('hast-util-heading-rank');
6
- const toString = require('hast-util-to-string');
7
- const visit = require('unist-util-visit');
8
- /**
9
- *
10
- * @param tree
11
- * @param headings
12
- */
13
- function slugger(headings) {
14
- headings = headings || ['h1', 'h2', 'h3', 'h4'];
15
- return (tree) => {
16
- slugs.reset();
17
- visit(tree, 'element', (node) => {
18
- if (rank(node) && !has(node, 'id') && (headings === null || headings === void 0 ? void 0 : headings.includes(node.tagName.toLowerCase()))) {
19
- node.properties.id = slugs.slug(toString(node));
20
- }
21
- });
22
- };
23
- }
24
- exports.default = slugger;
25
- //# sourceMappingURL=slugger.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"slugger.js","sourceRoot":"","sources":["../../../../../../libs/builder/engine/post-processors/html-plugins/slugger.ts"],"names":[],"mappings":";;AAEA,MAAM,KAAK,GAAG,OAAO,CAAC,gBAAgB,CAAC,EAAE,CAAC;AAC1C,MAAM,GAAG,GAAG,OAAO,CAAC,wBAAwB,CAAC,CAAC;AAC9C,MAAM,IAAI,GAAG,OAAO,CAAC,wBAAwB,CAAC,CAAC;AAC/C,MAAM,QAAQ,GAAG,OAAO,CAAC,qBAAqB,CAAC,CAAC;AAChD,MAAM,KAAK,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAAC;AAE1C;;;;GAIG;AACH,SAAwB,OAAO,CAAC,QAAyB;IACxD,QAAQ,GAAG,QAAQ,IAAI,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;IAEhD,OAAO,CAAC,IAAS,EAAE,EAAE;QACpB,KAAK,CAAC,KAAK,EAAE,CAAC;QAEd,KAAK,CAAC,IAAI,EAAE,SAAS,EAAE,CAAC,IAAS,EAAE,EAAE;YACpC,IAAI,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,EAAE,IAAI,CAAC,KAAI,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,WAAW,EAAE,CAAC,CAAA,EAAE;gBACrF,IAAI,CAAC,UAAU,CAAC,EAAE,GAAG,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC;aAChD;QACF,CAAC,CAAC,CAAC;IACJ,CAAC,CAAC;AACH,CAAC;AAZD,0BAYC"}
@@ -1,26 +0,0 @@
1
- import {NgDocHeading} from '@ng-doc/core';
2
-
3
- const slugs = require('github-slugger')();
4
- const has = require('hast-util-has-property');
5
- const rank = require('hast-util-heading-rank');
6
- const toString = require('hast-util-to-string');
7
- const visit = require('unist-util-visit');
8
-
9
- /**
10
- *
11
- * @param tree
12
- * @param headings
13
- */
14
- export default function slugger(headings?: NgDocHeading[]): any {
15
- headings = headings || ['h1', 'h2', 'h3', 'h4'];
16
-
17
- return (tree: any) => {
18
- slugs.reset();
19
-
20
- visit(tree, 'element', (node: any) => {
21
- if (rank(node) && !has(node, 'id') && headings?.includes(node.tagName.toLowerCase())) {
22
- node.properties.id = slugs.slug(toString(node));
23
- }
24
- });
25
- };
26
- }
@@ -1,9 +0,0 @@
1
- import { NgDocBuiltOutput } from '../../interfaces';
2
- import { NgDocEntity } from '../entities/abstractions/entity';
3
- /**
4
- *
5
- * @param builder
6
- * @param entity
7
- * @param content
8
- */
9
- export declare function htmlPostProcessor(entity: NgDocEntity, content: NgDocBuiltOutput): NgDocBuiltOutput;
@@ -1,33 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.htmlPostProcessor = void 0;
4
- const tslib_1 = require("tslib");
5
- const helpers_1 = require("../../helpers");
6
- const autolink_headings_1 = tslib_1.__importDefault(require("./html-plugins/autolink-headings"));
7
- const keywords_processor_1 = tslib_1.__importDefault(require("./html-plugins/keywords-processor"));
8
- const mark_elements_1 = tslib_1.__importDefault(require("./html-plugins/mark-elements"));
9
- const slugger_1 = tslib_1.__importDefault(require("./html-plugins/slugger"));
10
- /**
11
- *
12
- * @param builder
13
- * @param entity
14
- * @param content
15
- */
16
- function htmlPostProcessor(entity, content) {
17
- var _a;
18
- return {
19
- ...content,
20
- content: require('rehype')()
21
- .use(require('rehype-format'))
22
- .use(require('rehype-highlight'))
23
- .use(slugger_1.default, (0, helpers_1.isPageEntity)(entity) ? (_a = entity.context.config.guide) === null || _a === void 0 ? void 0 : _a.anchorHeadings : undefined)
24
- .use(require('rehype-minify-whitespace'))
25
- .use(autolink_headings_1.default, (0, helpers_1.isRouteEntity)(entity) ? entity.fullRoute : undefined)
26
- .use(keywords_processor_1.default, entity.builder.entities, (0, helpers_1.isRouteEntity)(entity) ? entity : undefined)
27
- .use(mark_elements_1.default)
28
- .processSync(content.content)
29
- .toString(),
30
- };
31
- }
32
- exports.htmlPostProcessor = htmlPostProcessor;
33
- //# sourceMappingURL=html-post-processor.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"html-post-processor.js","sourceRoot":"","sources":["../../../../../libs/builder/engine/post-processors/html-post-processor.ts"],"names":[],"mappings":";;;;AAAA,2CAA0D;AAG1D,iGAA+D;AAC/D,mGAAkE;AAClE,yFAAwD;AACxD,6EAA6C;AAE7C;;;;;GAKG;AACH,SAAgB,iBAAiB,CAAC,MAAmB,EAAE,OAAyB;;IAC/E,OAAO;QACN,GAAG,OAAO;QACV,OAAO,EAAE,OAAO,CAAC,QAAQ,CAAC,EAAE;aAC1B,GAAG,CAAC,OAAO,CAAC,eAAe,CAAC,CAAC;aAC7B,GAAG,CAAC,OAAO,CAAC,kBAAkB,CAAC,CAAC;aAChC,GAAG,CAAC,iBAAO,EAAE,IAAA,sBAAY,EAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAA,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK,0CAAE,cAAc,CAAC,CAAC,CAAC,SAAS,CAAC;aAC5F,GAAG,CAAC,OAAO,CAAC,0BAA0B,CAAC,CAAC;aACxC,GAAG,CAAC,2BAAe,EAAE,IAAA,uBAAa,EAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;aAC1E,GAAG,CAAC,4BAAiB,EAAE,MAAM,CAAC,OAAO,CAAC,QAAQ,EAAE,IAAA,uBAAa,EAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;aAC3F,GAAG,CAAC,uBAAY,CAAC;aACjB,WAAW,CAAC,OAAO,CAAC,OAAO,CAAC;aAC5B,QAAQ,EAAE;KACZ,CAAC;AACH,CAAC;AAdD,8CAcC"}
@@ -1 +0,0 @@
1
- export * from './html-post-processor';
@@ -1,5 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- tslib_1.__exportStar(require("./html-post-processor"), exports);
5
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../libs/builder/engine/post-processors/index.ts"],"names":[],"mappings":";;;AAAA,gEAAsC"}
@@ -1,6 +0,0 @@
1
- import { NgDocEntity } from '../engine/entities/abstractions/entity';
2
- /**
3
- *
4
- * @param entities
5
- */
6
- export declare function buildGlobalIndexes(entities: NgDocEntity[]): string[];
@@ -1,141 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.buildGlobalIndexes = void 0;
4
- const tslib_1 = require("tslib");
5
- const core_1 = require("@ng-doc/core");
6
- const lunr_1 = tslib_1.__importDefault(require("lunr"));
7
- const path = tslib_1.__importStar(require("path"));
8
- const posthtml_parser_1 = require("posthtml-parser");
9
- const entities_1 = require("../engine/entities");
10
- const route_entity_1 = require("../engine/entities/abstractions/route.entity");
11
- const entity_type_1 = require("./entity-type");
12
- const get_kind_type_1 = require("./get-kind-type");
13
- /**
14
- *
15
- * @param entities
16
- */
17
- function buildGlobalIndexes(entities) {
18
- return buildIndexes(entities, route_entity_1.NgDocRouteEntity);
19
- }
20
- exports.buildGlobalIndexes = buildGlobalIndexes;
21
- /**
22
- *
23
- * @param entities
24
- * @param entityType
25
- */
26
- function buildIndexes(entities, entityType) {
27
- const indexes = [];
28
- entities.filter((entity) => entity instanceof entityType).forEach((entity) => {
29
- const pageIndexes = entity.artifacts
30
- .filter((artifact) => path.extname(artifact.filePath) === '.html')
31
- .map((artifact) => {
32
- const nodes = (0, posthtml_parser_1.parser)(artifact.content);
33
- return extractIndexes(entity, nodes);
34
- })
35
- .flat();
36
- indexes.push(...pageIndexes);
37
- });
38
- const queryLexer = lunr_1.default.QueryLexer;
39
- queryLexer.termSeparator = lunr_1.default.tokenizer.separator = /\s+/;
40
- const index = (0, lunr_1.default)((builder) => {
41
- builder.pipeline.remove(lunr_1.default.stemmer);
42
- builder.ref('route');
43
- builder.field('heading', { boost: 10 });
44
- builder.field('content', { boost: 5 });
45
- indexes.forEach((index) => builder.add(index));
46
- });
47
- const pages = indexes.reduce((pages, index) => {
48
- pages[index.route] = {
49
- route: index.route,
50
- title: index.title,
51
- type: index.type,
52
- kind: index.kind,
53
- };
54
- return pages;
55
- }, {});
56
- return [JSON.stringify(pages, undefined, 2), JSON.stringify(index, undefined, 2)];
57
- }
58
- /**
59
- *
60
- * @param entity
61
- * @param nodes
62
- * @param parentIndex
63
- * @param indexes
64
- */
65
- function extractIndexes(entity, nodes, indexes = []) {
66
- if (!indexes.length) {
67
- indexes.push({
68
- route: entity.fullRoute,
69
- type: getTypeFromEntity(entity),
70
- title: entity.title,
71
- heading: entity.title,
72
- content: '',
73
- kind: ((0, entity_type_1.isApiPageEntity)(entity) && entity.declaration && (0, get_kind_type_1.getKindType)(entity.declaration)) || undefined,
74
- });
75
- }
76
- nodes.forEach((node) => {
77
- if ((0, core_1.isNodeTag)(node)) {
78
- if (!isIgnoredTag(node)) {
79
- if (isHeadingTag(node)) {
80
- indexes.push({
81
- route: entity.fullRoute,
82
- type: getTypeFromEntity(entity),
83
- title: entity.title,
84
- heading: extractText(node),
85
- content: '',
86
- kind: ((0, entity_type_1.isApiPageEntity)(entity) && entity.declaration && (0, get_kind_type_1.getKindType)(entity.declaration)) ||
87
- undefined,
88
- });
89
- }
90
- else if (Array.isArray(node.content)) {
91
- indexes[indexes.length - 1].content += extractText(node);
92
- extractIndexes(entity, (0, core_1.asArray)(node.content).flat(), indexes);
93
- }
94
- }
95
- }
96
- });
97
- return indexes;
98
- }
99
- /**
100
- *
101
- * @param node
102
- */
103
- function isIgnoredTag(node) {
104
- return ['pre', 'code', 'div', 'span'].includes(String(node.tag));
105
- }
106
- /**
107
- *
108
- * @param node
109
- */
110
- function extractText(node) {
111
- if ((0, core_1.isNodeTag)(node)) {
112
- return isIgnoredTag(node)
113
- ? ''
114
- : (0, core_1.asArray)(node.content)
115
- .flat()
116
- .filter((node) => typeof node === 'string')
117
- .map((str) => str.trim())
118
- .join('\n');
119
- }
120
- else {
121
- return String(node);
122
- }
123
- }
124
- /**
125
- *
126
- * @param entity
127
- */
128
- function getTypeFromEntity(entity) {
129
- if (entity instanceof entities_1.NgDocApiPageEntity) {
130
- return 'api';
131
- }
132
- return 'guide';
133
- }
134
- /**
135
- *
136
- * @param node
137
- */
138
- function isHeadingTag(node) {
139
- return ['h1', 'h2', 'h3', 'h4', 'h5', 'h6'].includes(String(node.tag));
140
- }
141
- //# sourceMappingURL=build-global-indexes.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"build-global-indexes.js","sourceRoot":"","sources":["../../../../libs/builder/helpers/build-global-indexes.ts"],"names":[],"mappings":";;;;AAAA,uCAAiH;AACjH,wDAAwB;AACxB,mDAA6B;AAC7B,qDAAsD;AAEtD,iDAAsD;AAEtD,+EAA8E;AAE9E,+CAA8C;AAC9C,mDAA4C;AAE5C;;;GAGG;AACH,SAAgB,kBAAkB,CAAC,QAAuB;IACzD,OAAO,YAAY,CAAC,QAAQ,EAAE,+BAAgB,CAAC,CAAC;AACjD,CAAC;AAFD,gDAEC;AAED;;;;GAIG;AACH,SAAS,YAAY,CACpB,QAAuB,EACvB,UAAmD;IAEnD,MAAM,OAAO,GA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AG,CAAC,CAAC,GAAW,EAAE,EAAE,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC;iBAChC,IAAI,CAAC,IAAI,CAAC,CAAC;KACf;SAAM;QACN,OAAO,MAAM,CAAC,IAAI,CAAC,CAAC;KACpB;AACF,CAAC;AAED;;;GAGG;AACH,SAAS,iBAAiB,CAAC,MAAmB;IAC7C,IAAI,MAAM,YAAY,6BAAkB,EAAE;QACzC,OAAO,KAAK,CAAC;KACb;IACD,OAAO,OAAO,CAAC;AAChB,CAAC;AAED;;;GAGG;AACH,SAAS,YAAY,CAAC,IAAa;IAClC,OAAO,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;AACxE,CAAC"}
@@ -1,5 +0,0 @@
1
- /**
2
- *
3
- * @param text
4
- */
5
- export declare function printWarning(text?: string): void;
@@ -1,14 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.printWarning = void 0;
4
- const tslib_1 = require("tslib");
5
- const chalk_1 = tslib_1.__importDefault(require("chalk"));
6
- /**
7
- *
8
- * @param text
9
- */
10
- function printWarning(text) {
11
- text && console.log(`\n${chalk_1.default.blue('NgDoc:')} ${chalk_1.default.yellow(text)}`);
12
- }
13
- exports.printWarning = printWarning;
14
- //# sourceMappingURL=print-console.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"print-console.js","sourceRoot":"","sources":["../../../../libs/builder/helpers/print-console.ts"],"names":[],"mappings":";;;;AAAA,0DAA0B;AAE1B;;;GAGG;AACH,SAAgB,YAAY,CAAC,IAAa;IACzC,IAAI,IAAI,OAAO,CAAC,GAAG,CAAC,KAAK,eAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,eAAK,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACxE,CAAC;AAFD,oCAEC"}
@@ -1,12 +0,0 @@
1
- import { NgDocKeywordType } from '../types';
2
- export interface NgDocKeyword {
3
- title: string;
4
- path: string;
5
- type?: NgDocKeywordType;
6
- isCodeLink: boolean;
7
- }
8
- export interface NgDocGlobalKeyword {
9
- title?: string;
10
- path: string;
11
- isCodeLink?: boolean;
12
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=keyword-map.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"keyword-map.js","sourceRoot":"","sources":["../../../../libs/builder/interfaces/keyword-map.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- import { NgDocKindType, NgDocPageType } from '@ng-doc/core';
2
- export declare type NgDocKeywordType = NgDocKindType | NgDocPageType;
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=keyword-type.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"keyword-type.js","sourceRoot":"","sources":["../../../../libs/builder/types/keyword-type.ts"],"names":[],"mappings":""}