Skip to content

Commit

Permalink
fix: moved docs folder to .storybook
Browse files Browse the repository at this point in the history
  • Loading branch information
christianblandford committed Mar 18, 2022
1 parent 4fbe9a6 commit 40a54eb
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 70 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react'

import Theme from '../Theme'
import Theme from '../../src/Theme'
import { useGlobalTheme } from '../../.storybook/theming/useGlobalTheme'

import './styles/docs.css'
Expand Down
File renamed without changes.
20 changes: 6 additions & 14 deletions src/docs/pages/Welcome.tsx → .storybook/docs/pages/Welcome.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
import React from 'react'
import Button from '../../Button'
import Hero from '../../Hero'
import Link from '../../Link'
import Button from '../../../src/Button'
import Hero from '../../../src/Hero'
import Link from '../../../src/Link'
import '../styles/welcome.css'
import { DocsWrapper } from '../DocsWrapper'
import CodeMockup from '../../CodeMockup'
import { CopyButton } from '../components/CopyButton'
import Tooltip from '../../Tooltip'
import CodeMockup from '../../../src/CodeMockup'
import Tooltip from '../../../src/Tooltip'

const githubMark = (
<svg
Expand Down Expand Up @@ -88,14 +87,7 @@ export const HomePage = () => {

<CodeMockup className="border-base-content w-full max-w-sm flex-1 border-2 border-opacity-20 bg-transparent pb-6 text-left text-current lg:mx-0">
<CodeMockup.Line>
npm i daisyui react-daisyui{' '}
<Tooltip message="Copy">
<CopyButton
color="ghost"
size="xs"
text="npm i daisyui react-daisyui"
/>
</Tooltip>
npm i daisyui react-daisyui <Tooltip message="Copy"></Tooltip>
</CodeMockup.Line>
</CodeMockup>
</div>
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion .storybook/main.cjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module.exports = {
stories: [
'../src/docs/pages/Welcome.stories.mdx',
'./docs/pages/Welcome.stories.mdx',
'../src/**/*.stories.mdx',
'../src/**/*.stories.@(js|jsx|ts|tsx)',
],
Expand Down
54 changes: 0 additions & 54 deletions src/docs/components/CopyButton.tsx

This file was deleted.

0 comments on commit 40a54eb

Please sign in to comment.