File tree 2 files changed +28
-3
lines changed
2 files changed +28
-3
lines changed Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env sh
2
+ # sudo chmod a+x deploy.sh
3
+
4
+ # 确保脚本抛出遇到的错误
5
+ set -e
6
+
7
+ # 生成静态文件
8
+ npm run docs:build
9
+
10
+ # 进入生成的文件夹
11
+ cd docs/.vuepress/dist
12
+
13
+ # 如果是发布到自定义域名
14
+ # echo 'www.example.com' > CNAME
15
+
16
+ git init
17
+ git add -A
18
+ git commit -m ' deploy'
19
+
20
+ # 如果发布到 https://<USERNAME>.github.io
21
+ # git push -f [email protected] :<USERNAME>/<USERNAME>.github.io.git master
22
+
23
+ # 如果发布到 https://<USERNAME>.github.io/<REPO>
24
+ git push -f https://github.com/MPComponent/mpvue-weui.git master:gh-pages
25
+
26
+ cd -
Original file line number Diff line number Diff line change 1
1
module . exports = {
2
2
base : '/mpvue-weui/' ,
3
- dest : 'dist' ,
4
3
title : 'mpvue-weui' ,
5
4
description : '基于 mpvue 的 weui 框架' ,
6
5
head : [
@@ -57,8 +56,8 @@ module.exports = {
57
56
collapsable : false ,
58
57
children : [
59
58
'feedbackComponent/picker' ,
60
- 'feedbackComponent/cityPicker ' ,
61
- 'feedbackComponent/datePicker ' ,
59
+ 'feedbackComponent/citypicker ' ,
60
+ 'feedbackComponent/datepicker ' ,
62
61
'feedbackComponent/actionsheet' ,
63
62
'feedbackComponent/modal'
64
63
]
You can’t perform that action at this time.
0 commit comments