Skip to content

Commit d5c0261

Browse files
committed
add doc update script
1 parent 0dcb80c commit d5c0261

File tree

4 files changed

+16
-1
lines changed

4 files changed

+16
-1
lines changed

build/update-docs.sh

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

docs/basic.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Basic Usage
2+
3+
TODO

docs/options.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Router Options
2+
3+
TODO

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
"serve-test": "webpack-dev-server --quiet --config test/unit/webpack.config.js --content-base test/unit --history-api-fallback --host 0.0.0.0 --port 8081",
1313
"e2e-sauce": "nightwatch -c build/nightwatch.sauce.json -e chrome,firefox,ie10,ie11",
1414
"e2e-local": "bash ./build/e2e.sh",
15-
"release": "bash ./build/release.sh"
15+
"release": "bash ./build/release.sh",
16+
"docs": "bash ./build/update-docs.sh"
1617
},
1718
"repository": {
1819
"type": "git",

0 commit comments

Comments
 (0)