We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f554dc0 commit 7a4666cCopy full SHA for 7a4666c
1 file changed
packages/docusaurus-plugin-openapi-docs/src/index.ts
@@ -383,11 +383,17 @@ custom_edit_url: null
383
if (item.type === "info") {
384
if (!fs.existsSync(`${outputDir}/${item.id}.info.mdx`)) {
385
try {
386
- fs.writeFileSync(
387
- `${outputDir}/${item.id}.info.mdx`,
388
- utils,
389
- "utf8"
390
- );
+ sidebarOptions?.categoryLinkSource === "info" || infoTemplate // Only use utils template if set to "info" or if infoTemplate is set
+ ? fs.writeFileSync(
+ `${outputDir}/${item.id}.info.mdx`,
+ utils,
+ "utf8"
391
+ )
392
+ : fs.writeFileSync(
393
394
+ view,
395
396
+ );
397
console.log(
398
chalk.green(
399
`Successfully created "${outputDir}/${item.id}.info.mdx"`
0 commit comments