跳转到主要内容
If you use Mintlify’s OpenAPI support for your API reference documentation, add the following to your Stainless config:
openapi.stainless.yml
Configure the OpenAPI setup in your Mintlify docs. To integrate Stainless, modify the GitHub Action that uploads your OpenAPI spec to Stainless so that it pushes the Stainless-enhanced OpenAPI spec into your docs repo like so:
This assumes the following secrets have been uploaded to your GitHub Actions Secrets:
  • secrets.STAINLESS_API_KEY: Your Stainless API key.
  • secrets.API_TOKEN_GITHUB: A GitHub Personal Access Token with permissions to push to your docs repo.