Skip to content

Commit ef5a394

Browse files
authored
Fix multi plugin bug (#69)
1 parent 8e4e941 commit ef5a394

File tree

4 files changed

+120
-306
lines changed

4 files changed

+120
-306
lines changed

demo/docusaurus.config.js

+21
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,25 @@ const config = {
4242
],
4343
],
4444

45+
plugins: [
46+
[
47+
"docusaurus-plugin-openapi",
48+
{
49+
id: "issue",
50+
path: "examples/openapi-issue-21.json",
51+
routeBasePath: "issue-21",
52+
},
53+
],
54+
[
55+
"docusaurus-plugin-openapi",
56+
{
57+
id: "cos",
58+
path: "examples/openapi-cos.json",
59+
routeBasePath: "cos",
60+
},
61+
],
62+
],
63+
4564
themeConfig:
4665
/** @type {import('docusaurus-preset-openapi').ThemeConfig} */
4766
({
@@ -59,6 +78,8 @@ const config = {
5978
label: "Tutorial",
6079
},
6180
{ to: "/api", label: "API", position: "left" },
81+
{ to: "/issue-21", label: "Issue 21", position: "left" },
82+
{ to: "/cos", label: "COS", position: "left" },
6283
{ to: "/blog", label: "Blog", position: "left" },
6384
{
6485
href: "https://github.com/facebook/docusaurus",

0 commit comments

Comments
 (0)