This changes the workflow so that you need to run node index.js in order to update to update the OpenAPI spec.
Recommendation: Add the script logic into either the last step in the the CI/CD workflow where OpenAPI spec is generated or as a GitHub action on every update to the docs repo.
Summary
This PR adds the script for automatically adding the ElevenLabs SDK snippets to the request examples via x-codeSamples. You can check out the example at https://elevenlabs-sdk.mintlify.app/api-reference/text-to-speech.
Note
Please make sure to add a
.env
with theFERN_API_KEY
How it works
openapi.json
into the repoopenapi.json
Note
This changes the workflow so that you need to run
node index.js
in order to update to update the OpenAPI spec.Recommendation: Add the script logic into either the last step in the the CI/CD workflow where OpenAPI spec is generated or as a GitHub action on every update to the docs repo.