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 +0 -1
- package/dist/render.js +6 -2
- package/dist/types.d.ts +0 -1
- package/package.json +2 -2
package/dist/options.js
CHANGED
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
|
|
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.
|
|
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.
|
|
20
|
+
"typedoc-plugin-markdown": ">=4.0.0-next.4"
|
|
21
21
|
},
|
|
22
22
|
"scripts": {
|
|
23
23
|
"lint": "eslint ./src --ext .ts",
|