Skip to content

Commit

Permalink
Fix paths to code samples
Browse files Browse the repository at this point in the history
  • Loading branch information
vocksel committed Nov 15, 2024
1 parent db58078 commit 886387b
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 39 deletions.
20 changes: 7 additions & 13 deletions docs/docs/frameworks/fusion.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -37,18 +37,12 @@ import FusionButtonStoryStoryteller from "!!raw-loader!/docs/code-samples/Fusion

<Tabs groupId="main">
<TabItem value="default" label="Default" default>
<CodeBlock
language="lua"
title="Project/Components/Button.story.luau"
>
<CodeBlock language="lua" title="Project/Components/Button.story.luau">
{FusionButtonStory}
</CodeBlock>
</TabItem>
<TabItem value="storyteller" label="Storyteller">
<CodeBlock
language="lua"
title="Project/Components/Button.story.luau"
>
<CodeBlock language="lua" title="Project/Components/Button.story.luau">
{FusionButtonStoryStoryteller}
</CodeBlock>
</TabItem>
Expand Down
20 changes: 7 additions & 13 deletions docs/docs/frameworks/react.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -37,18 +37,12 @@ Flipbook supports Roblox's transpilation of React 17 through the use of [jsdotlu

<Tabs groupId="main">
<TabItem value="default" label="Default" default>
<CodeBlock
language="lua"
title="Project/Components/Button.story.luau"
>
<CodeBlock language="lua" title="Project/Components/Button.story.luau">
{ReactButtonStory}
</CodeBlock>
</TabItem>
<TabItem value="storyteller" label="Storyteller">
<CodeBlock
language="lua"
title="Project/Components/Button.story.luau"
>
<CodeBlock language="lua" title="Project/Components/Button.story.luau">
{ReactButtonStoryStoryteller}
</CodeBlock>
</TabItem>
Expand Down
20 changes: 7 additions & 13 deletions docs/docs/frameworks/roact.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -41,18 +41,12 @@ Roact is an archived repository that we consider to be legacy software. We recom

<Tabs groupId="main">
<TabItem value="default" label="Default" default>
<CodeBlock
language="lua"
title="Project/Components/Button.story.luau"
>
<CodeBlock language="lua" title="Project/Components/Button.story.luau">
{RoactButtonStory}
</CodeBlock>
</TabItem>
<TabItem value="storyteller" label="Storyteller">
<CodeBlock
language="lua"
title="Project/Components/Button.story.luau"
>
<CodeBlock language="lua" title="Project/Components/Button.story.luau">
{RoactButtonStoryStoryteller}
</CodeBlock>
</TabItem>
Expand Down

0 comments on commit 886387b

Please sign in to comment.