diff --git a/app/libraries/index.tsx b/app/libraries/index.tsx index d8a6b481..72684c12 100644 --- a/app/libraries/index.tsx +++ b/app/libraries/index.tsx @@ -53,6 +53,8 @@ export type Library = { scarfId?: string defaultDocs?: string handleRedirects?: (href: string) => void + hideCodesandboxUrl?: true + hideStackblitzUrl?: true } export const libraries = [ diff --git a/app/libraries/router.ts b/app/libraries/router.ts index 9279670b..02a4047f 100644 --- a/app/libraries/router.ts +++ b/app/libraries/router.ts @@ -21,4 +21,5 @@ export const routerProject: Library = { frameworks: ['react'], scarfId: '3d14fff2-f326-4929-b5e1-6ecf953d24f4', defaultDocs: 'framework/react/overview', + hideCodesandboxUrl: true, } diff --git a/app/routes/$libraryId.$version.docs.framework.$framework.examples.$.tsx b/app/routes/$libraryId.$version.docs.framework.$framework.examples.$.tsx index f5a2ab83..f1859f78 100644 --- a/app/routes/$libraryId.$version.docs.framework.$framework.examples.$.tsx +++ b/app/routes/$libraryId.$version.docs.framework.$framework.examples.$.tsx @@ -52,6 +52,9 @@ export default function Example() { isDark ? 'dark' : 'light' }` + const hideCodesandbox = library.hideCodesandboxUrl + const hideStackblitz = library.hideStackblitzUrl + return (