@stainless-api/playgrounds
v0.1.0-beta.29
Published
This is a plugin for `@stainless-api/docs` that adds a "Play" button to code snippets, allowing users to edit and run them in their browser.
Readme
@stainless-api/playgrounds
This is a plugin for @stainless-api/docs that adds a "Play" button to code snippets, allowing users to edit and run them in their browser.
Usage
+ import playgrounds from '@stainless-api/playgrounds';
// ...
export default defineConfig({
integrations: [
stainlessDocs({
apiReference: {
+ experimentalPlaygrounds: playgrounds,
},
}),
],
});Notes
If you have a Python SDK you will need python3 installed (and python3-virtualenv on Debian)
