docusaurus-plugin-typedoc 1.1.0 → 1.1.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.
@@ -26,7 +26,7 @@ export function getPluginOptions(context, opts) {
26
26
  },
27
27
  plugin: [
28
28
  ...new Set([
29
- ...['typedoc-plugin-markdown', 'docusaurus-plugin-typedoc'],
29
+ ...['typedoc-plugin-markdown', 'docusaurus-plugin-typedoc/typedoc'],
30
30
  ...(opts.plugin || []),
31
31
  ]),
32
32
  ],
@@ -31,14 +31,12 @@ async function generateTypedoc(context, opts) {
31
31
  if (!fs.existsSync(outputDir)) {
32
32
  fs.mkdirSync(outputDir, { recursive: true });
33
33
  }
34
+ const { plugin, ...options } = getPluginOptions(context, opts);
34
35
  // spawn typedoc process and pass docusaurus.config options as a string
35
36
  spawnSync('typedoc', [
37
+ ...plugin.flatMap((plugin) => ['--plugin', plugin]),
36
38
  '--docusaurusConfigOptions',
37
- `${JSON.stringify(getPluginOptions(context, opts))}`,
38
- '--plugin',
39
- 'typedoc-plugin-markdown',
40
- '--plugin',
41
- 'docusaurus-plugin-typedoc/typedoc',
39
+ `${JSON.stringify(options)}`,
42
40
  ], {
43
41
  stdio: 'inherit',
44
42
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "docusaurus-plugin-typedoc",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "A Docusaurus plugin to integrate TypeDoc ( + typedoc-plugin-markdown ) into a Docusaurus project.",
5
5
  "exports": {
6
6
  ".": "./dist/index.js",