diff --git a/modules/ROOT/pages/common/nav.adoc b/modules/ROOT/pages/common/nav.adoc index 9b6a374fa..23f8c0d17 100644 --- a/modules/ROOT/pages/common/nav.adoc +++ b/modules/ROOT/pages/common/nav.adoc @@ -25,7 +25,7 @@ Live Playgrounds ** link:{{navprefix}}/rest-playground[How to use] //** link:{{navprefix}}/graphql-play-ground[GraphQL Playground] //** +++REST API v1 Playground+++ -* link:{{navprefix}}/theme-builder[Theme Builder] +* +++Theme Builder+++ ** link:{{navprefix}}/theme-builder-doc[How to use] diff --git a/src/components/DevDocTemplate/index.tsx b/src/components/DevDocTemplate/index.tsx index 4edeaef04..5b39cb647 100644 --- a/src/components/DevDocTemplate/index.tsx +++ b/src/components/DevDocTemplate/index.tsx @@ -51,7 +51,6 @@ import { } from '../../constants/uiConstants'; import t from '../../utils/lang-utils'; import { getHTMLFromComponent } from '../../utils/react-utils'; -import { ThemeBuilder } from './playGround/ThemeBuilder'; import VersionIframe from '../VersionIframe'; const DevDocTemplate: FC = (props) => { @@ -148,10 +147,7 @@ const DevDocTemplate: FC = (props) => { const isApiPlayground = params[TS_PAGE_ID_PARAM] === CUSTOM_PAGE_ID.API_PLAYGROUND; - const isThemeBuilder = - params[TS_PAGE_ID_PARAM] === CUSTOM_PAGE_ID.THEME_BUILDER; - - const isVersionedIframe = VERSION_DROPDOWN.some( +const isVersionedIframe = VERSION_DROPDOWN.some( (version) => props?.pageContext?.iframeUrl && version.iframeUrl === props?.pageContext?.iframeUrl, @@ -168,7 +164,6 @@ const DevDocTemplate: FC = (props) => { const isPlayGround = isGQPlayGround || isApiPlayground || - isThemeBuilder || isVersionedIframe; const isAskDocsPage = params[TS_PAGE_ID_PARAM] === CUSTOM_PAGE_ID.ASK_DOCS; @@ -546,11 +541,7 @@ const DevDocTemplate: FC = (props) => { /> ); - if (isThemeBuilder) { - return ; - } - - if (isVersionedIframe) { +if (isVersionedIframe) { return ( = (props) => { - const playgroundUrl = 'https://theme-builder-embed-prod.vercel.app/'; - - return ( -
- -