typedoc 0.25.13 → 0.26.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 (209) hide show
  1. package/dist/index.d.ts +3 -2
  2. package/dist/index.js +3 -2
  3. package/dist/lib/application.d.ts +15 -3
  4. package/dist/lib/application.js +75 -24
  5. package/dist/lib/cli.js +1 -1
  6. package/dist/lib/converter/comments/blockLexer.d.ts +1 -1
  7. package/dist/lib/converter/comments/blockLexer.js +1 -2
  8. package/dist/lib/converter/comments/declarationReference.js +8 -8
  9. package/dist/lib/converter/comments/declarationReferenceResolver.d.ts +1 -1
  10. package/dist/lib/converter/comments/declarationReferenceResolver.js +15 -14
  11. package/dist/lib/converter/comments/discovery.d.ts +3 -3
  12. package/dist/lib/converter/comments/discovery.js +21 -19
  13. package/dist/lib/converter/comments/index.d.ts +1 -1
  14. package/dist/lib/converter/comments/index.js +35 -16
  15. package/dist/lib/converter/comments/lineLexer.d.ts +1 -1
  16. package/dist/lib/converter/comments/lineLexer.js +1 -2
  17. package/dist/lib/converter/comments/linkResolver.d.ts +2 -2
  18. package/dist/lib/converter/comments/linkResolver.js +5 -3
  19. package/dist/lib/converter/comments/parser.d.ts +14 -3
  20. package/dist/lib/converter/comments/parser.js +147 -39
  21. package/dist/lib/converter/comments/rawLexer.d.ts +7 -1
  22. package/dist/lib/converter/comments/rawLexer.js +21 -70
  23. package/dist/lib/converter/comments/tagName.js +1 -2
  24. package/dist/lib/converter/context.d.ts +7 -2
  25. package/dist/lib/converter/context.js +10 -2
  26. package/dist/lib/converter/convert-expression.js +2 -3
  27. package/dist/lib/converter/converter.d.ts +9 -4
  28. package/dist/lib/converter/converter.js +55 -17
  29. package/dist/lib/converter/factories/index-signature.d.ts +1 -1
  30. package/dist/lib/converter/factories/index-signature.js +9 -12
  31. package/dist/lib/converter/factories/signature.d.ts +1 -1
  32. package/dist/lib/converter/factories/signature.js +14 -15
  33. package/dist/lib/converter/jsdoc.js +2 -3
  34. package/dist/lib/converter/plugins/CategoryPlugin.d.ts +3 -3
  35. package/dist/lib/converter/plugins/CategoryPlugin.js +24 -17
  36. package/dist/lib/converter/plugins/CommentPlugin.d.ts +3 -1
  37. package/dist/lib/converter/plugins/CommentPlugin.js +112 -69
  38. package/dist/lib/converter/plugins/GroupPlugin.d.ts +4 -4
  39. package/dist/lib/converter/plugins/GroupPlugin.js +52 -18
  40. package/dist/lib/converter/plugins/ImplementsPlugin.js +4 -3
  41. package/dist/lib/converter/plugins/InheritDocPlugin.d.ts +1 -1
  42. package/dist/lib/converter/plugins/InheritDocPlugin.js +5 -6
  43. package/dist/lib/converter/plugins/LinkResolverPlugin.d.ts +2 -2
  44. package/dist/lib/converter/plugins/PackagePlugin.d.ts +0 -2
  45. package/dist/lib/converter/plugins/PackagePlugin.js +8 -30
  46. package/dist/lib/converter/plugins/SourcePlugin.js +2 -2
  47. package/dist/lib/converter/symbols.js +6 -11
  48. package/dist/lib/converter/types.d.ts +1 -1
  49. package/dist/lib/converter/types.js +4 -5
  50. package/dist/lib/converter/utils/nodes.js +3 -4
  51. package/dist/lib/converter/utils/reflections.d.ts +1 -1
  52. package/dist/lib/converter/utils/reflections.js +1 -2
  53. package/dist/lib/converter/utils/repository.js +4 -4
  54. package/dist/lib/converter/utils/symbols.js +1 -2
  55. package/dist/lib/internationalization/index.d.ts +7 -0
  56. package/dist/lib/internationalization/index.js +11 -0
  57. package/dist/lib/internationalization/internationalization.d.ts +92 -0
  58. package/dist/lib/internationalization/internationalization.js +194 -0
  59. package/dist/lib/internationalization/locales/en.cjs +3 -0
  60. package/dist/lib/internationalization/locales/en.d.cts +2 -0
  61. package/dist/lib/internationalization/locales/test.cjs +8 -0
  62. package/dist/lib/internationalization/locales/test.d.cts +5 -0
  63. package/dist/lib/internationalization/translatable.d.ts +304 -0
  64. package/dist/lib/internationalization/translatable.js +329 -0
  65. package/dist/lib/models/ReflectionCategory.d.ts +2 -2
  66. package/dist/lib/models/ReflectionGroup.d.ts +2 -2
  67. package/dist/lib/models/comments/comment.d.ts +17 -3
  68. package/dist/lib/models/comments/comment.js +377 -298
  69. package/dist/lib/models/reflections/ReflectionSymbolId.js +2 -2
  70. package/dist/lib/models/reflections/abstract.d.ts +11 -8
  71. package/dist/lib/models/reflections/abstract.js +17 -11
  72. package/dist/lib/models/reflections/container.d.ts +25 -3
  73. package/dist/lib/models/reflections/container.js +64 -0
  74. package/dist/lib/models/reflections/declaration.d.ts +3 -15
  75. package/dist/lib/models/reflections/declaration.js +16 -21
  76. package/dist/lib/models/reflections/document.d.ts +27 -0
  77. package/dist/lib/models/reflections/document.js +43 -0
  78. package/dist/lib/models/reflections/index.d.ts +4 -3
  79. package/dist/lib/models/reflections/index.js +5 -4
  80. package/dist/lib/models/reflections/kind.d.ts +14 -1
  81. package/dist/lib/models/reflections/kind.js +13 -0
  82. package/dist/lib/models/reflections/parameter.d.ts +1 -1
  83. package/dist/lib/models/reflections/project.d.ts +2 -2
  84. package/dist/lib/models/reflections/project.js +8 -7
  85. package/dist/lib/models/reflections/signature.d.ts +2 -2
  86. package/dist/lib/models/reflections/type-parameter.d.ts +1 -1
  87. package/dist/lib/models/reflections/utils.js +1 -2
  88. package/dist/lib/models/reflections/variant.d.ts +2 -0
  89. package/dist/lib/models/types.d.ts +4 -4
  90. package/dist/lib/models/types.js +3 -3
  91. package/dist/lib/output/events.d.ts +5 -5
  92. package/dist/lib/output/events.js +2 -1
  93. package/dist/lib/output/index.d.ts +1 -1
  94. package/dist/lib/output/index.js +2 -1
  95. package/dist/lib/output/plugins/AssetsPlugin.js +1 -1
  96. package/dist/lib/output/plugins/JavascriptIndexPlugin.d.ts +3 -1
  97. package/dist/lib/output/plugins/JavascriptIndexPlugin.js +28 -8
  98. package/dist/lib/output/plugins/SitemapPlugin.d.ts +1 -1
  99. package/dist/lib/output/plugins/SitemapPlugin.js +17 -27
  100. package/dist/lib/output/renderer.d.ts +3 -1
  101. package/dist/lib/output/renderer.js +7 -7
  102. package/dist/lib/output/themes/MarkedPlugin.d.ts +16 -25
  103. package/dist/lib/output/themes/MarkedPlugin.js +89 -161
  104. package/dist/lib/output/themes/default/DefaultTheme.d.ts +16 -4
  105. package/dist/lib/output/themes/default/DefaultTheme.js +66 -17
  106. package/dist/lib/output/themes/default/DefaultThemeRenderContext.d.ts +44 -44
  107. package/dist/lib/output/themes/default/DefaultThemeRenderContext.js +6 -13
  108. package/dist/lib/output/themes/default/layouts/default.js +2 -2
  109. package/dist/lib/output/themes/default/partials/analytics.js +1 -2
  110. package/dist/lib/output/themes/default/partials/anchor-icon.js +2 -3
  111. package/dist/lib/output/themes/default/partials/comment.d.ts +1 -1
  112. package/dist/lib/output/themes/default/partials/comment.js +3 -4
  113. package/dist/lib/output/themes/default/partials/footer.js +31 -5
  114. package/dist/lib/output/themes/default/partials/header.d.ts +1 -1
  115. package/dist/lib/output/themes/default/partials/header.js +4 -3
  116. package/dist/lib/output/themes/default/partials/hierarchy.js +3 -4
  117. package/dist/lib/output/themes/default/partials/icon.js +7 -2
  118. package/dist/lib/output/themes/default/partials/index.js +4 -4
  119. package/dist/lib/output/themes/default/partials/member.d.ts +2 -2
  120. package/dist/lib/output/themes/default/partials/member.declaration.js +2 -3
  121. package/dist/lib/output/themes/default/partials/member.js +13 -2
  122. package/dist/lib/output/themes/default/partials/member.reference.d.ts +1 -1
  123. package/dist/lib/output/themes/default/partials/member.reference.js +9 -6
  124. package/dist/lib/output/themes/default/partials/member.signature.body.d.ts +1 -1
  125. package/dist/lib/output/themes/default/partials/member.signature.body.js +4 -4
  126. package/dist/lib/output/themes/default/partials/member.signature.title.d.ts +1 -1
  127. package/dist/lib/output/themes/default/partials/member.signature.title.js +1 -2
  128. package/dist/lib/output/themes/default/partials/member.sources.js +12 -6
  129. package/dist/lib/output/themes/default/partials/members.d.ts +1 -1
  130. package/dist/lib/output/themes/default/partials/members.group.js +1 -2
  131. package/dist/lib/output/themes/default/partials/members.js +1 -2
  132. package/dist/lib/output/themes/default/partials/navigation.d.ts +1 -1
  133. package/dist/lib/output/themes/default/partials/navigation.js +19 -17
  134. package/dist/lib/output/themes/default/partials/parameter.d.ts +1 -1
  135. package/dist/lib/output/themes/default/partials/parameter.js +15 -15
  136. package/dist/lib/output/themes/default/partials/reflectionPreview.js +1 -2
  137. package/dist/lib/output/themes/default/partials/toolbar.js +4 -4
  138. package/dist/lib/output/themes/default/partials/type.d.ts +1 -1
  139. package/dist/lib/output/themes/default/partials/type.js +14 -14
  140. package/dist/lib/output/themes/default/partials/typeAndParent.d.ts +1 -1
  141. package/dist/lib/output/themes/default/partials/typeParameters.js +2 -3
  142. package/dist/lib/output/themes/default/templates/document.d.ts +5 -0
  143. package/dist/lib/output/themes/default/templates/document.js +7 -0
  144. package/dist/lib/output/themes/default/templates/hierarchy.js +1 -2
  145. package/dist/lib/output/themes/default/templates/reflection.d.ts +1 -1
  146. package/dist/lib/output/themes/default/templates/reflection.js +21 -19
  147. package/dist/lib/output/themes/lib.d.ts +1 -1
  148. package/dist/lib/output/themes/lib.js +12 -16
  149. package/dist/lib/serialization/deserializer.d.ts +3 -3
  150. package/dist/lib/serialization/deserializer.js +7 -5
  151. package/dist/lib/serialization/schema.d.ts +10 -3
  152. package/dist/lib/utils/array.js +9 -10
  153. package/dist/lib/utils/component.d.ts +1 -1
  154. package/dist/lib/utils/component.js +2 -2
  155. package/dist/lib/utils/entry-point.d.ts +11 -0
  156. package/dist/lib/utils/entry-point.js +51 -24
  157. package/dist/lib/utils/enum.js +6 -7
  158. package/dist/lib/utils/fs.js +15 -16
  159. package/dist/lib/utils/general.d.ts +4 -3
  160. package/dist/lib/utils/general.js +4 -5
  161. package/dist/lib/utils/highlighter.d.ts +4 -2
  162. package/dist/lib/utils/highlighter.js +41 -40
  163. package/dist/lib/utils/html.js +2 -3
  164. package/dist/lib/utils/index.d.ts +1 -1
  165. package/dist/lib/utils/index.js +1 -2
  166. package/dist/lib/utils/jsx.elements.d.ts +13 -1
  167. package/dist/lib/utils/jsx.js +4 -4
  168. package/dist/lib/utils/loggers.d.ts +13 -7
  169. package/dist/lib/utils/loggers.js +13 -10
  170. package/dist/lib/utils/map.d.ts +1 -1
  171. package/dist/lib/utils/map.js +1 -1
  172. package/dist/lib/utils/options/declaration.d.ts +48 -21
  173. package/dist/lib/utils/options/declaration.js +36 -36
  174. package/dist/lib/utils/options/help.d.ts +2 -1
  175. package/dist/lib/utils/options/help.js +10 -10
  176. package/dist/lib/utils/options/index.d.ts +1 -1
  177. package/dist/lib/utils/options/index.js +1 -2
  178. package/dist/lib/utils/options/options.d.ts +5 -34
  179. package/dist/lib/utils/options/options.js +13 -23
  180. package/dist/lib/utils/options/readers/arguments.js +3 -5
  181. package/dist/lib/utils/options/readers/package-json.js +2 -2
  182. package/dist/lib/utils/options/readers/tsconfig.js +8 -12
  183. package/dist/lib/utils/options/readers/typedoc.d.ts +1 -1
  184. package/dist/lib/utils/options/readers/typedoc.js +8 -7
  185. package/dist/lib/utils/options/sources/typedoc.js +225 -178
  186. package/dist/lib/utils/options/tsdoc-defaults.d.ts +4 -4
  187. package/dist/lib/utils/options/tsdoc-defaults.js +27 -20
  188. package/dist/lib/utils/package-manifest.d.ts +1 -1
  189. package/dist/lib/utils/package-manifest.js +9 -11
  190. package/dist/lib/utils/paths.js +4 -5
  191. package/dist/lib/utils/perf.js +3 -4
  192. package/dist/lib/utils/plugins.js +4 -5
  193. package/dist/lib/utils/reflections.d.ts +1 -1
  194. package/dist/lib/utils/reflections.js +2 -3
  195. package/dist/lib/utils/set.d.ts +1 -0
  196. package/dist/lib/utils/set.js +12 -0
  197. package/dist/lib/utils/sort.d.ts +3 -2
  198. package/dist/lib/utils/sort.js +37 -6
  199. package/dist/lib/utils/tsconfig.js +3 -4
  200. package/dist/lib/utils/tsutils.js +2 -3
  201. package/dist/lib/utils/validation.js +4 -4
  202. package/dist/lib/validation/documentation.d.ts +1 -1
  203. package/dist/lib/validation/documentation.js +9 -4
  204. package/dist/lib/validation/exports.js +3 -5
  205. package/dist/lib/validation/links.js +2 -3
  206. package/package.json +12 -11
  207. package/static/main.js +4 -4
  208. package/static/style.css +46 -29
  209. package/tsdoc.json +22 -0
