Skip to content

Commit

Permalink
feat(docs): 切换文档工具为 dumi
Browse files Browse the repository at this point in the history
  • Loading branch information
zhiwen.zhao committed Jul 3, 2021
1 parent e6b9c90 commit 79f61c3
Show file tree
Hide file tree
Showing 39 changed files with 2,695 additions and 8,434 deletions.
5 changes: 2 additions & 3 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
template/
*.js
doc-comps
components/**/demo
template
**/demo
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@
/doc-site
/types

# umi
.umi
.umi-production
.env.local


# misc
.DS_Store
.env.local
Expand Down
9 changes: 9 additions & 0 deletions .umirc.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { defineConfig } from 'dumi';

export default defineConfig({
title: 'Happy UI',
mode: 'site',
outputPath: 'doc-site',
exportStatic: {},
dynamicImport: {},
});
27 changes: 0 additions & 27 deletions components/alert/index.mdx

This file was deleted.

73 changes: 0 additions & 73 deletions doc-comps/happy-box/index.tsx

This file was deleted.

193 changes: 0 additions & 193 deletions doc-comps/happy-box/style.ts

This file was deleted.

3 changes: 0 additions & 3 deletions doc-comps/index.ts

This file was deleted.

9 changes: 9 additions & 0 deletions docs/getting-started.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
nav:
title: 快速上手
order: 1
---

# 快速上手

Balabala...
8 changes: 8 additions & 0 deletions docs/help.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
nav:
title: 帮助
---

# 帮助

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

This file was deleted.

3 changes: 0 additions & 3 deletions gatsby-config.js

This file was deleted.

14 changes: 0 additions & 14 deletions gatsby-node.js

This file was deleted.

Loading

0 comments on commit 79f61c3

Please sign in to comment.