From 94ef43ac1fae339793d773c8ba339ab1314861b3 Mon Sep 17 00:00:00 2001 From: Kathryn Isabelle Lawrence Date: Fri, 14 Feb 2025 10:49:11 -0800 Subject: [PATCH 1/2] add playground config per page --- api-playground/mdx/configuration.mdx | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/api-playground/mdx/configuration.mdx b/api-playground/mdx/configuration.mdx index 48a1d39ae..76bc01193 100644 --- a/api-playground/mdx/configuration.mdx +++ b/api-playground/mdx/configuration.mdx @@ -56,6 +56,15 @@ Mintlify allows you to define your API endpoints using a combination of `docs.js If you have `server` configured in [docs.json](/settings/global), you can use relative paths like `/v1/endpoint`. + + You can also override the globally-defined display mode for the API playground on specific pages by adding `playground` at the top of the MDX file: + + ```md + --- + title: 'Create new user' + api: 'POST https://api.mintlify.com/user' + playground: 'none' + ``` From cdd001e720fd7c15c5634d7a9b53ccf4e366d83d Mon Sep 17 00:00:00 2001 From: Kathryn Isabelle Lawrence Date: Fri, 14 Feb 2025 10:49:40 -0800 Subject: [PATCH 2/2] reword --- api-playground/mdx/configuration.mdx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/api-playground/mdx/configuration.mdx b/api-playground/mdx/configuration.mdx index 76bc01193..9ef4eb106 100644 --- a/api-playground/mdx/configuration.mdx +++ b/api-playground/mdx/configuration.mdx @@ -57,14 +57,15 @@ Mintlify allows you to define your API endpoints using a combination of `docs.js - You can also override the globally-defined display mode for the API playground on specific pages by adding `playground` at the top of the MDX file: + You can also override the globally-defined display mode for the API playground per page by adding `playground` at the top of the MDX file: ```md --- title: 'Create new user' api: 'POST https://api.mintlify.com/user' playground: 'none' - ``` + ``` +