Open glennsc opened 1 day ago
Hi @glennsc , do you mean to have something like this? https://vitepress-openapi-starter.vercel.app/reference.html (Repository)
In that case, you are looking for All Operations Layout, and specifying OpenAPI Specification as shown in the Multiple Specs Example. You can also configure the FrontMatter as shown in the Starter Repository.
I know maybe it's not well documented. PRs are welcome!
What would you like?
Vitepress-openapi is beautiful. I have a doc site already, and I would like to add the vitepress-openapi docs as a menu item on my top navigation menu.
Why is this needed?
There is often a lot of material besides the openapi specification that one needs for documentation. I'd like to be able to include the openapi site within another site to keep everything together.
How could it be implemented?
I'm not knowledgeable enough to know. Right now I am embedding
openapi-explorer
in a simplelayout: page
page associated with the menu item:This seems very awkward, and it's difficult to get the styles to match Vitepress's theme. Might there be a way to extend the default theme with a layout called
openapi
and somehow link my spec file in the front matter?Other information
I appreciate this work very much. Thanks for considering the suggestion.