Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to use in an existing Docusaurus project #181

Open
zia-inceptus opened this issue May 30, 2022 · 5 comments
Open

Ability to use in an existing Docusaurus project #181

zia-inceptus opened this issue May 30, 2022 · 5 comments

Comments

@zia-inceptus
Copy link

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.

@bourdakos1
Copy link
Member

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

@zia-inceptus
Copy link
Author

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 #160

@bourdakos1
Copy link
Member

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

@bhupendra1011
Copy link

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

@bhupendra1011
Copy link

bhupendra1011 commented Mar 3, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants