multiple open API spec files #1060
arunkumar413
started this conversation in
General
Replies: 2 comments 2 replies
-
Hi, the
|
Beta Was this translation helpful? Give feedback.
2 replies
-
Hi, I'm also having issues with multiple APIs. I have this plugin config: plugins: [ [ "docusaurus-plugin-openapi-docs", { id: "api", // plugin id docsPluginId: "classic", config: { petstore: { specPath: "examples/petstore.yaml", outputDir: "docs/petstore", downloadUrl: "https://raw.githubusercontent.com/PaloAltoNetworks/docusaurus-template-openapi-docs/main/examples/petstore.yaml", sidebarOptions: { groupPathsBy: "tag", categoryLinkSource: "tag", }, }, other: { specPath: "examples/other.yaml", outputDir: "docs/other", downloadUrl: "https://raw.githubusercontent.com/PaloAltoNetworks/docusaurus-template-openapi-docs/main/examples/petstore.yaml", sidebarOptions: { groupPathsBy: "tag", categoryLinkSource: "tag", } } satisfies OpenApiPlugin.Options, } satisfies Plugin.PluginOptions, }, ], ], My navbar config looks like this: { label: "Petstore API", position: "left", to: "/docs/category/petstore-api", }, { label: "Other API", position: "left", to: "/docs/category/other-api", }, However clicking on the "Other API" link results in a "page not found error". Any hint as to what I'm doing wrong? Thanks a bunch! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi Team,
I have multiple open API specification files and I would like to generate docs for them in a single docusaurus project. How can I achieve it? seems like
specPath
option in the config takes only the single file.Thanks,
Arun
Beta Was this translation helpful? Give feedback.
All reactions