Skip to content

Commit

Permalink
适配脚本API文档解析插件到v3版本
Browse files Browse the repository at this point in the history
  • Loading branch information
Qianshanyao committed May 5, 2024
1 parent 9d7fe40 commit 3af9432
Show file tree
Hide file tree
Showing 4 changed files with 1,382 additions and 2,549 deletions.
76 changes: 40 additions & 36 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,42 +53,46 @@ const config = {
}
},
plugins: [
// ...minecraftTypeNames.map((typeName) => {
// return [
// 'docusaurus-plugin-typedoc',
// /** @type {import("docusaurus-plugin-typedoc/dist/types").PluginOptions} */
// {
// id: `preview-${typeName}`,
// entryPoints: [`./static/typedoc/preview/${typeName}.d.ts`],
// tsconfig: './static/typedoc/preview/tsconfig.json',
// out: `sapi/preview/${typeName}`,
// sidebar: {
// categoryLabel: 'sapiPreviewSidebar',
// collapsed: false,
// position: 0,
// fullNames: true,
// }
// }
// ];
// }),
// ...minecraftTypeNames.map((typeName) => {
// return [
// 'docusaurus-plugin-typedoc',
// // Plugin / TypeDoc options
// {
// id: `stable-${typeName}`,
// entryPoints: [`./static/typedoc/stable/${typeName}.d.ts`],
// tsconfig: './static/typedoc/stable/tsconfig.json',
// out: `sapi/stable/${typeName}`,
// sidebar: {
// categoryLabel: 'sapiStableSidebar',
// collapsed: false,
// position: 0,
// fullNames: true,
// }
// }
// ];
// })
...minecraftTypeNames.map((typeName) => {
return [
'docusaurus-plugin-typedoc',
/** @type {import("docusaurus-plugin-typedoc/dist/types").PluginOptions} */
{
id: `preview-${typeName}`,
entryPoints: [`./static/typedoc/preview/${typeName}.d.ts`],
tsconfig: './static/typedoc/preview/tsconfig.json',
// exclude:['/node_modules/'],
out: `sapi/preview/${typeName}`,
skipErrorChecking: true,
sidebar: {
categoryLabel: 'sapiPreviewSidebar',
collapsed: false,
position: 0,
fullNames: true,
}
}
];
}),
...minecraftTypeNames.map((typeName) => {
return [
'docusaurus-plugin-typedoc',
// Plugin / TypeDoc options
{
id: `stable-${typeName}`,
entryPoints: [`./static/typedoc/stable/${typeName}.d.ts`],
tsconfig: './static/typedoc/stable/tsconfig.json',
// exclude:['/node_modules/'],
out: `sapi/stable/${typeName}`,
skipErrorChecking: true,
sidebar: {
categoryLabel: 'sapiStableSidebar',
collapsed: false,
position: 0,
fullNames: true,
}
}
];
})
],
presets: [
[
Expand Down
Loading

0 comments on commit 3af9432

Please sign in to comment.