docusaurus-openapi icon indicating copy to clipboard operation
docusaurus-openapi copied to clipboard

Ability to use in an existing Docusaurus project

Open zia-inceptus opened this issue 3 years ago • 5 comments

Hi, first of all, thanks for this awesome package, it looks really promising but I wanted to know if I can add this plugin to an already created Docusarus project rather than creating a whole new project with this tool, I wasn't able to find any relevant docs for this. Thanks.

zia-inceptus avatar May 30 '22 15:05 zia-inceptus

Hey thanks :) you can install the preset “ docusaurus-preset-openapi” and update the Docusaurus config with relevant information. check out the demo folder to see a concrete example.

the readme for the preset package has more detailed info: https://github.com/cloud-annotations/docusaurus-openapi/tree/main/packages/docusaurus-preset-openapi

bourdakos1 avatar May 30 '22 16:05 bourdakos1

Thanks for the quick reply :) It seems that the preset is not compatible with Docusaurus beta.21, I'm getting the same issue as mentioned in issue https://github.com/cloud-annotations/docusaurus-openapi/issues/160

zia-inceptus avatar Jun 01 '22 10:06 zia-inceptus

Yea, I haven’t had time to update :(

bourdakos1 avatar Jun 01 '22 14:06 bourdakos1

If I try to use with classic docs plugin id , the plugin docusaurus-preset-openapi gives below error : image

bhupendra1011 avatar Mar 03 '23 05:03 bhupendra1011

But if I try to use https://www.npmjs.com/package/docusaurus-plugin-openapi , I get below error on Docusaurus - 2.2.0 image

bhupendra1011 avatar Mar 03 '23 05:03 bhupendra1011