chore: update site & dumi version (#25)

This commit is contained in:
xrkffgg
2020-12-31 14:27:48 +08:00
committed by GitHub
parent 44240d2ab3
commit b769c20e3f
6 changed files with 4 additions and 94 deletions

View File

@@ -11,6 +11,7 @@ export default defineConfig({
logo:
'https://avatars1.githubusercontent.com/u/73879334?s=200&v=4',
exportStatic: {},
ssr: {},
outputPath: 'docs-dist',
hash: true,
base: `/${name}/`,
@@ -73,10 +74,6 @@ export default defineConfig({
.markdown table {
width: auto !important;
}
.__dumi-default-code-block + table {
margin-top: 16px;
}
`,
]
});

View File

@@ -51,7 +51,7 @@ jobs:
## 💖 Who is using?
<code src="./users.tsx" inline />
<embed src="../README.md#L958-L1003"></embed>
## ⚡ Feedback

View File

@@ -51,7 +51,7 @@ jobs:
## 💖 谁在使用?
<code src="./users.tsx" inline />
<embed src="../README.md#L958-L1003"></embed>
## ⚡ 反馈

View File

@@ -1,71 +0,0 @@
/* eslint-disable react/jsx-no-target-blank */
import React from 'react';
const USERS = [
{
name: 'ant-design',
link: 'https://github.com/ant-design/ant-design',
logo: 'https://avatars1.githubusercontent.com/u/12101536?s=200&v=4',
},
{
name: 'ant-design-vue',
link: 'https://github.com/vueComponent/ant-design-vue',
logo: 'https://avatars2.githubusercontent.com/u/32120805?s=200&v=4',
},
{
name: 'dumi',
link: 'https://github.com/umijs/dumi',
logo: 'https://avatars2.githubusercontent.com/u/33895495?s=200&v=4',
},
{
name: 'umi',
link: 'https://github.com/umijs/umi',
logo: 'https://avatars2.githubusercontent.com/u/33895495?s=200&v=4',
},
{
name: 'vue-request',
link: 'https://github.com/AttoJS/vue-request',
logo: 'https://raw.githubusercontent.com/AttoJS/art/master/vue-request-logo.png',
}
];
export default () => {
return (
<ul style={{ display: 'flex', flexWrap: 'wrap', margin: 0, padding: 0, listStyle: 'none' }}>
{USERS.map((user, i) => (
<li
key={user.link}
style={{
width: 220,
marginRight: i === USERS.length - 1 ? 0 : 16,
marginBottom: 8,
border: '1px solid #eee',
textAlign: 'center',
fontSize: 20,
fontWeight: 600,
borderRadius: 2,
display: 'flex',
alignItems: 'center',
justifyContent: 'center'
}}
>
<a
style={{ display: 'block', color: '#666', padding: '18px', textDecoration: 'none' }}
target="_blank"
href={user.link}
>
<img
width={(user.name && 40) || undefined}
height={(!user.name && 40) || undefined}
style={{ verticalAlign: '-0.32em' }}
src={user.logo}
alt={user.name}
/>
<div style={{ marginTop: 10 }}>{user.name}</div>
</a>
</li>
))}
</ul>
);
};

View File

@@ -34,7 +34,7 @@
"devDependencies": {
"@vercel/ncc": "^0.25.1",
"dotenv": "^8.2.0",
"dumi": "^1.1.0-rc.8",
"dumi": "^1.1.0",
"gh-pages": "^3.1.0",
"react": "^17.0.1"
}

View File

@@ -1,16 +0,0 @@
{
"compilerOptions": {
"target": "esnext",
"moduleResolution": "node",
"baseUrl": "./",
"jsx": "preserve",
"declaration": true,
"skipLibCheck": true,
"esModuleInterop": true,
"paths": {
"@/*": ["src/*"],
"@@/*": ["src/.umi/*"],
"rc-dialog": ["src/index.ts"]
}
}
}