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

Makes the OpenAPI docs generation more robust #14175

Merged
merged 1 commit into from
Jun 20, 2024

Conversation

chrisguidry
Copy link
Collaborator

I learned something new with pre-commit: when you use the default
pass_filenames: true, all of the affected files are split into chunks and sent
to many instances of your hook in parallel. Running mintlify-scrape in
parallel is pretty flakey and has been giving people fits. Since this hook
doesn't need the specific filenames, we can turn off that option so it will
just invoke the script once.

Additionally, I'm using a more robust way to install mintlify-scrape with
the npx command, which will install it to the right place in a way that
doesn't require installing it globally.

I learned something new with `pre-commit`: when you use the default
`pass_filenames: true`, all of the affected files are split into chunks and sent
to many instances of your hook in parallel.  Running `mintlify-scrape` in
parallel is pretty flakey and has been giving people fits.  Since this hook
doesn't need the specific filenames, we can turn off that option so it will
just invoke the script once.

Additionally, I'm using a more robust way to install `mintlify-scrape` with
the `npx` command, which will install it to the right place in a way that
doesn't require installing it globally.
@chrisguidry chrisguidry requested a review from a team as a code owner June 20, 2024 13:48
@chrisguidry chrisguidry merged commit be8cbda into main Jun 20, 2024
7 checks passed
@chrisguidry chrisguidry deleted the more-robust-openapi-docs branch June 20, 2024 14:16
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

Successfully merging this pull request may close these issues.

None yet

2 participants