|
2 | 2 | /** @type { import('typedoc').TypeDocOptionMap & import('typedoc-umlclass').Config } */ |
3 | 3 | const config = { |
4 | 4 | entryPoints: ['./src/index.tsx'], |
5 | | - projectDocuments: ['README.md', 'most-used-modules.md'], |
| 5 | + projectDocuments: ['README.md', 'most-used-modules.md', 'another-md.md'], |
6 | 6 | out: './docs-gen', |
7 | 7 | tsconfig: './tsconfig.json', |
8 | 8 | excludeInternal: true, |
9 | 9 | excludePrivate: true, |
10 | | - excludeExternals: true, |
| 10 | + excludeExternals: false, |
11 | 11 | excludePrivateClassFields: true, |
12 | 12 | categorizeByGroup: true, |
| 13 | + excludeProtected: true, |
13 | 14 | validation: { |
| 15 | + notExported: true, |
14 | 16 | invalidLink: true, |
| 17 | + rewrittenLink: true, |
15 | 18 | notDocumented: true, |
16 | | - notExported: true, |
17 | 19 | unusedMergeModuleWith: true, |
18 | 20 | }, |
| 21 | + entryPointStrategy: 'expand', |
19 | 22 | includeVersion: true, |
20 | 23 | searchInComments: true, |
21 | 24 | searchInDocuments: true, |
22 | | - favicon: './assets/favicon.ico', |
23 | 25 | treatValidationWarningsAsErrors: true, |
24 | 26 | useFirstParagraphOfCommentAsSummary: true, |
| 27 | + disableSources: false, |
25 | 28 | cascadedModifierTags: ['@beta'], |
26 | | - jsDocCompatibility: { |
27 | | - inheritDocTag: true, |
| 29 | + theme: 'typedoc-github-theme', |
| 30 | + router: 'structure', |
| 31 | + customFooterHtml: '<p>Copyright <strong>Iterable</strong> 2025</p>', |
| 32 | + customFooterHtmlDisableWrapper: true, |
| 33 | + markdownLinkExternal: true, |
| 34 | + hideGenerator: true, |
| 35 | + // groupReferencesByType: true, |
| 36 | + sortEntryPoints: true, |
| 37 | + sidebarLinks: { |
| 38 | + Iterable: 'https://app.iterable.com/', |
| 39 | + Support: |
| 40 | + 'https://support.iterable.com/hc/en-us/articles/360045714072-Overview-of-Iterable-s-React-Native-SDK', |
| 41 | + Installation: |
| 42 | + 'https://support.iterable.com/hc/en-us/articles/360045714132-Installing-Iterable-s-React-Native-SDK', |
28 | 43 | }, |
| 44 | + headings: { |
| 45 | + readme: true, |
| 46 | + document: false, |
| 47 | + }, |
| 48 | + groupOrder: [ |
| 49 | + 'Documents', |
| 50 | + 'React Components', |
| 51 | + 'Classes', |
| 52 | + 'Enums', |
| 53 | + 'Interfaces', |
| 54 | + 'Types', |
| 55 | + 'Functions', |
| 56 | + 'Variables', |
| 57 | + 'Constants', |
| 58 | + '*', |
| 59 | + ], |
| 60 | + categoryOrder: ['Documents', 'React Components', '*'], |
| 61 | + // jsDocCompatibility: { |
| 62 | + // inheritDocTag: true, |
| 63 | + // }, |
29 | 64 | preservedTypeAnnotationTags: ['@fires', '@license'], |
30 | 65 | // transformTags: true, |
31 | 66 | requiredToBeDocumented: [ |
@@ -64,14 +99,26 @@ const config = { |
64 | 99 | ], |
65 | 100 | navigation: { |
66 | 101 | includeCategories: false, |
67 | | - includeGroups: false, |
| 102 | + includeGroups: true, |
68 | 103 | compactFolders: false, |
69 | 104 | excludeReferences: false, |
70 | | - includeFolders: false, |
| 105 | + includeFolders: true, |
| 106 | + }, |
| 107 | + alwaysCreateEntryPointModule: false, |
| 108 | + navigationLinks: { |
| 109 | + Github: 'https://github.com/Iterable/react-native-sdk', |
| 110 | + Changelog: |
| 111 | + 'https://github.com/Iterable/react-native-sdk/blob/master/CHANGELOG.md', |
| 112 | + }, |
| 113 | + searchCategoryBoosts: { |
| 114 | + 'React Components': 1.5, |
| 115 | + }, |
| 116 | + searchGroupBoosts: { |
| 117 | + 'React Components': 1.5, |
71 | 118 | }, |
72 | 119 | visibilityFilters: { |
73 | | - 'protected': true, |
74 | | - 'private': true, |
| 120 | + 'protected': false, |
| 121 | + 'private': false, |
75 | 122 | 'inherited': true, |
76 | 123 | 'external': true, |
77 | 124 | '@alpha': true, |
@@ -111,14 +158,23 @@ const config = { |
111 | 158 | // used by {@link react!Component} |
112 | 159 | 'react': { |
113 | 160 | Component: 'https://react.dev/reference/react/Component', |
| 161 | + FunctionComponent: |
| 162 | + 'https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/mdx/types.d.ts', |
114 | 163 | }, |
115 | 164 | }, |
116 | 165 | readme: './README.md', |
| 166 | + customJs: './expand-nav.js', |
117 | 167 | plugin: [ |
118 | 168 | 'typedoc-plugin-coverage', |
119 | 169 | 'typedoc-plugin-mermaid', |
120 | 170 | 'typedoc-plugin-inline-sources', |
121 | 171 | 'typedoc-plugin-dt-links', |
| 172 | + // 'typedoc-plugin-localization', |
| 173 | + 'typedoc-plugin-emojify', |
| 174 | + '@reside-ic/typedoc-plugin-copy-doc', |
| 175 | + 'typedoc-github-theme', |
| 176 | + // 'typedoc-material-theme', |
| 177 | + // '@droppedcode/typedoc-plugin-relative-includes', |
122 | 178 | ], |
123 | 179 | }; |
124 | 180 |
|
|
0 commit comments