Skip to content

Commit 79f61c3

Browse files
author
zhiwen.zhao
committed
feat(docs): 切换文档工具为 dumi
1 parent e6b9c90 commit 79f61c3

39 files changed

+2695
-8434
lines changed

.eslintignore

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1+
template/
12
*.js
2-
doc-comps
3-
components/**/demo
4-
template
3+
**/demo

.gitignore

+6
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,12 @@
2020
/doc-site
2121
/types
2222

23+
# umi
24+
.umi
25+
.umi-production
26+
.env.local
27+
28+
2329
# misc
2430
.DS_Store
2531
.env.local

.umirc.ts

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import { defineConfig } from 'dumi';
2+
3+
export default defineConfig({
4+
title: 'Happy UI',
5+
mode: 'site',
6+
outputPath: 'doc-site',
7+
exportStatic: {},
8+
dynamicImport: {},
9+
});

components/alert/index.mdx

-27
This file was deleted.

doc-comps/happy-box/index.tsx

-73
This file was deleted.

doc-comps/happy-box/style.ts

-193
This file was deleted.

doc-comps/index.ts

-3
This file was deleted.

docs/getting-started.md

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
nav:
3+
title: 快速上手
4+
order: 1
5+
---
6+
7+
# 快速上手
8+
9+
Balabala...

docs/help.md

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
nav:
3+
title: 帮助
4+
---
5+
6+
# 帮助
7+
8+
Balabala...

docs/index.md

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
title: Happy UI
3+
hero:
4+
title: Happy UI
5+
desc: 文档站点基于 dumi 生成
6+
actions:
7+
- text: 快速上手
8+
link: /getting-started
9+
features:
10+
- icon: https://gw.alipayobjects.com/zos/bmw-prod/881dc458-f20b-407b-947a-95104b5ec82b/k79dm8ih_w144_h144.png
11+
title: 特性 1
12+
desc: Balabala
13+
- icon: https://gw.alipayobjects.com/zos/bmw-prod/d60657df-0822-4631-9d7c-e7a869c2f21c/k79dmz3q_w126_h126.png
14+
title: 特性 2
15+
desc: Balabala
16+
- icon: https://gw.alipayobjects.com/zos/bmw-prod/d1ee0c6f-5aed-4a45-a507-339a4bfe076c/k7bjsocq_w144_h144.png
17+
title: 特性 3
18+
desc: Balabala
19+
footer: Open-source MIT Licensed | Copyright © 2020<br />Powered by [dumi](https://d.umijs.org)
20+
---

doczrc.js

-6
This file was deleted.

gatsby-config.js

-3
This file was deleted.

gatsby-node.js

-14
This file was deleted.

0 commit comments

Comments
 (0)