-
Notifications
You must be signed in to change notification settings - Fork 222
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
Auto generate OpenAPI spec JSON, generate MDX files and update mint.json #231
Auto generate OpenAPI spec JSON, generate MDX files and update mint.json #231
Conversation
@arielweinberger |
Pretty sure the issue is related to the scope at which the |
@arielweinberger
This is the project.json command:
With ts-node, it works fine on my local machine. |
@SniperBuddy101 It won't be updated. In that case, maybe we should just make a script that generates the spec file + builds the docs, and that spec file is then pushed to source control manually? That'll do for now. |
@arielweinberger I read the Mintlify docs and saw that they had their custom GitHub build mechanism. Don't think we are using that. |
@SniperBuddy101 We actually do! Whenever you run We could also create a new script, called |
Yes, so, an offline script to generate the openapi spec file and update the I was thinking if we can modify the mintlify build process and generate the spec and update the mint.json file. |
I think that's fine for now. You're right. We don't use GH actions to build and deploy Mintlify. I find Mintlify to be very aesthetically pleasing but very limited in options. Might move away from it later. |
@arielweinberger |
You rock! |
What is this pull request for?
This generates an OpenAPI spec JSON file before building the server.
The file is then saved in the
docs
directory.Steps after this:
We have to scrape the JSON file and generate MDX files for the spec JSON.