docusaurus-plugin-typedoc 0.19.0 → 0.19.2

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.
package/dist/options.js CHANGED
@@ -20,7 +20,6 @@ const DEFAULT_PLUGIN_OPTIONS = {
20
20
  hidePageTitle: true,
21
21
  hideMembersSymbol: false,
22
22
  entryDocument: 'index.md',
23
- plugin: ['none'],
24
23
  watch: false,
25
24
  includeExtension: true,
26
25
  indexSlug: undefined,
package/dist/plugin.js CHANGED
@@ -65,7 +65,7 @@ async function generateTypedoc(context, opts) {
65
65
  const app = new typedoc_1.Application();
66
66
  app.renderer.defineTheme('docusaurus', theme_1.DocusaurusTheme);
67
67
  (0, typedoc_plugin_markdown_1.load)(app);
68
- (0, render_1.bootstrap)(app, options);
68
+ await (0, render_1.bootstrap)(app, options);
69
69
  const project = app.convert();
70
70
  if (!project) {
71
71
  return;
package/dist/render.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { Application, ProjectReflection } from 'typedoc';
2
2
  import { PluginOptions } from './types';
3
- export declare const bootstrap: (app: Application, options: PluginOptions) => void;
3
+ export declare function bootstrap(app: Application, options: PluginOptions): Promise<void>;
4
4
  export declare function render(project: ProjectReflection, outputDirectory: string): Promise<void>;
5
5
  export declare function removeDir(path: string): void;
package/dist/render.js CHANGED
@@ -26,12 +26,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
26
26
  exports.removeDir = exports.render = exports.bootstrap = void 0;
27
27
  const fs = __importStar(require("fs"));
28
28
  const typedoc_1 = require("typedoc");
29
- const bootstrap = (app, options) => {
29
+ async function bootstrap(app, options) {
30
30
  addTypedocReaders(app);
31
31
  addTypedocDeclarations(app);
32
32
  app.renderer.render = render;
33
- app.bootstrap(options);
34
- };
33
+ await app.bootstrapWithPlugins(options);
34
+ }
35
35
  exports.bootstrap = bootstrap;
36
36
  async function render(project, outputDirectory) {
37
37
  var _a;
@@ -41,14 +41,10 @@ async function render(project, outputDirectory) {
41
41
  const output = new typedoc_1.RendererEvent(typedoc_1.RendererEvent.BEGIN, outputDirectory, project);
42
42
  output.urls = this.theme.getUrls(project);
43
43
  this.trigger(output);
44
- await Promise.all(this.preRenderAsyncJobs.map((job) => job(output)));
45
- this.preRenderAsyncJobs = [];
46
44
  if (!output.isDefaultPrevented) {
47
45
  (_a = output.urls) === null || _a === void 0 ? void 0 : _a.forEach((mapping) => {
48
46
  this.renderDocument(...output.createPageEvent(mapping));
49
47
  });
50
- await Promise.all(this.postRenderAsyncJobs.map((job) => job(output)));
51
- this.postRenderAsyncJobs = [];
52
48
  this.trigger(typedoc_1.RendererEvent.END, output);
53
49
  }
54
50
  }
package/dist/types.d.ts CHANGED
@@ -5,7 +5,7 @@ export interface PluginOptions {
5
5
  sidebar: SidebarOptions;
6
6
  readmeTitle?: string;
7
7
  globalsTitle?: string;
8
- plugin: string[];
8
+ plugin?: string[];
9
9
  readme?: string;
10
10
  disableOutputCheck?: boolean;
11
11
  cleanOutputDir?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "docusaurus-plugin-typedoc",
3
- "version": "0.19.0",
3
+ "version": "0.19.2",
4
4
  "description": "A Docusaurus v2 plugin to build API documentation with TypeDoc.",
5
5
  "main": "dist/index.js",
6
6
  "files": [