@@ -0,0 +1,329 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.translatable = void 0;
4
+ exports.buildTranslation = buildTranslation;
5
+ exports.buildIncompleteTranslation = buildIncompleteTranslation;
6
+ function buildTranslation(translations) {
7
+ return translations;
8
+ }
9
+ function buildIncompleteTranslation(translations) {
10
+ return translations;
11
+ }
12
+ exports.translatable = {
13
+ loaded_multiple_times_0: "TypeDoc has been loaded multiple times. This is commonly caused by plugins which have their own installation of TypeDoc. The loaded paths are:\n\t{0}",
14
+ unsupported_ts_version_0: "You are running with an unsupported TypeScript version! If TypeDoc crashes, this is why. TypeDoc supports {0}",
15
+ no_compiler_options_set: "No compiler options set. This likely means that TypeDoc did not find your tsconfig.json. Generated documentation will probably be empty.",
16
+ loaded_plugin_0: `Loaded plugin {0}`,
17
+ solution_not_supported_in_watch_mode: "The provided tsconfig file looks like a solution style tsconfig, which is not supported in watch mode.",
18
+ strategy_not_supported_in_watch_mode: "entryPointStrategy must be set to either resolve or expand for watch mode.",
19
+ docs_could_not_be_generated: "Documentation could not be generated due to the errors above.",
20
+ docs_generated_at_0: "Documentation generated at {0}",
21
+ json_written_to_0: "JSON written to {0}",
22
+ no_entry_points_for_packages: "No entry points provided to packages mode, documentation cannot be generated.",
23
+ failed_to_find_packages: "Failed to find any packages, ensure you have provided at least one directory as an entry point containing package.json",
24
+ nested_packages_unsupported_0: "Project at {0} has entryPointStrategy set to packages, but nested packages are not supported.",
25
+ previous_error_occurred_when_reading_options_for_0: "The previous error occurred when reading options for the package at {0}",
26
+ converting_project_at_0: "Converting project at {0}",
27
+ failed_to_convert_packages: "Failed to convert one or more packages, result will not be merged together.",
28
+ merging_converted_projects: "Merging converted projects",
29
+ no_entry_points_to_merge: "No entry points provided to merge.",
30
+ entrypoint_did_not_match_files_0: "The entrypoint glob {0} did not match any files.",
31
+ failed_to_parse_json_0: `Failed to parse file at {0} as json.`,
32
+ failed_to_read_0_when_processing_document_tag_in_1: `Failed to read file {0} when processing @document tag for comment in {1}`,
33
+ converting_union_as_interface: `Using @interface on a union type will discard properties not present on all branches of the union. TypeDoc's output may not accurately describe your source code.`,
34
+ converting_0_as_class_requires_value_declaration: `Converting {0} as a class requires a declaration which represents a non-type value.`,
35
+ converting_0_as_class_without_construct_signatures: `{0} is being converted as a class, but does not have any construct signatures`,
36
+ symbol_0_has_multiple_declarations_with_comment: `{0} has multiple declarations with a comment. An arbitrary comment will be used.`,
37
+ comments_for_0_are_declared_at_1: `The comments for {0} are declared at:\n\t{1}`,
38
+ // comments/parser.ts
39
+ multiple_type_parameters_on_template_tag_unsupported: `TypeDoc does not support multiple type parameters defined in a single @template tag with a comment.`,
40
+ failed_to_find_jsdoc_tag_for_name_0: `Failed to find JSDoc tag for {0} after parsing comment, please file a bug report.`,
41
+ inline_inheritdoc_should_not_appear_in_block_tag_in_comment_at_0: "An inline @inheritDoc tag should not appear within a block tag as it will not be processed in comment at {0}",
42
+ at_most_one_remarks_tag_expected_in_comment_at_0: "At most one @remarks tag is expected in a comment, ignoring all but the first in comment at {0}",
43
+ at_most_one_returns_tag_expected_in_comment_at_0: "At most one @returns tag is expected in a comment, ignoring all but the first in comment at {0}",
44
+ at_most_one_inheritdoc_tag_expected_in_comment_at_0: "At most one @inheritDoc tag is expected in a comment, ignoring all but the first in comment at {0}",
45
+ content_in_summary_overwritten_by_inheritdoc_in_comment_at_0: "Content in the summary section will be overwritten by the @inheritDoc tag in comment at {0}",
46
+ content_in_remarks_block_overwritten_by_inheritdoc_in_comment_at_0: "Content in the @remarks block will be overwritten by the @inheritDoc tag in comment at {0}",
47
+ example_tag_literal_name: "The first line of an example tag will be taken literally as the example name, and should only contain text.",
48
+ inheritdoc_tag_properly_capitalized: "The @inheritDoc tag should be properly capitalized.",
49
+ treating_unrecognized_tag_0_as_modifier: `Treating unrecognized tag {0} as a modifier tag.`,
50
+ unmatched_closing_brace: `Unmatched closing brace.`,
51
+ unescaped_open_brace_without_inline_tag: `Encountered an unescaped open brace without an inline tag.`,
52
+ unknown_block_tag_0: `Encountered an unknown block tag {0}.`,
53
+ unknown_inline_tag_0: `Encountered an unknown inline tag {0}.`,
54
+ open_brace_within_inline_tag: `Encountered an open brace within an inline tag, this is likely a mistake.`,
55
+ inline_tag_not_closed: `Inline tag is not closed.`,
56
+ // validation
57
+ failed_to_resolve_link_to_0_in_comment_for_1: `Failed to resolve link to "{0}" in comment for {1}`,
58
+ type_0_defined_in_1_is_referenced_by_2_but_not_included_in_docs: `{0}, defined in {1}, is referenced by {2} but not included in the documentation.`,
59
+ reflection_0_kind_1_defined_in_2_does_not_have_any_documentation: `{0} ({1}), defined in {2}, does not have any documentation.`,
60
+ invalid_intentionally_not_exported_symbols_0: "The following symbols were marked as intentionally not exported, but were either not referenced in the documentation, or were exported:\n\t{0}",
61
+ // conversion plugins
62
+ not_all_search_category_boosts_used_0: `Not all categories specified in searchCategoryBoosts were used in the documentation. The unused categories were:\n\t{0}`,
63
+ not_all_search_group_boosts_used_0: `Not all groups specified in searchGroupBoosts were used in the documentation. The unused groups were:\n\t{0}`,
64
+ comment_for_0_includes_categoryDescription_for_1_but_no_child_in_group: `Comment for {0} includes @categoryDescription for "{1}", but no child is placed in that category.`,
65
+ comment_for_0_includes_groupDescription_for_1_but_no_child_in_group: `Comment for {0} includes @groupDescription for "{1}", but no child is placed in that group.`,
66
+ label_0_for_1_cannot_be_referenced: `The label "{0}" for {1} cannot be referenced with a declaration reference. Labels may only contain A-Z, 0-9, and _, and may not start with a number.`,
67
+ modifier_tag_0_is_mutually_exclusive_with_1_in_comment_for_2: `The modifier tag {0} is mutually exclusive with {1} in the comment for {2}.`,
68
+ signature_0_has_unused_param_with_name_1: `The signature {0} has an @param with name "{1}", which was not used.`,
69
+ declaration_reference_in_inheritdoc_for_0_not_fully_parsed: `Declaration reference in @inheritDoc for {0} was not fully parsed and may resolve incorrectly.`,
70
+ failed_to_find_0_to_inherit_comment_from_in_1: `Failed to find "{0}" to inherit the comment from in the comment for {1}`,
71
+ reflection_0_tried_to_copy_comment_from_1_but_source_had_no_comment: `{0} tried to copy a comment from {1} with @inheritDoc, but the source has no associated comment.`,
72
+ inheritdoc_circular_inheritance_chain_0: `@inheritDoc specifies a circular inheritance chain: {0}`,
73
+ provided_readme_at_0_could_not_be_read: `Provided README path, {0} could not be read.`,
74
+ defaulting_project_name: 'The --name option was not specified, and no package.json was found. Defaulting project name to "Documentation".',
75
+ disable_git_set_but_not_source_link_template: `disableGit is set, but sourceLinkTemplate is not, so source links cannot be produced. Set a sourceLinkTemplate or disableSources to prevent source tracking.`,
76
+ disable_git_set_and_git_revision_used: `disableGit is set and sourceLinkTemplate contains {gitRevision}, which will be replaced with an empty string as no revision was provided.`,
77
+ git_remote_0_not_valid: `The provided git remote "{0}" was not valid. Source links will be broken.`,
78
+ // output plugins
79
+ custom_css_file_0_does_not_exist: `Custom CSS file at {0} does not exist.`,
80
+ unsupported_highlight_language_0_not_highlighted_in_comment_for_1: `Unsupported highlight language {0} will not be highlighted in comment for {1}.`,
81
+ yaml_frontmatter_not_an_object: `Expected YAML frontmatter to be an object.`,
82
+ // renderer
83
+ could_not_write_0: `Could not write {0}`,
84
+ could_not_empty_output_directory_0: `Could not empty the output directory {0}`,
85
+ could_not_create_output_directory_0: `Could not create the output directory {0}`,
86
+ theme_0_is_not_defined_available_are_1: `The theme '{0}' is not defined. The available themes are: {1}`,
87
+ custom_theme_does_not_define_getSlugger: `Custom theme does not define a getSlugger(reflection) method, but tries to render markdown`,
88
+ // entry points
89
+ no_entry_points_provided: "No entry points were provided, this is likely a misconfiguration.",
90
+ unable_to_find_any_entry_points: "Unable to find any entry points. See previous warnings.",
91
+ watch_does_not_support_packages_mode: "Watch mode does not support 'packages' style entry points.",
92
+ watch_does_not_support_merge_mode: "Watch mode does not support 'merge' style entry points.",
93
+ entry_point_0_not_in_program: `The entry point {0} is not referenced by the 'files' or 'include' option in your tsconfig.`,
94
+ use_expand_or_glob_for_files_in_dir: `If you wanted to include files inside this directory, set --entryPointStrategy to expand or specify a glob.`,
95
+ glob_0_did_not_match_any_files: `The glob {0} did not match any files.`,
96
+ entry_point_0_did_not_match_any_files_after_exclude: `The glob {0} did not match any files after applying exclude patterns.`,
97
+ entry_point_0_did_not_exist: `Provided entry point {0} does not exist.`,
98
+ entry_point_0_did_not_match_any_packages: `The entry point glob {0} did not match any directories containing package.json.`,
99
+ file_0_not_an_object: `The file {0} is not an object.`,
100
+ // deserialization
101
+ serialized_project_referenced_0_not_part_of_project: `Serialized project referenced reflection {0}, which was not a part of the project.`,
102
+ // options
103
+ circular_reference_extends_0: `Circular reference encountered for "extends" field of {0}`,
104
+ failed_resolve_0_to_file_in_1: `Failed to resolve {0} to a file in {1}`,
105
+ option_0_can_only_be_specified_by_config_file: `The '{0}' option can only be specified via a config file.`,
106
+ option_0_expected_a_value_but_none_provided: `--{0} expected a value, but none was given as an argument.`,
107
+ unknown_option_0_may_have_meant_1: `Unknown option: {0}, you may have meant:\n\t{1}`,
108
+ typedoc_key_in_0_ignored: `The 'typedoc' key in {0} was used by the legacy-packages entryPointStrategy and will be ignored.`,
109
+ typedoc_options_must_be_object_in_0: `Failed to parse the "typedocOptions" field in {0}, ensure it exists and contains an object.`,
110
+ tsconfig_file_0_does_not_exist: `The tsconfig file {0} does not exist`,
111
+ tsconfig_file_specifies_options_file: `"typedocOptions" in tsconfig file specifies an option file to read but the option file has already been read. This is likely a misconfiguration.`,
112
+ tsconfig_file_specifies_tsconfig_file: `"typedocOptions" in tsconfig file may not specify a tsconfig file to read.`,
113
+ tags_0_defined_in_typedoc_json_overwritten_by_tsdoc_json: `The {0} defined in typedoc.json will be overwritten by configuration in tsdoc.json.`,
114
+ failed_read_tsdoc_json_0: `Failed to read tsdoc.json file at {0}.`,
115
+ invalid_tsdoc_json_0: `The file {0} is not a valid tsdoc.json file.`,
116
+ options_file_0_does_not_exist: `The options file {0} does not exist.`,
117
+ failed_read_options_file_0: `Failed to parse {0}, ensure it exists and exports an object.`,
118
+ // plugins
119
+ invalid_plugin_0_missing_load_function: `Invalid structure in plugin {0}, no load function found.`,
120
+ plugin_0_could_not_be_loaded: `The plugin {0} could not be loaded.`,
121
+ // option declarations help
122
+ help_options: "Specify a json option file that should be loaded. If not specified TypeDoc will look for 'typedoc.json' in the current directory.",
123
+ help_tsconfig: "Specify a TypeScript config file that should be loaded. If not specified TypeDoc will look for 'tsconfig.json' in the current directory.",
124
+ help_compilerOptions: "Selectively override the TypeScript compiler options used by TypeDoc.",
125
+ help_lang: "Sets the language to be used in generation and in TypeDoc's messages.",
126
+ help_locales: "Add translations for a specified locale. This option is primarily intended to be used as a stopgap while waiting for official locale support to be added to TypeDoc.",
127
+ help_packageOptions: "Set options which will be set within each package when entryPointStrategy is set to packages.",
128
+ help_entryPoints: "The entry points of your documentation.",
129
+ help_entryPointStrategy: "The strategy to be used to convert entry points into documentation modules.",
130
+ help_alwaysCreateEntryPointModule: "When set, TypeDoc will always create a `Module` for entry points, even if only one is provided.",
131
+ help_projectDocuments: "Documents which should be added as children to the root of the generated documentation. Supports globs to match multiple files.",
132
+ help_exclude: "Define patterns to be excluded when expanding a directory that was specified as an entry point.",
133
+ help_externalPattern: "Define patterns for files that should be considered being external.",
134
+ help_excludeExternals: "Prevent externally resolved symbols from being documented.",
135
+ help_excludeNotDocumented: "Prevent symbols that are not explicitly documented from appearing in the results.",
136
+ help_excludeNotDocumentedKinds: "Specify the type of reflections that can be removed by excludeNotDocumented.",
137
+ help_excludeInternal: "Prevent symbols that are marked with @internal from being documented.",
138
+ help_excludeCategories: "Exclude symbols within this category from the documentation.",
139
+ help_excludePrivate: "Ignore private variables and methods.",
140
+ help_excludeProtected: "Ignore protected variables and methods.",
141
+ help_excludeReferences: "If a symbol is exported multiple times, ignore all but the first export.",
142
+ help_externalSymbolLinkMappings: "Define custom links for symbols not included in the documentation.",
143
+ help_out: "Specify the location the documentation should be written to.",
144
+ help_json: "Specify the location and filename a JSON file describing the project is written to.",
145
+ help_pretty: "Specify whether the output JSON should be formatted with tabs.",
146
+ help_emit: "Specify what TypeDoc should emit, 'docs', 'both', or 'none'.",
147
+ help_theme: "Specify the theme name to render the documentation with",
148
+ help_lightHighlightTheme: "Specify the code highlighting theme in light mode.",
149
+ help_darkHighlightTheme: "Specify the code highlighting theme in dark mode.",
150
+ help_customCss: "Path to a custom CSS file to for the theme to import.",
151
+ help_markdownItOptions: "Specify the options passed to markdown-it, the Markdown parser used by TypeDoc.",
152
+ help_markdownItLoader: "Specify a callback to be called when loading the markdown-it instance. Will be passed the instance of the parser which TypeDoc will use.",
153
+ help_maxTypeConversionDepth: "Set the maximum depth of types to be converted.",
154
+ help_name: "Set the name of the project that will be used in the header of the template.",
155
+ help_includeVersion: "Add the package version to the project name.",
156
+ help_disableSources: "Disable setting the source of a reflection when documenting it.",
157
+ help_sourceLinkTemplate: "Specify a link template to be used when generating source urls. If not set, will be automatically created using the git remote. Supports {path}, {line}, {gitRevision} placeholders.",
158
+ help_gitRevision: "Use specified revision instead of the last revision for linking to GitHub/Bitbucket source files. Has no effect if disableSources is set.",
159
+ help_gitRemote: "Use the specified remote for linking to GitHub/Bitbucket source files. Has no effect if disableGit or disableSources is set.",
160
+ help_disableGit: "Assume that all can be linked to with the sourceLinkTemplate, sourceLinkTemplate must be set if this is enabled. {path} will be rooted at basePath",
161
+ help_basePath: "Specifies the base path to be used when displaying file paths.",
162
+ help_excludeTags: "Remove the listed block/modifier tags from doc comments.",
163
+ help_readme: "Path to the readme file that should be displayed on the index page. Pass `none` to disable the index page and start the documentation on the globals page.",
164
+ help_cname: "Set the CNAME file text, it's useful for custom domains on GitHub Pages.",
165
+ help_sourceLinkExternal: "Specifies that source links should be treated as external links to be opened in a new tab.",
166
+ help_githubPages: "Generate a .nojekyll file to prevent 404 errors in GitHub Pages. Defaults to `true`.",
167
+ help_hostedBaseUrl: "Specify a base URL to be used in generating a sitemap.xml in our output folder and canonical links. If not specified, no sitemap will be generated.",
168
+ help_gaID: "Set the Google Analytics tracking ID and activate tracking code.",
169
+ help_hideGenerator: "Do not print the TypeDoc link at the end of the page.",
170
+ help_customFooterHtml: "Custom footer after the TypeDoc link.",
171
+ help_customFooterHtmlDisableWrapper: "If set, disables the wrapper element for customFooterHtml.",
172
+ help_hideParameterTypesInTitle: "Hides parameter types in signature titles for easier scanning.",
173
+ help_cacheBust: "Include the generation time in links to static assets.",
174
+ help_searchInComments: "If set, the search index will also include comments. This will greatly increase the size of the search index.",
175
+ help_searchInDocuments: "If set, the search index will also include documents. This will greatly increase the size of the search index.",
176
+ help_cleanOutputDir: "If set, TypeDoc will remove the output directory before writing output.",
177
+ help_titleLink: "Set the link the title in the header points to. Defaults to the documentation homepage.",
178
+ help_navigationLinks: "Defines links to be included in the header.",
179
+ help_sidebarLinks: "Defines links to be included in the sidebar.",
180
+ help_navigationLeaves: "Branches of the navigation tree which should not be expanded.",
181
+ help_navigation: "Determines how the navigation sidebar is organized.",
182
+ help_visibilityFilters: "Specify the default visibility for builtin filters and additional filters according to modifier tags.",
183
+ help_searchCategoryBoosts: "Configure search to give a relevance boost to selected categories",
184
+ help_searchGroupBoosts: 'Configure search to give a relevance boost to selected kinds (eg "class")',
185
+ help_jsDocCompatibility: "Sets compatibility options for comment parsing that increase similarity with JSDoc comments.",
186
+ help_commentStyle: "Determines how TypeDoc searches for comments.",
187
+ help_useTsLinkResolution: "Use TypeScript's link resolution when determining where @link tags point. This only applies to JSDoc style comments.",
188
+ help_preserveLinkText: "If set, @link tags without link text will use the text content as the link. If not set, will use the target reflection name.",
189
+ help_blockTags: "Block tags which TypeDoc should recognize when parsing comments.",
190
+ help_inlineTags: "Inline tags which TypeDoc should recognize when parsing comments.",
191
+ help_modifierTags: "Modifier tags which TypeDoc should recognize when parsing comments.",
192
+ help_categorizeByGroup: "Specify whether categorization will be done at the group level.",
193
+ help_defaultCategory: "Specify the default category for reflections without a category.",
194
+ help_categoryOrder: "Specify the order in which categories appear. * indicates the relative order for categories not in the list.",
195
+ help_groupOrder: "Specify the order in which groups appear. * indicates the relative order for groups not in the list.",
196
+ help_sort: "Specify the sort strategy for documented values.",
197
+ help_sortEntryPoints: "If set, entry points will be subject to the same sorting rules as other reflections.",
198
+ help_kindSortOrder: "Specify the sort order for reflections when 'kind' is specified.",
199
+ help_watch: "Watch files for changes and rebuild docs on change.",
200
+ help_preserveWatchOutput: "If set, TypeDoc will not clear the screen between compilation runs.",
201
+ help_skipErrorChecking: "Do not run TypeScript's type checking before generating docs.",
202
+ help_help: "Print this message.",
203
+ help_version: "Print TypeDoc's version.",
204
+ help_showConfig: "Print the resolved configuration and exit.",
205
+ help_plugin: "Specify the npm plugins that should be loaded. Omit to load all installed plugins.",
206
+ help_logLevel: "Specify what level of logging should be used.",
207
+ help_treatWarningsAsErrors: "If set, all warnings will be treated as errors.",
208
+ help_treatValidationWarningsAsErrors: "If set, warnings emitted during validation will be treated as errors. This option cannot be used to disable treatWarningsAsErrors for validation warnings.",
209
+ help_intentionallyNotExported: "A list of types which should not produce 'referenced but not documented' warnings.",
210
+ help_requiredToBeDocumented: "A list of reflection kinds that must be documented",
211
+ help_validation: "Specify which validation steps TypeDoc should perform on your generated documentation.",
212
+ // ==================================================================
213
+ // Option validation
214
+ // ==================================================================
215
+ unknown_option_0_you_may_have_meant_1: `Unknown option '{0}' You may have meant:\n\t{1}`,
216
+ option_0_must_be_between_1_and_2: "{0} must be between {1} and {2}",
217
+ option_0_must_be_equal_to_or_greater_than_1: "{0} must be equal to or greater than {1}",
218
+ option_0_must_be_less_than_or_equal_to_1: "{0} must be less than or equal to {1}",
219
+ option_0_must_be_one_of_1: "{0} must be one of {1}",
220
+ flag_0_is_not_valid_for_1_expected_2: "The flag '{0}' is not valid for {1}, expected one of {2}",
221
+ expected_object_with_flag_values_for_0: "Expected an object with flag values for {0} or true/false",
222
+ flag_values_for_0_must_be_booleans: "Flag values for {0} must be a boolean.",
223
+ locales_must_be_an_object: "The 'locales' option must be set to an object which resembles: { en: { theme_implements: \"Implements\" }}",
224
+ exclude_not_documented_specified_0_valid_values_are_1: `excludeNotDocumentedKinds may only specify known values, and invalid values were provided ({0}). The valid kinds are:\n{1}`,
225
+ external_symbol_link_mappings_must_be_object: "externalSymbolLinkMappings must be a Record<package name, Record<symbol name, link>>",
226
+ highlight_theme_0_must_be_one_of_1: "{0} must be one of the following: {1}",
227
+ hostedBaseUrl_must_start_with_http: "hostedBaseUrl must start with http:// or https://",
228
+ option_0_must_be_an_object: "The '{0}' option must be a non-array object.",
229
+ option_0_must_be_a_function: "The '{0}' option must be a function.",
230
+ option_0_must_be_object_with_urls: `{0} must be an object with string labels as keys and URL values.`,
231
+ visibility_filters_only_include_0: `visibilityFilters can only include the following non-@ keys: {0}`,
232
+ visibility_filters_must_be_booleans: `All values of visibilityFilters must be booleans.`,
233
+ option_0_values_must_be_numbers: "All values of {0} must be numbers",
234
+ option_0_values_must_be_array_of_tags: "{0} must be an array of valid tag names.",
235
+ option_0_specified_1_but_only_2_is_valid: `{0} may only specify known values, and invalid values were provided ({0}). The valid sort strategies are:\n{1}`,
236
+ // ReflectionKind singular translations
237
+ kind_project: "Project",
238
+ kind_module: "Module",
239
+ kind_namespace: "Namespace",
240
+ kind_enum: "Enumeration",
241
+ kind_enum_member: "Enumeration Member",
242
+ kind_variable: "Variable",
243
+ kind_function: "Function",
244
+ kind_class: "Class",
245
+ kind_interface: "Interface",
246
+ kind_constructor: "Constructor",
247
+ kind_property: "Property",
248
+ kind_method: "Method",
249
+ kind_call_signature: "Call Signature",
250
+ kind_index_signature: "Index Signature",
251
+ kind_constructor_signature: "Constructor Signature",
252
+ kind_parameter: "Parameter",
253
+ kind_type_literal: "Type Literal",
254
+ kind_type_parameter: "Type Parameter",
255
+ kind_accessor: "Accessor",
256
+ kind_get_signature: "Get Signature",
257
+ kind_set_signature: "Set Signature",
258
+ kind_type_alias: "Type Alias",
259
+ kind_reference: "Reference",
260
+ kind_document: "Document",
261
+ // ReflectionKind plural translations
262
+ kind_plural_project: "Projects",
263
+ kind_plural_module: "Modules",
264
+ kind_plural_namespace: "Namespaces",
265
+ kind_plural_enum: "Enumerations",
266
+ kind_plural_enum_member: "Enumeration Members",
267
+ kind_plural_variable: "Variables",
268
+ kind_plural_function: "Functions",
269
+ kind_plural_class: "Classes",
270
+ kind_plural_interface: "Interfaces",
271
+ kind_plural_constructor: "Constructors",
272
+ kind_plural_property: "Properties",
273
+ kind_plural_method: "Methods",
274
+ kind_plural_call_signature: "Call Signatures",
275
+ kind_plural_index_signature: "Index Signatures",
276
+ kind_plural_constructor_signature: "Constructor Signatures",
277
+ kind_plural_parameter: "Parameters",
278
+ kind_plural_type_literal: "Type Literals",
279
+ kind_plural_type_parameter: "Type Parameters",
280
+ kind_plural_accessor: "Accessors",
281
+ kind_plural_get_signature: "Get Signatures",
282
+ kind_plural_set_signature: "Set Signatures",
283
+ kind_plural_type_alias: "Type Aliases",
284
+ kind_plural_reference: "References",
285
+ kind_plural_document: "Documents",
286
+ // ==================================================================
287
+ // Strings that show up in the default theme
288
+ // ==================================================================
289
+ // Page headings/labels
290
+ theme_implements: "Implements",
291
+ theme_indexable: "Indexable",
292
+ theme_type_declaration: "Type declaration",
293
+ theme_index: "Index",
294
+ theme_hierarchy: "Hierarchy",
295
+ theme_hierarchy_view_full: "view full",
296
+ theme_implemented_by: "Implemented by",
297
+ theme_defined_in: "Defined in",
298
+ theme_implementation_of: "Implementation of",
299
+ theme_inherited_from: "Inherited from",
300
+ theme_overrides: "Overrides",
301
+ theme_returns: "Returns",
302
+ theme_re_exports: "Re-exports",
303
+ theme_renames_and_re_exports: "Renames and re-exports",
304
+ theme_generated_using_typedoc: "Generated using TypeDoc", // If this includes "TypeDoc", theme will insert a link at that location.
305
+ // Search
306
+ theme_preparing_search_index: "Preparing search index...",
307
+ theme_search_index_not_available: "The search index is not available",
308
+ // Right nav bar
309
+ theme_settings: "Settings",
310
+ theme_member_visibility: "Member Visibility",
311
+ theme_theme: "Theme",
312
+ theme_os: "OS",
313
+ theme_light: "Light",
314
+ theme_dark: "Dark",
315
+ theme_on_this_page: "On This Page",
316
+ // aria-label
317
+ theme_search: "Search",
318
+ theme_menu: "Menu",
319
+ theme_permalink: "Permalink",
320
+ };
321
+ // Compiler errors here which says a property is missing indicates that the value on translatable
322
+ // is not a literal string. It should be so that TypeDoc's placeholder replacement detection
323
+ // can validate that all placeholders have been specified.
324
+ const _validateLiteralStrings = {};
325
+ _validateLiteralStrings;
326
+ // Compiler errors here which says a property is missing indicates that the key on translatable
327
+ // contains a placeholder _0/_1, etc. but the value does not match the expected constraint.
328
+ const _validatePlaceholdersPresent = exports.translatable;
329
+ _validatePlaceholdersPresent;
@@ -1,4 +1,4 @@
1
- import type { CommentDisplayPart, DeclarationReflection } from ".";
1
+ import type { CommentDisplayPart, DeclarationReflection, DocumentReflection } from ".";
2
2
  import type { Serializer, JSONOutput, Deserializer } from "../serialization";
3
3
  /**
4
4
  * A category of reflections.
@@ -19,7 +19,7 @@ export declare class ReflectionCategory {
19
19
  /**
20
20
  * All reflections of this category.
21
21
  */
22
- children: DeclarationReflection[];
22
+ children: Array<DeclarationReflection | DocumentReflection>;
23
23
  /**
24
24
  * Create a new ReflectionCategory instance.
25
25
  *
@@ -1,5 +1,5 @@
1
1
  import { ReflectionCategory } from "./ReflectionCategory";
2
- import type { CommentDisplayPart, DeclarationReflection, Reflection } from ".";
2
+ import type { CommentDisplayPart, DeclarationReflection, DocumentReflection, Reflection } from ".";
3
3
  import type { Serializer, JSONOutput, Deserializer } from "../serialization";
4
4
  /**
5
5
  * A group of reflections. All reflections in a group are of the same kind.
@@ -21,7 +21,7 @@ export declare class ReflectionGroup {
21
21
  /**
22
22
  * All reflections of this group.
23
23
  */
24
- children: DeclarationReflection[];
24
+ children: Array<DeclarationReflection | DocumentReflection>;
25
25
  /**
26
26
  * Categories contained within this group.
27
27
  */
@@ -69,10 +69,11 @@ export declare class Comment {
69
69
  static combineDisplayParts(parts: readonly CommentDisplayPart[] | undefined): string;
70
70
  /**
71
71
  * Helper function to convert an array of comment display parts into markdown suitable for
72
- * passing into Marked. `urlTo` will be used to resolve urls to any reflections linked to with
73
- * `@link` tags.
72
+ * passing into markdown-it.
73
+ * @param urlTo - Used to resolve urls to any reflections linked to with `@link` tags..
74
+ * @param useHtml - If set, will produce `<a>` links which can be colored according to the reflection type they are pointed at.
74
75
  */
75
- static displayPartsToMarkdown(parts: readonly CommentDisplayPart[], urlTo: (ref: Reflection) => string): string;
76
+ static displayPartsToMarkdown(parts: readonly CommentDisplayPart[], urlTo: (ref: Reflection) => string, useHtml: boolean): string;
76
77
  /**
77
78
  * Helper utility to clone {@link Comment.summary} or {@link CommentTag.content}
78
79
  */
@@ -118,6 +119,19 @@ export declare class Comment {
118
119
  * Label associated with this reflection, if any (https://tsdoc.org/pages/tags/label/)
119
120
  */
120
121
  label?: string;
122
+ /**
123
+ * Full path to the file where this comment originated from, if any.
124
+ * This field will not be serialized, so will not be present when handling JSON-revived reflections.
125
+ *
126
+ * Note: This field is non-enumerable to make testing comment contents with `deepEqual` easier.
127
+ */
128
+ sourcePath?: string;
129
+ /**
130
+ * Internal discovery ID used to prevent symbol comments from
131
+ * being duplicated on signatures. Only set when the comment was created
132
+ * @internal
133
+ */
134
+ discoveryId?: number;
121
135
  /**
122
136
  * Creates a new Comment instance.
123
137
  */