From 886387b3f59ee8d5aaa87fbe0ef3e81d8dadecb0 Mon Sep 17 00:00:00 2001 From: Marin Minnerly Date: Fri, 15 Nov 2024 09:36:09 -0800 Subject: [PATCH] Fix paths to code samples --- docs/docs/frameworks/fusion.mdx | 20 +++++++------------- docs/docs/frameworks/react.mdx | 20 +++++++------------- docs/docs/frameworks/roact.mdx | 20 +++++++------------- 3 files changed, 21 insertions(+), 39 deletions(-) diff --git a/docs/docs/frameworks/fusion.mdx b/docs/docs/frameworks/fusion.mdx index 30781ccd..0d1f6014 100644 --- a/docs/docs/frameworks/fusion.mdx +++ b/docs/docs/frameworks/fusion.mdx @@ -2,11 +2,11 @@ import Tabs from "@theme/Tabs"; import TabItem from "@theme/TabItem"; import CodeBlock from "@theme/CodeBlock"; -import FusionStorybook from "!!raw-loader!/docs/code-samples/Fusion/Fusion.storybook.luau"; -import FusionStorybookStoryteller from "!!raw-loader!/docs/code-samples/FusionStoryteller/Fusion.storybook.luau"; -import FusionButton from "!!raw-loader!/docs/code-samples/Fusion/FusionButton.luau"; -import FusionButtonStory from "!!raw-loader!/docs/code-samples/Fusion/FusionButton.story.luau"; -import FusionButtonStoryStoryteller from "!!raw-loader!/docs/code-samples/FusionStoryteller/FusionButton.story.luau"; +import FusionStorybook from "!!raw-loader!@site/../code-samples/src/Fusion/Fusion.storybook.luau"; +import FusionStorybookStoryteller from "!!raw-loader!@site/../code-samples/src/FusionStoryteller/Fusion.storybook.luau"; +import FusionButton from "!!raw-loader!@site/../code-samples/src/Fusion/FusionButton.luau"; +import FusionButtonStory from "!!raw-loader!@site/../code-samples/src/Fusion/FusionButton.story.luau"; +import FusionButtonStoryStoryteller from "!!raw-loader!@site/../code-samples/src/FusionStoryteller/FusionButton.story.luau"; # Fusion @@ -37,18 +37,12 @@ import FusionButtonStoryStoryteller from "!!raw-loader!/docs/code-samples/Fusion - + {FusionButtonStory} - + {FusionButtonStoryStoryteller} diff --git a/docs/docs/frameworks/react.mdx b/docs/docs/frameworks/react.mdx index fdbc94c3..5e3057ac 100644 --- a/docs/docs/frameworks/react.mdx +++ b/docs/docs/frameworks/react.mdx @@ -2,11 +2,11 @@ import Tabs from "@theme/Tabs"; import TabItem from "@theme/TabItem"; import CodeBlock from "@theme/CodeBlock"; -import ReactStorybook from "!!raw-loader!/docs/code-samples/React/React.storybook.luau"; -import ReactStorybookStoryteller from "!!raw-loader!/docs/code-samples/ReactStoryteller/React.storybook.luau"; -import ReactButton from "!!raw-loader!/docs/code-samples/React/ReactButton.luau"; -import ReactButtonStory from "!!raw-loader!/docs/code-samples/React/ReactButton.story.luau"; -import ReactButtonStoryStoryteller from "!!raw-loader!/docs/code-samples/ReactStoryteller/ReactButton.story.luau"; +import ReactStorybook from "!!raw-loader!@site/../code-samples/src/React/React.storybook.luau"; +import ReactStorybookStoryteller from "!!raw-loader!@site/../code-samples/src/ReactStoryteller/React.storybook.luau"; +import ReactButton from "!!raw-loader!@site/../code-samples/src/React/ReactButton.luau"; +import ReactButtonStory from "!!raw-loader!@site/../code-samples/src/React/ReactButton.story.luau"; +import ReactButtonStoryStoryteller from "!!raw-loader!@site/../code-samples/src/ReactStoryteller/ReactButton.story.luau"; # React @@ -37,18 +37,12 @@ Flipbook supports Roblox's transpilation of React 17 through the use of [jsdotlu - + {ReactButtonStory} - + {ReactButtonStoryStoryteller} diff --git a/docs/docs/frameworks/roact.mdx b/docs/docs/frameworks/roact.mdx index c09cd81e..8a4e671e 100644 --- a/docs/docs/frameworks/roact.mdx +++ b/docs/docs/frameworks/roact.mdx @@ -2,11 +2,11 @@ import Tabs from "@theme/Tabs"; import TabItem from "@theme/TabItem"; import CodeBlock from "@theme/CodeBlock"; -import RoactStorybook from "!!raw-loader!/docs/code-samples/Roact/Roact.storybook.luau"; -import RoactStorybookStoryteller from "!!raw-loader!/docs/code-samples/RoactStoryteller/Roact.storybook.luau"; -import RoactButton from "!!raw-loader!/docs/code-samples/Roact/RoactButton.luau"; -import RoactButtonStory from "!!raw-loader!/docs/code-samples/Roact/RoactButton.story.luau"; -import RoactButtonStoryStoryteller from "!!raw-loader!/docs/code-samples/RoactStoryteller/RoactButton.story.luau"; +import RoactStorybook from "!!raw-loader!@site/../code-samples/src/Roact/Roact.storybook.luau"; +import RoactStorybookStoryteller from "!!raw-loader!@site/../code-samples/src/RoactStoryteller/Roact.storybook.luau"; +import RoactButton from "!!raw-loader!@site/../code-samples/src/Roact/RoactButton.luau"; +import RoactButtonStory from "!!raw-loader!@site/../code-samples/src/Roact/RoactButton.story.luau"; +import RoactButtonStoryStoryteller from "!!raw-loader!@site/../code-samples/src/RoactStoryteller/RoactButton.story.luau"; # Roact @@ -41,18 +41,12 @@ Roact is an archived repository that we consider to be legacy software. We recom - + {RoactButtonStory} - + {RoactButtonStoryStoryteller}