typedoc 0.27.0-beta.2 → 0.27.0

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.
@@ -189,6 +189,7 @@ module.exports = localeUtils.buildIncompleteTranslation({
189
189
  help_headings: "确定标题是否需要被渲染",
190
190
  help_sluggerConfiguration: "确定渲染的 HTML 中锚点的确定方式",
191
191
  help_navigation: "确定导航侧边栏的组织方式",
192
+ help_includeHierarchySummary: "如果设置,反射的层级一览将被渲染至概述页面。默认为 `true`",
192
193
  help_visibilityFilters: "根据修饰符标签指定内置过滤器和附加过滤器的默认可见性",
193
194
  help_searchCategoryBoosts: "配置搜索以提高所选类别的相关性",
194
195
  help_searchGroupBoosts: "配置搜索以增强所选种类(例如“类别”)的相关性",
@@ -316,6 +317,8 @@ module.exports = localeUtils.buildIncompleteTranslation({
316
317
  theme_type_declaration: "类型声明",
317
318
  theme_index: "索引",
318
319
  theme_hierarchy: "层级",
320
+ theme_hierarchy_summary: "层级一览",
321
+ theme_hierarchy_view_summary: "查看层级一览",
319
322
  theme_implemented_by: "实现于",
320
323
  theme_defined_in: "定义于",
321
324
  theme_implementation_of: "实现了",
@@ -339,6 +342,8 @@ module.exports = localeUtils.buildIncompleteTranslation({
339
342
  theme_copy: "复制",
340
343
  theme_copied: "已复制!",
341
344
  theme_normally_hidden: "由于您的过滤器设置,该成员已被隐藏。",
345
+ theme_hierarchy_expand: "展开",
346
+ theme_hierarchy_collapse: "折叠",
342
347
  tag_defaultValue: "默认值",
343
348
  tag_deprecated: "已被弃用",
344
349
  tag_example: "示例",
@@ -184,6 +184,7 @@ declare const _default: {
184
184
  help_headings: string;
185
185
  help_sluggerConfiguration: string;
186
186
  help_navigation: string;
187
+ help_includeHierarchySummary: string;
187
188
  help_visibilityFilters: string;
188
189
  help_searchCategoryBoosts: string;
189
190
  help_searchGroupBoosts: string;
@@ -311,6 +312,8 @@ declare const _default: {
311
312
  theme_type_declaration: string;
312
313
  theme_index: string;
313
314
  theme_hierarchy: string;
315
+ theme_hierarchy_summary: string;
316
+ theme_hierarchy_view_summary: string;
314
317
  theme_implemented_by: string;
315
318
  theme_defined_in: string;
316
319
  theme_implementation_of: string;
@@ -334,6 +337,8 @@ declare const _default: {
334
337
  theme_copy: string;
335
338
  theme_copied: string;
336
339
  theme_normally_hidden: string;
340
+ theme_hierarchy_expand: string;
341
+ theme_hierarchy_collapse: string;
337
342
  tag_defaultValue: string;
338
343
  tag_deprecated: string;
339
344
  tag_example: string;
@@ -43,6 +43,7 @@ export declare function escapeRegExp(s: string): string;
43
43
  export declare function editDistance(s: string, t: string): number;
44
44
  export declare function getSimilarValues(values: Iterable<string>, compareTo: string): string[];
45
45
  export declare function NonEnumerable(_cls: unknown, context: ClassFieldDecoratorContext): void;
46
+ export declare const TYPEDOC_ROOT: string;
46
47
  export declare function hasBeenLoadedMultipleTimes(): boolean;
47
48
  export declare function getLoadedPaths(): string[];
48
49
  export {};
@@ -63,6 +63,8 @@ export function NonEnumerable(_cls, context) {
63
63
  });
64
64
  });
65
65
  }
66
+ // transform /abs/path/to/typedoc/dist/lib/utils/general -> /abs/path/to/typedoc
67
+ export const TYPEDOC_ROOT = dirname(dirname(dirname(dirname(url.fileURLToPath(import.meta.url)))));
66
68
  /**
67
69
  * This is a hack to make it possible to detect and warn about installation setups
68
70
  * which result in TypeDoc being installed multiple times. If TypeDoc has been loaded
@@ -73,8 +75,7 @@ const pathSymbol = Symbol.for("typedoc_paths");
73
75
  const g = globalThis;
74
76
  g[loadSymbol] = (g[loadSymbol] || 0) + 1;
75
77
  g[pathSymbol] ||= [];
76
- // transform /abs/path/to/typedoc/dist/lib/utils/general -> /abs/path/to/typedoc
77
- g[pathSymbol].push(dirname(dirname(dirname(dirname(url.fileURLToPath(import.meta.url))))));
78
+ g[pathSymbol].push(TYPEDOC_ROOT);
78
79
  export function hasBeenLoadedMultipleTimes() {
79
80
  return g[loadSymbol] !== 1;
80
81
  }
@@ -5,7 +5,7 @@ export { EventDispatcher } from "./events.js";
5
5
  export { isFile, copy, copySync, getCommonDirectory, readFile, writeFile, writeFileSync, discoverInParentDir, discoverPackageJson, } from "./fs.js";
6
6
  export { normalizePath } from "./paths.js";
7
7
  export type { IfInternal, NeverIfInternal, Chars } from "./general.js";
8
- export { assertNever } from "./general.js";
8
+ export { assertNever, TYPEDOC_ROOT } from "./general.js";
9
9
  export { ConsoleLogger, Logger, LogLevel } from "./loggers.js";
10
10
  export { DefaultMap } from "./map.js";
11
11
  export { ArgumentsReader, Option, CommentStyle, Options, PackageJsonReader, ParameterHint, ParameterType, TSConfigReader, TypeDocReader, OptionDefaults, } from "./options/index.js";
@@ -4,7 +4,7 @@ export * from "./enum.js";
4
4
  export { EventDispatcher } from "./events.js";
5
5
  export { isFile, copy, copySync, getCommonDirectory, readFile, writeFile, writeFileSync, discoverInParentDir, discoverPackageJson, } from "./fs.js";
6
6
  export { normalizePath } from "./paths.js";
7
- export { assertNever } from "./general.js";
7
+ export { assertNever, TYPEDOC_ROOT } from "./general.js";
8
8
  export { ConsoleLogger, Logger, LogLevel } from "./loggers.js";
9
9
  export { DefaultMap } from "./map.js";
10
10
  export { ArgumentsReader, Option, CommentStyle, Options, PackageJsonReader, ParameterHint, ParameterType, TSConfigReader, TypeDocReader, OptionDefaults, } from "./options/index.js";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "typedoc",
3
3
  "description": "Create api documentation for TypeScript projects.",
4
- "version": "0.27.0-beta.2",
4
+ "version": "0.27.0",
5
5
  "homepage": "https://typedoc.org",
6
6
  "type": "module",
7
7
  "exports": {