-
-
Notifications
You must be signed in to change notification settings - Fork 7
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
a2a6ed1
commit ee3cd5f
Showing
86 changed files
with
526 additions
and
665 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
import { defineConfig } from 'dumi'; | ||
|
||
import { description, homepage, name } from './package.json'; | ||
|
||
const isProduction = process.env.NODE_ENV === 'production'; | ||
const isWin = process.platform === 'win32'; | ||
|
||
const themeConfig = { | ||
actions: [ | ||
{ | ||
link: homepage, | ||
openExternal: true, | ||
text: 'Github', | ||
}, | ||
{ | ||
link: '/components/readme-hero', | ||
text: 'Get Started', | ||
type: 'primary', | ||
}, | ||
], | ||
apiHeader: { | ||
docUrl: false, | ||
match: ['/components'], | ||
pkg: name, | ||
sourceUrl: false, | ||
}, | ||
description: description, | ||
footer: 'Made with 🤯 by LobeHub', | ||
giscus: { | ||
category: 'Q&A', | ||
categoryId: 'DIC_kwDOJloKoM4CXsCu', | ||
repo: 'lobehub/lobe-ui', | ||
repoId: 'R_kgDOJloKoA', | ||
}, | ||
name: 'ReadmeGenerator', | ||
nav: [ | ||
{ link: '/components/readme-hero', title: 'Generator' }, | ||
{ link: 'https://simpleicons.org/', mode: 'override', title: 'Icons' }, | ||
{ link: '/changelog', title: 'Changelog' }, | ||
], | ||
socialLinks: { | ||
discord: 'https://discord.gg/AYFPHvv2jT', | ||
github: homepage, | ||
}, | ||
title: 'ReadmeGenerator - LobeHub', | ||
}; | ||
|
||
export default defineConfig({ | ||
base: '/', | ||
define: { | ||
'process.env': process.env, | ||
}, | ||
extraBabelPlugins: [ | ||
'babel-plugin-antd-style', | ||
[ | ||
'babel-plugin-styled-components', | ||
{ | ||
displayName: process.env.NODE_ENV === 'development', | ||
minify: isProduction, | ||
pure: true, | ||
transpileTemplateLiterals: true, | ||
}, | ||
], | ||
], | ||
favicons: ['https://npm.elemecdn.com/@lobehub/assets-favicons/assets/favicon.ico'], | ||
locales: [{ id: 'en-US', name: 'English' }], | ||
mfsu: isWin ? undefined : {}, | ||
npmClient: 'pnpm', | ||
publicPath: '/', | ||
styles: [ | ||
`html, body { background: transparent; } | ||
@media (prefers-color-scheme: dark) { | ||
html, body { background: #000; } | ||
}`, | ||
], | ||
themeConfig, | ||
title: 'ReadmeGenerator', | ||
}); |
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 was deleted.
Oops, something went wrong.
Empty file.
Empty file.
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 @@ | ||
--- | ||
title: Changelog | ||
description: New updates and improvements to @lobehub/ui | ||
nav: | ||
title: Changelog | ||
order: 999 | ||
--- | ||
|
||
<embed src="../CHANGELOG.md"></embed> |
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,7 @@ | ||
--- | ||
hero: | ||
title: Readme <b>Generator</b> | ||
description: Generate an aesthetically pleasing product README through intelligent methods | ||
--- | ||
|
||
<code src="./index.tsx" inline></code> |
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,5 @@ | ||
import { Center } from 'react-layout-kit'; | ||
|
||
export default () => { | ||
return <Center gap={16}></Center>; | ||
}; |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
File renamed without changes.
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,18 @@ | ||
--- | ||
nav: components | ||
group: readme | ||
title: Contributing | ||
order: 6 | ||
--- | ||
|
||
## Generator | ||
|
||
<br/> | ||
|
||
<code src="./index.tsx" inline></code> | ||
|
||
<br/> | ||
|
||
## Feedback | ||
|
||
<br/> |
3 changes: 1 addition & 2 deletions
3
...s/readme/features/Custom/Contributing.tsx → src/ReadmeContributing/index.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
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,18 @@ | ||
--- | ||
nav: components | ||
group: readme | ||
title: Credits | ||
order: 6 | ||
--- | ||
|
||
## Generator | ||
|
||
<br/> | ||
|
||
<code src="./index.tsx" inline></code> | ||
|
||
<br/> | ||
|
||
## Feedback | ||
|
||
<br/> |
File renamed without changes.
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,18 @@ | ||
--- | ||
nav: components | ||
group: readme | ||
title: Development | ||
order: 4 | ||
--- | ||
|
||
## Generator | ||
|
||
<br/> | ||
|
||
<code src="./index.tsx" inline></code> | ||
|
||
<br/> | ||
|
||
## Feedback | ||
|
||
<br/> |
3 changes: 1 addition & 2 deletions
3
...es/readme/features/Custom/Development.tsx → src/ReadmeDevelopment/index.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
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,18 @@ | ||
--- | ||
nav: components | ||
group: readme | ||
title: Features | ||
order: 2 | ||
--- | ||
|
||
## Generator | ||
|
||
<br/> | ||
|
||
<code src="./index.tsx" inline></code> | ||
|
||
<br/> | ||
|
||
## Feedback | ||
|
||
<br/> |
File renamed without changes.
Oops, something went wrong.