Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion modules/ROOT/pages/common/nav.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Live Playgrounds
** link:{{navprefix}}/rest-playground[How to use]
//** link:{{navprefix}}/graphql-play-ground[GraphQL Playground]
//** +++<a href="{{previewPrefix}}/api/rest/playgroundV1" target="_blank">REST API v1 Playground</a>+++
* link:{{navprefix}}/theme-builder[Theme Builder]
* +++<a href="https://try-everywhere.thoughtspot.cloud/v2/#/everywhere/playground/theme-builder" target="_blank">Theme Builder</a>+++
** link:{{navprefix}}/theme-builder-doc[How to use]


Expand Down
13 changes: 2 additions & 11 deletions src/components/DevDocTemplate/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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<DevDocTemplateProps> = (props) => {
Expand Down Expand Up @@ -148,10 +147,7 @@ const DevDocTemplate: FC<DevDocTemplateProps> = (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,
Expand All @@ -168,7 +164,6 @@ const DevDocTemplate: FC<DevDocTemplateProps> = (props) => {
const isPlayGround =
isGQPlayGround ||
isApiPlayground ||
isThemeBuilder ||
isVersionedIframe;

const isAskDocsPage = params[TS_PAGE_ID_PARAM] === CUSTOM_PAGE_ID.ASK_DOCS;
Expand Down Expand Up @@ -546,11 +541,7 @@ const DevDocTemplate: FC<DevDocTemplateProps> = (props) => {
/>
);

if (isThemeBuilder) {
return <ThemeBuilder backLink={backLink} />;
}

if (isVersionedIframe) {
if (isVersionedIframe) {
return (
<VersionIframe
iframeUrl={props.pageContext.iframeUrl}
Expand Down
27 changes: 0 additions & 27 deletions src/components/DevDocTemplate/playGround/ThemeBuilder.tsx

This file was deleted.

1 change: 0 additions & 1 deletion src/configs/doc-configs.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@ module.exports = {
API_PLAYGROUND: 'restV2-playground',
ASK_DOCS: 'ask-docs',
GQ_PLAYGROUND: 'graphql-play-ground',
THEME_BUILDER: 'theme-builder',
},
CLUSTER_TYPES: {
PROD: 'PROD',
Expand Down
Loading