-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
195b01b
commit 94f7ba4
Showing
13 changed files
with
125 additions
and
113 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
module.exports = { | ||
stories: [ | ||
'../../stories/src/**/*.stories.(js|tsx|mdx)', | ||
'../../stories/src/**/*.stories.(js|jsx|tsx|mdx)', | ||
], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
examples/gatsby/src/@component-controls/gatsby-theme-stories/config/pages.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/* eslint-disable react/display-name */ | ||
import React from 'react'; | ||
import { ClassicPage, TestingPage } from '@component-controls/pages'; | ||
|
||
export const pages = () => [ | ||
{ | ||
key: 'page', | ||
title: 'Documentation', | ||
render: () => <ClassicPage />, | ||
}, | ||
{ | ||
key: 'test', | ||
title: 'Testing', | ||
render: () => <TestingPage />, | ||
}, | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,20 @@ | ||
module.exports = { | ||
siteMetadata: { | ||
siteTitle: `GraphQL Playground`, | ||
siteTitleAlt: `GraphQL Playground - @lekoarts/gatsby-theme-graphql-playground`, | ||
siteHeadline: `GraphQL Playground - Gatsby Theme from @lekoarts`, | ||
siteUrl: `https://gatsby-theme-graphql-playground.netlify.com`, | ||
siteDescription: `GraphQL Playground to showcase the power of GraphQL. Write your queries and documentation with MDX and display queries in an interactive GraphiQL window. It can source from your localhost or a remote URL (e.g. Codesandbox).`, | ||
siteLanguage: `en`, | ||
siteImage: `/banner.jpg`, | ||
author: `@lekoarts_de`, | ||
graphiQLUrl: `https://711808k40x.sse.codesandbox.io/___graphql`, | ||
basePath: options.basePath, | ||
docsPath: options.docsPath, | ||
}, | ||
|
||
plugins: [ | ||
'gatsby-plugin-react-helmet', | ||
'gatsby-plugin-theme-ui', | ||
'gatsby-plugin-typescript', | ||
], | ||
module.exports = options => { | ||
return { | ||
siteMetadata: { | ||
siteTitle: `Stories`, | ||
siteTitleAlt: `Component controls stories - @lekoarts/gatsby-theme-graphql-playground`, | ||
siteHeadline: `Component controls stories - Gatsby Theme from @atanasster`, | ||
siteUrl: `https://gatsby-theme-stories.netlify.com`, | ||
siteDescription: `Component controls stories. Write your components documentation with MDX and JSX and design, develop, test and review in a single site.`, | ||
siteLanguage: `en`, | ||
author: `@atanasster`, | ||
graphiQLUrl: `https://gatsby-theme-stories.netlify.com/___graphql`, | ||
basePath: options.basePath, | ||
}, | ||
plugins: [ | ||
'gatsby-plugin-react-helmet', | ||
'gatsby-plugin-theme-ui', | ||
'gatsby-plugin-typescript', | ||
].filter(Boolean), | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import { ReactNode } from 'react'; | ||
|
||
export interface PageConfig { | ||
key: string; | ||
title: string; | ||
render: () => ReactNode; | ||
} | ||
|
||
export type PagesConfig = (route: string) => PageConfig[]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
/* eslint-disable react/display-name */ | ||
import React from 'react'; | ||
import { ClassicPage } from '@component-controls/pages'; | ||
import { PagesConfig } from '../components/types'; | ||
|
||
export const pages: PagesConfig = () => [ | ||
{ | ||
key: 'page', | ||
title: 'Documentation', | ||
render: () => <ClassicPage />, | ||
}, | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.