-
Notifications
You must be signed in to change notification settings - Fork 247
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
Add --config
and [siteDir]
option
#490
Comments
🎉 Thanks for opening your first issue here! Welcome to the community! |
Hi @Dr-Electron, so if I am understanding correctly, when you pass these options to For example: |
Hmm. So you are suggesting it should work? 😅 |
Hi @Dr-Electron, was really just wanting to confirm the issue/behavior you are observing. I am not too familiar with the |
Got it. So as I said the |
Thanks for the clarification. Not exactly sure how to support this since the Docusaurus config is read in before the OpenAPI plugin. I suspect this is more of a limitation in the Docusaurus CLI than it is a feature gap in our plugin. Perhaps the best step forward would be to open a feature request to request moving/supporting the Today, it only appears to be supported at the command level, i.e. |
I never really used the docusaurus cli or looked at its code. So to me it seemed this would be a plugin issue. So thanks for clarifying this. |
Sure, no problem at all. Maybe the Docusaurus team has some idea of how we could support this functionality - please feel free to reference this issue. Thanks! |
Hello, does anyone have an update on this? |
In facebook/docusaurus#10685 I'm adding escape hatch env variables that could help you execute plugin code in other (non-cwd) siteDir and using custom config file names:
This is likely not the final implementation but the only idea I have without a breaking change. Should be in the upcoming v3.6.2 |
Is your feature request related to a problem?
Currently, we can't run the gen-api command in the same folder as we have the config, and our config has a different name.
For the built-in start/build command in Docusaurus we therefore use the above-mentioned arguments.
Describe the solution you'd like
Would be nice to pass the
siteDir
andconfig
option to the gen-api command as wellThe text was updated successfully, but these errors were encountered: