Skip to content

Commit 6e42da3

Browse files
SunLxyxingyuefeng
authored andcommitted
doc:添加本地文档预览步骤说明
1 parent ae5949c commit 6e42da3

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

packages/core/README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,26 @@ yarn run lib:watch:type # Output type file d.ts
8787
yarn run start # Run the preview document website locally
8888
```
8989

90+
## 本地文档预览
91+
92+
**第一步安装文档包和预览工具**
93+
94+
```bash
95+
npm install @uiw/react-native-doc @kkt/doc -D # yarn add @uiw/react-native-doc @kkt/doc -D
96+
```
97+
98+
**第二步配置命令**
99+
100+
`package.json`文件中配置命令
101+
102+
```json
103+
// ...
104+
"scripts":{
105+
"doc":"kktd @uiw/react-native-doc/doc/build"
106+
}
107+
```
108+
109+
90110
### License
91111

92112
Licensed under the MIT License.

0 commit comments

Comments
 (0)