You can integrate Speakeasy-generated code snippets from your SDKs directly into your Mintlify API reference documentation. SDK usage snippets are shown in the interactive playground of your Mintlify-powered documentation.Documentation Index
Fetch the complete documentation index at: https://mintlify-sam-fix-thumbnails.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Speakeasy SDK Repository Changes
In your Speakeasy SDK repos, add the following to thetargets section of your .speakeasy/workflow.yaml file to ensure code samples are automatically produced alongside SDK generations.
.speakeasy/workflow.yaml
Mintlify Docs Repository Changes
The workflow files produced will automatically bundle your source OpenAPI spec and Speakeasy code samples into a single output file,openapi.yaml. Mintlify will use this output file when constructing your API reference.
Interactive CLI Set Up
Run the following commands to set up the.speakeasy/workflow.yaml and .github/workflows/sdk_generation.yaml files through the interactive Speakeasy CLI.
SPEAKEASY_API_KEY as a repository secret to your Minlify repo under Settings > Secrets & Variables > Actions. Find the Speakeasy API key in the Speakeasy dashboard under the API Keys tab.
Manual Set Up
Alternatively, you can manually set up the following files in your Mintlify docs repo..speakeasy/workflow.yaml
.speakeasy/workflows/sdk_generation.yaml
SPEAKEASY_API_KEY as a repository secret to your Minlify repo under Settings > Secrets & Variables > Actions. Find the Speakeasy API key in the Speakeasy dashboard under the API Keys tab.