Skip to content

Commit cb4b4ab

Browse files
committed
doc: 在线文档预览
1 parent 7d5cdd4 commit cb4b4ab

4 files changed

Lines changed: 15 additions & 6 deletions

File tree

HelloWorld/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
"api": "mocker ./mocker",
1111
"api2": "NO_PROXY=true mocker ./mocker",
1212
"prettier": "prettier --write '**/*.{js,jsx,tsx,ts,less,md,json}'",
13-
"lint": "eslint . --ext .js,.jsx,.ts,.tsx"
13+
"lint": "eslint . --ext .js,.jsx,.ts,.tsx",
14+
"doc":"kktd @uiw/react-native-doc/doc/build"
1415
},
1516
"dependencies": {
1617
"@react-native-async-storage/async-storage": "~1.17.11",
@@ -33,7 +34,7 @@
3334
"react-redux": "7.2.6",
3435
"redux": "4.1.2",
3536
"react-query":"~3.39.2",
36-
"kkt":"^7.4.1",
37+
"@kkt/doc":"^1.0.0",
3738
"@uiw/react-native-doc":"^3.0.7"
3839
},
3940
"devDependencies": {

package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,11 @@
2525
"**/@react-native-async-storage",
2626
"**/@react-native-async-storage/**",
2727
"**/@babel",
28-
"**/@babel/**"
28+
"**/@babel/**",
29+
"**/@kkt/doc",
30+
"**/@kkt/doc/**",
31+
"**/@uiw/react-native-doc",
32+
"**/@uiw/react-native-doc/**"
2933
]
3034
}
3135
}

template/README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,10 @@ npx react-native init ProjectName --template ${TEMPLATE_NAME}
9696
# but will use TEMPLATE_NAME custom template
9797
npx react-native@${VERSION} init ProjectName --template ${TEMPLATE_NAME}
9898
```
99-
99+
## @uiw/react-native-uiw文档本地预览
100+
```bash
101+
yarn run doc
102+
```
100103
## Dependencies
101104

102105
```bash

template/template/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
"api": "mocker ./mocker",
1111
"api2": "NO_PROXY=true mocker ./mocker",
1212
"prettier": "prettier --write '**/*.{js,jsx,tsx,ts,less,md,json}'",
13-
"lint": "eslint . --ext .js,.jsx,.ts,.tsx"
13+
"lint": "eslint . --ext .js,.jsx,.ts,.tsx",
14+
"doc":"kktd @uiw/react-native-doc/doc/build"
1415
},
1516
"dependencies": {
1617
"@react-native-async-storage/async-storage": "~1.17.11",
@@ -33,7 +34,7 @@
3334
"react-redux": "7.2.6",
3435
"redux": "4.1.2",
3536
"react-query":"~3.39.2",
36-
"kkt":"^7.4.1",
37+
"@kkt/doc":"^1.0.0",
3738
"@uiw/react-native-doc":"^3.0.7"
3839
},
3940
"devDependencies": {

0 commit comments

Comments
 (0)