docusaurus-plugin-typedoc 1.0.0-next.1 → 1.0.0-next.3

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
@@ -22,7 +22,6 @@ const DEFAULT_PLUGIN_OPTIONS = {
22
22
  watch: false,
23
23
  theme: 'docusaurus',
24
24
  enableFrontmatter: true,
25
- enableEmojis: true,
26
25
  };
27
26
  const getPluginOptions = (opts) => {
28
27
  const options = {
package/dist/render.js CHANGED
@@ -41,10 +41,14 @@ 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 = [];
44
46
  if (!output.isDefaultPrevented) {
45
- (_a = output === null || output === void 0 ? void 0 : output.urls) === null || _a === void 0 ? void 0 : _a.forEach((mapping) => {
46
- this.renderDocument(output.createPageEvent(mapping));
47
+ (_a = output.urls) === null || _a === void 0 ? void 0 : _a.forEach((mapping) => {
48
+ this.renderDocument(...output.createPageEvent(mapping));
47
49
  });
50
+ await Promise.all(this.postRenderAsyncJobs.map((job) => job(output)));
51
+ this.postRenderAsyncJobs = [];
48
52
  this.trigger(typedoc_1.RendererEvent.END, output);
49
53
  }
50
54
  }
package/dist/types.d.ts CHANGED
@@ -18,7 +18,6 @@ export interface PluginOptions {
18
18
  includeExtension?: boolean;
19
19
  theme?: string;
20
20
  enableFrontmatter: boolean;
21
- enableEmojis: boolean;
22
21
  }
23
22
  export type FrontMatter = Record<string, string | boolean | number | null> | undefined;
24
23
  export interface SidebarOptions {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "docusaurus-plugin-typedoc",
3
- "version": "1.0.0-next.1",
3
+ "version": "1.0.0-next.3",
4
4
  "description": "A Docusaurus v2 plugin to build API documentation with TypeDoc.",
5
5
  "main": "dist/index.js",
6
6
  "files": [
@@ -17,7 +17,7 @@
17
17
  "homepage": "https://github.com/tgreyuk/typedoc-plugin-markdown/tree/master/packages/docusaurus-plugin-typedoc",
18
18
  "peerDependencies": {
19
19
  "typedoc": ">=0.23.0",
20
- "typedoc-plugin-markdown": ">=4.0.0-next.1"
20
+ "typedoc-plugin-markdown": ">=4.0.0-next.4"
21
21
  },
22
22
  "scripts": {
23
23
  "lint": "eslint ./src --ext .ts",