docusaurus-plugin-typedoc 1.4.0 → 1.4.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.
- package/dist/plugin.js +4 -2
- package/package.json +8 -4
package/dist/plugin.js
CHANGED
|
@@ -10,8 +10,10 @@ export default async function pluginDocusaurus(context, opts) {
|
|
|
10
10
|
.description(`[docusaurus-plugin-typedoc] Generate TypeDoc docs independently of the Docusaurus build process.`)
|
|
11
11
|
.action(async () => {
|
|
12
12
|
context.siteConfig?.plugins?.forEach((pluginConfig) => {
|
|
13
|
-
// Check PluginConfig is typed to [
|
|
14
|
-
if (pluginConfig &&
|
|
13
|
+
// Check PluginConfig is typed to ['docusaurus-plugin-typedoc', PluginOptions]
|
|
14
|
+
if (pluginConfig &&
|
|
15
|
+
pluginConfig[0].includes('docusaurus-plugin-typedoc') &&
|
|
16
|
+
typeof pluginConfig[1] === 'object') {
|
|
15
17
|
generateTypedoc(context, pluginConfig[1]);
|
|
16
18
|
}
|
|
17
19
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "docusaurus-plugin-typedoc",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.1",
|
|
4
4
|
"description": "A Docusaurus plugin to integrate TypeDoc ( + typedoc-plugin-markdown ) into the Docusaurus CLI.",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": "./dist/index.js"
|
|
@@ -23,18 +23,22 @@
|
|
|
23
23
|
"prebuild": "rm -rf dist && copyfiles --up 1 ./src/**/*.cjs ./dist/",
|
|
24
24
|
"prepublishOnly": "npm run lint && npm run build",
|
|
25
25
|
"build": "tsc",
|
|
26
|
-
"pretest": "
|
|
27
|
-
"test": "
|
|
26
|
+
"pretest": "rm -rf ./test/out && docusaurus generate-typedoc",
|
|
27
|
+
"test": "mocha --config ./mocha.config.json",
|
|
28
28
|
"build-and-test": "npm run build && npm test"
|
|
29
29
|
},
|
|
30
30
|
"author": "Thomas Grey",
|
|
31
31
|
"license": "MIT",
|
|
32
32
|
"peerDependencies": {
|
|
33
|
-
"typedoc-plugin-markdown": ">=4.
|
|
33
|
+
"typedoc-plugin-markdown": ">=4.8.0"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"typedoc-docusaurus-theme": "^1.4.0"
|
|
37
37
|
},
|
|
38
|
+
"devDependencies": {
|
|
39
|
+
"@docusaurus/core": "^3.8.1",
|
|
40
|
+
"@docusaurus/types": "^3.8.1"
|
|
41
|
+
},
|
|
38
42
|
"keywords": [
|
|
39
43
|
"docusaurus",
|
|
40
44
|
"typedoc",
|