Skip to content

Commit dc0fe94

Browse files
committed
add docs related scripts
1 parent e92e0c4 commit dc0fe94

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

build/update-docs.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
cd docs
2+
rm -rf _book
3+
gitbook build
4+
cp assets/circle.yml _book/circle.yml
5+
cp assets/CNAME _book/CNAME
6+
cd _book
7+
git init
8+
git add -A
9+
git commit -m 'update book'
10+
git push -f [email protected]:vuejs/vue-router.git master:gh-pages

package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@
2323
"test": "npm run lint && flow check && npm run test:unit && npm run test:e2e",
2424
"test:unit": "jasmine JASMINE_CONFIG_PATH=test/unit/jasmine.json",
2525
"test:e2e": "node test/e2e/runner.js",
26+
"docs": "cd docs && gitbook serve",
27+
"deploy-docs": "bash ./build/update-docs.sh",
2628
"release": "bash build/release.sh"
2729
},
2830
"devDependencies": {
@@ -43,6 +45,8 @@
4345
"express": "^4.14.0",
4446
"express-urlrewrite": "^1.2.0",
4547
"flow-bin": "^0.31.1",
48+
"gitbook-plugin-edit-link": "^2.0.2",
49+
"gitbook-plugin-github": "^2.0.0",
4650
"jasmine": "2.4.1",
4751
"nightwatch": "^0.9.5",
4852
"nightwatch-helpers": "^1.0.0",

0 commit comments

Comments
 (0)