Skip to content

Commit 01f67dd

Browse files
committed
update doc
1 parent 3f76284 commit 01f67dd

File tree

7 files changed

+14
-7
lines changed

7 files changed

+14
-7
lines changed

docs/LANGS.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
* [中文](zh-cn/)
2+
* [English](en/)

docs/en/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Introduction

docs/en/SUMMARY.MD

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Summary
2+
3+
* [Introduction](README.md)
4+

docs/Build Command.md renamed to docs/zh-cn/Build Command.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ npm run svg
2121
使用 **./tools/cli.js** 添加组件。
2222
```text
2323
选项:
24-
--version, -v 显示版本号 [布尔]
25-
--help, -h 显示帮助信息 [布尔]
24+
--version, -v 显示版本号 [布尔]
25+
--help, -h 显示帮助信息 [布尔]
2626
--type, -t The component type
27-
--path, -p The target path [默认值: "src/components"]
27+
--root, -r The component root path [默认值: "src/components"]
2828
```
2929
默认路径是从 **src/components** 开始的
3030
```bash
@@ -51,10 +51,10 @@ yarn cli add tags/hello
5151
yarn cli add views/home/list -- -t tag
5252
```
5353

54-
### -p
55-
**-p** 参数是指定根路径。如果你要创建的组件不在 **src/components**, 你可以通过设置该参数改变根路径。
54+
### -r
55+
**-r** 参数是指定根路径。如果你要创建的组件不在 **src/components**, 你可以通过设置该参数改变根路径。
5656

5757
```bash
58-
yarn cli add tags/hello -- -p demo/components
58+
yarn cli add tags/hello -- -r demo/components
5959
```
6060
以上会在 demo/components/tags/hello 创建一个 tag 类型的组件。
File renamed without changes.
File renamed without changes.

docs/SUMMARY.md renamed to docs/zh-cn/SUMMARY.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22

33
* [简介](README.md)
44
* [项目结构](Project Structure.md)
5-
* [构建命令](Build Command.md)
5+
* [命令](Build Command.md)
66

0 commit comments

Comments
 (0)