@@ -10,36 +10,42 @@ export interface IConfigTableOfContents {
1010 /**
1111 * Represents the tree structure describing the toc.file format.
1212 * Nodes that have an empty `items` array property or their name will be included in the
13- * {@link IConfigTableOfContents.categoryNodes } will be filled with API items
14- * that are matched with the filters provided. Everything else will be placed under a catchAll category
15- * that is highly recommended to be provided .
13+ * {@link IConfigTableOfContents.nonEmptyCategoryNodeNames } will be filled with API items
14+ * that are matched with the filters provided. Everything else will be placed under
15+ * { @link IConfigTableOfContents.catchAllCategory} if provided, which is highly recommended .
1616 */
1717 tocConfig : IYamlTocFile ;
1818
1919 /**
2020 * Optional category name that is recommended to be included along with
21- * one of the filters available: `filterByApiItemName` or `filterByInlineTag`.
22- * Any items that are not matched to the mentioned filters will be placed under this
21+ * one of the configs: {@link IConfigTableOfContents.categorizeByName} or
22+ * {@link IConfigTableOfContents.categoryInlineTag}.
23+ * Any items that are not matched according to the mentioned configuration options will be placed under this
2324 * catchAll category. If none provided the items will not be included in the final toc.yml file.
2425 */
2526 catchAllCategory ?: string ;
2627
2728 /**
28- * Toggle either sorting of the API items should be made based on category name presence
29+ * Toggle either categorization of the API items should be made based on category name presence
2930 * in the API item's name. Useful when there are API items without an inline tag to categorize them,
30- * but still need to filter the items under categories. Note: this type of filter might place some items
31- * under wrong categories if the names similar but are supposed to be in different categories.
31+ * but still need to place the items under categories. Note: this type of categorization might place some items
32+ * under wrong categories if the names are similar but belong to different categories.
33+ * In case that {@link IConfigTableOfContents.categoryInlineTag} is provided it will try categorize by
34+ * using it and only if it didn't, it will attempt to categorize by name.
3235 */
3336 categorizeByName ?: boolean ;
3437
3538 /**
36- * Filter that can be used to sort the API items according to an inline custom tag
37- * that is present on them.
39+ * Inline tag that will be used to categorize the API items. Will take precedence over the
40+ * {@link IConfigTableOfContents.categorizeByName} flag in trying to place the API item according to the
41+ * custom inline tag present in documentation of the source code.
3842 */
3943 categoryInlineTag ?: string ;
4044
4145 /**
42- * Array of node names to which API items will be pushed when filtered
46+ * Array of node names that might have already items injected at the time of creating the
47+ * {@link IConfigTableOfContents.tocConfig} tree structure but are still needed to be included as category
48+ * nodes where API items will be pushed during the categorization algorithm.
4349 */
4450 nonEmptyCategoryNodeNames ?: string [ ] ;
4551}
0 commit comments