-
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.
feat: renderExample with selected test framework
- Loading branch information
1 parent
a42fc50
commit 7b1c2fd
Showing
30 changed files
with
941 additions
and
111 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 |
---|---|---|
|
@@ -8,6 +8,7 @@ | |
"node": "current" | ||
} | ||
} | ||
] | ||
], | ||
"@babel/preset-react" | ||
] | ||
} | ||
} |
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,78 @@ | ||
import { loadConfigurations } from '../src'; | ||
|
||
describe('load both configurations', () => { | ||
test('load', () => { | ||
const config = loadConfigurations(__dirname, 'fixtures/.config'); | ||
expect(config).toMatchObject({ | ||
title: 'Component controls', | ||
description: | ||
'A next-generation tool to create blazing-fast documentation sites', | ||
language: 'en', | ||
author: '@component-controls', | ||
pages: { | ||
story: { | ||
label: 'Docs', | ||
navSidebar: true, | ||
contextSidebar: true, | ||
topMenu: true, | ||
basePath: 'docs/', | ||
sideNav: { | ||
storyPaths: true, | ||
collapseSingle: true, | ||
}, | ||
}, | ||
blog: { | ||
label: 'Blog', | ||
contextSidebar: true, | ||
topMenu: true, | ||
indexHome: true, | ||
basePath: 'blogs/', | ||
}, | ||
author: { | ||
label: 'Authors', | ||
basePath: 'authors/', | ||
}, | ||
page: { | ||
label: 'Page', | ||
container: null, | ||
basePath: 'pages/', | ||
}, | ||
tags: { | ||
label: 'Tags', | ||
basePath: 'tags/', | ||
}, | ||
}, | ||
siteRoot: '/', | ||
siteMap: { | ||
pages: { | ||
home: { | ||
priority: 1, | ||
}, | ||
index: { | ||
priority: 0.8, | ||
}, | ||
doc: { | ||
priority: 0.5, | ||
}, | ||
}, | ||
}, | ||
categories: ['author', 'tags'], | ||
ignore: [ | ||
'readme.md', | ||
'changelog.md', | ||
'code_of_conduct.md', | ||
'contributing.md', | ||
'license.md', | ||
], | ||
search: { | ||
searchingModule: '@component-controls/search-fusejs', | ||
}, | ||
stories: ['../*.docs.tsx'], | ||
instrument: { | ||
components: { | ||
tests: true, | ||
}, | ||
}, | ||
}); | ||
}); | ||
}); |
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,8 @@ | ||
module.exports = { | ||
stories: ['../*.docs.tsx'], | ||
instrument: { | ||
components: { | ||
tests: true, | ||
}, | ||
}, | ||
}; |
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,43 @@ | ||
/** @jsx jsx */ | ||
import { jsx, Box, Text } from 'theme-ui'; | ||
import { RunOnlyConfiguration } from '@component-controls/core'; | ||
import { Link } from '@component-controls/components'; | ||
|
||
const config: RunOnlyConfiguration = { | ||
title: `Component controls`, | ||
description: `A next-generation tool to create blazing-fast documentation sites`, | ||
language: `en`, | ||
author: `@component-controls`, | ||
toolbar: { | ||
right: [ | ||
{ | ||
node: ( | ||
<Link href="https://twitter.com/atanasster"> | ||
<Box | ||
sx={{ | ||
mr: 1, | ||
display: 'flex', | ||
flexDirection: 'row', | ||
alignItems: 'center', | ||
}} | ||
> | ||
<svg | ||
viewBox="0 0 24 20" | ||
xmlns="http://www.w3.org/2000/svg" | ||
width={16} | ||
height={16} | ||
fill="currentColor" | ||
sx={{ pt: '1px' }} | ||
> | ||
<path d="M23.954 4.569c-.885.389-1.83.654-2.825.775 1.014-.611 1.794-1.574 2.163-2.723-.951.555-2.005.959-3.127 1.184-.896-.959-2.173-1.559-3.591-1.559-2.717 0-4.92 2.203-4.92 4.917 0 .39.045.765.127 1.124C7.691 8.094 4.066 6.13 1.64 3.161c-.427.722-.666 1.561-.666 2.475 0 1.71.87 3.213 2.188 4.096-.807-.026-1.566-.248-2.228-.616v.061c0 2.385 1.693 4.374 3.946 4.827-.413.111-.849.171-1.296.171-.314 0-.615-.03-.916-.086.631 1.953 2.445 3.377 4.604 3.417-1.68 1.319-3.809 2.105-6.102 2.105-.39 0-.779-.023-1.17-.067 2.189 1.394 4.768 2.209 7.557 2.209 9.054 0 13.999-7.496 13.999-13.986 0-.209 0-.42-.015-.63.961-.689 1.8-1.56 2.46-2.548l-.047-.02z"></path> | ||
</svg> | ||
<Text sx={{ ml: '2px' }}>twitter</Text> | ||
</Box> | ||
</Link> | ||
), | ||
}, | ||
], | ||
}, | ||
}; | ||
|
||
export default config; |
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
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.