Skip to content

Commit 827633c

Browse files
committed
feat✨: 更新dumi2.0
1 parent d180d70 commit 827633c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+45290
-742
lines changed

.dumirc.ts

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
import { defineConfig } from 'dumi';
2+
3+
export default defineConfig({
4+
themeConfig: {
5+
name: 'go-admin',
6+
rtl: true,
7+
mode: 'doc',
8+
autoAlias: true,
9+
logo:
10+
'https://raw.githubusercontent.com/wenjianzhang/image/master/img/go-admin.png',
11+
footer: `Open-source MIT Licensed | Copyright © 2020-present
12+
<br />
13+
Powered by go-admin-team`,
14+
navs: {
15+
'en-US': [
16+
null,
17+
{ title: 'GitHub', path: 'https://github.com/go-admin-team/go-admin' },
18+
{
19+
title: 'Changelog',
20+
path: 'https://github.com/go-admin-team/go-admin/releases',
21+
},
22+
],
23+
},
24+
sitemap: {
25+
hostname: 'https://www.go-admin.pro',
26+
},
27+
extraBabelPlugins: [
28+
[
29+
'import',
30+
{
31+
libraryName: 'antd',
32+
libraryDirectory: 'es',
33+
style: 'css',
34+
},
35+
],
36+
],
37+
fastRefresh: {},
38+
hash: true,
39+
scripts: ['https://hm.baidu.com/hm.js?f98a2f382011d17906899de9f676b294'],
40+
// more config: https://d.umijs.org/config
41+
ssr: process.env.NODE_ENV === 'development' ? false : {},
42+
}
43+
});
44+

.editorconfig

100755100644
Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,3 @@ insert_final_newline = true
1111

1212
[*.md]
1313
trim_trailing_whitespace = false
14-
15-
[Makefile]
16-
indent_style = tab

.gitignore

Lines changed: 3 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,4 @@
1-
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2-
3-
# dependencies
4-
/node_modules
5-
/npm-debug.log*
6-
/yarn-error.log
7-
/yarn.lock
8-
/package-lock.json
9-
10-
# production
11-
/dist
12-
13-
# misc
1+
node_modules
2+
.dumi/tmp
3+
.dumi/tmp-production
144
.DS_Store
15-
16-
# umi
17-
.umi
18-
.umi-production
19-
.env.local
20-
21-
# ide
22-
/.vscode
23-
/.idea

.husky/commit-msg

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/env sh
2+
. "$(dirname -- "$0")/_/husky.sh"
3+
4+
npx commitlint --edit "${1}"

.husky/pre-commit

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/env sh
2+
. "$(dirname -- "$0")/_/husky.sh"
3+
4+
npx lint-staged

.prettierignore

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
**/*.svg
2-
**/*.ejs
3-
**/*.html
4-
package.json
5-
.umi
6-
.umi-production
1+
.dumi/tmp
2+
.dumi/tmp-production
3+
*.yaml

.prettierrc.js

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,14 @@
1-
module.exports = require('@umijs/fabric').prettier;
1+
module.exports = {
2+
printWidth: 80,
3+
proseWrap: 'never',
4+
singleQuote: true,
5+
trailingComma: 'all',
6+
overrides: [
7+
{
8+
files: '*.md',
9+
options: {
10+
proseWrap: 'preserve',
11+
},
12+
},
13+
],
14+
};

.umirc.ts renamed to .umirc1.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export default defineConfig({
2424
],
2525
},
2626
sitemap: {
27-
hostname: 'https://doc.go-admin.dev',
27+
hostname: 'https://www.go-admin.pro',
2828
},
2929
extraBabelPlugins: [
3030
[

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) [email protected]
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,20 @@
1-
# dumi app
1+
# go-admin-doc
22

3-
## Getting Started
3+
A static site base on [dumi](https://d.umijs.org).
44

5-
Install dependencies,
5+
## Development
66

77
```bash
8-
$ npm i
9-
```
8+
# install dependencies
9+
$ yarn install
1010

11-
Start the dev server,
11+
# start dev server
12+
$ yarn start
1213

13-
```bash
14-
$ npm start
14+
# build docs
15+
$ yarn run build
1516
```
1617

17-
Build site app,
18+
## LICENSE
1819

19-
```bash
20-
$ npm run build
21-
```
20+
MIT

docs/configure/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
nav:
3-
title: 配置
4-
order: 3
3+
title: 高阶
4+
order: 4
55
title: 业务分库
66
order: 10
77
toc: menu

docs/guide/env.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,44 @@
11
---
22
title: 基础配置
33
order: 40
4-
toc: menu
4+
toc: content
55
---
66

77
# 环境变量
88

9-
<Alert>
9+
:::warning
1010
本章我们主要说明如何配置 Go Modules 开启;如果已经配置完成,请直接忽略本章内容。
1111

12-
</Alert>
12+
:::
1313

1414
## windows 中如何配置
1515

1616
右键`我的电脑`,选择`属性`;
1717

18-
![](https://raw.githubusercontent.com/wenjianzhang/image/master/img/wodediannaoshuxing.png)
18+
<img src="https://raw.githubusercontent.com/wenjianzhang/image/master/img/wodediannaoshuxing.png" width="400px" />
1919

2020
点击`高级系统设置`
2121

22-
![](https://raw.githubusercontent.com/wenjianzhang/image/master/img/xitongshuxing.png)
22+
<img src="https://raw.githubusercontent.com/wenjianzhang/image/master/img/xitongshuxing.png" width="400px" />
2323

2424
点击`环境变量`
2525

26-
![](https://raw.githubusercontent.com/wenjianzhang/image/master/img/huanjingbianliang1.png)
26+
<img src="https://raw.githubusercontent.com/wenjianzhang/image/master/img/huanjingbianliang1.png" width="400px" />
2727

2828
点击`新建`
2929
填写 变量名 `GO111MODULE`, 变量值 `on`
3030

31-
![](https://raw.githubusercontent.com/wenjianzhang/image/master/img/huanjingbianliang2.png)
31+
<img src="https://raw.githubusercontent.com/wenjianzhang/image/master/img/huanjingbianliang2.png" width="400px" />
3232

3333
点击`确定`;
3434
点击`新建`
3535
填写 变量名 `GOPROXY`, 变量值 `https://goproxy.cn`
3636

37-
![](https://raw.githubusercontent.com/wenjianzhang/image/master/img/huanjingbianliang3.png)
37+
<img src="https://raw.githubusercontent.com/wenjianzhang/image/master/img/huanjingbianliang3.png" width="400px" />
3838

3939
点击`确定`;
4040

41-
![](https://raw.githubusercontent.com/wenjianzhang/image/master/img/huanjingbianliang4.png)
41+
<img src="https://raw.githubusercontent.com/wenjianzhang/image/master/img/huanjingbianliang4.png" width="400px" />
4242

4343
点击`确定`;
4444

@@ -58,9 +58,9 @@ $ go env -w GOPROXY=https://goproxy.cn,direct
5858
$ go env -w GO111MODULE=on
5959
```
6060

61-
<Alert type="warning">
61+
:::warning
6262
从哪里获得帮助:
6363

6464
如果你在阅读本教程的过程中有任何疑问,可以前往[提交建议](https://github.com/go-admin-team/go-admin/issues/new)
6565

66-
</Alert>
66+
:::

docs/guide/env.zh-CN.md

Lines changed: 0 additions & 62 deletions
This file was deleted.

0 commit comments

Comments
 (0)