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.
@stainless-api/playgroundsThis 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.
``diff``
+ import playgrounds from '@stainless-api/playgrounds';
// ...
export default defineConfig({
integrations: [
stainlessDocs({
apiReference: {
+ experimentalPlaygrounds: playgrounds,
},
}),
],
});
If you have a Python SDK you will need python3 installed (and python3-virtualenv on Debian)