-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
funnyli
committed
Sep 15, 2020
1 parent
46f399a
commit 3a0dcb9
Showing
2 changed files
with
27 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/usr/bin/env sh | ||
|
||
# 确保脚本抛出遇到的错误 | ||
set -e | ||
|
||
# 生成静态文件 | ||
npm run docs:build | ||
|
||
# 进入生成的文件夹 | ||
cd docs/.vuepress/dist | ||
|
||
# 如果是发布到自定义域名 | ||
# echo 'www.example.com' > CNAME | ||
|
||
git init | ||
git add -A | ||
git commit -m 'deploy' | ||
|
||
# 如果发布到 https://<USERNAME>.github.io | ||
# git push -f [email protected]:<USERNAME>/<USERNAME>.github.io.git master | ||
|
||
# 如果发布到 https://<USERNAME>.github.io/<REPO> | ||
# git push -f [email protected]:<USERNAME>/<REPO>.git master:gh-pages | ||
|
||
cd - |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,5 +22,6 @@ module.exports = { | |
markdown: { | ||
extracHeaders: ['h2', 'h3', 'h4'] | ||
} | ||
} | ||
}, | ||
base: '/docs/' | ||
} |