Skip to content

Commit

Permalink
增加部署脚本
Browse files Browse the repository at this point in the history
  • Loading branch information
softbaddog committed Aug 12, 2018
1 parent 3e01d07 commit 7263c96
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 8 deletions.
25 changes: 25 additions & 0 deletions deploy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#!/usr/bin/env sh

# abort on errors
set -e

# build
npm run build

# navigate into the build output directory
cd docs/.vuepress/dist

# if you are deploying to a custom domain
# echo 'www.example.com' > CNAME

git init
git add -A
git commit -m 'deploy'

# if you are deploying to https://<USERNAME>.github.io
git push -f [email protected]:softbaddog/softbaddog.github.io.git master

# if you are deploying to https://<USERNAME>.github.io/<REPO>
# git push -f [email protected]:<USERNAME>/<REPO>.git master:gh-pages

cd -
20 changes: 12 additions & 8 deletions docs/.vuepress/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,37 +46,41 @@ module.exports = {
text: "学习",
items: [
{
text: "LiteOS 内核",
text: "LiteOS 内核详解",
link: "/kernel/"
},
{
text: "LiteOS SDK",
text: "LiteOS SDK详解",
link: "/sdk/"
},
{
text: "LiteOS 移植",
text: "LiteOS 移植手册",
link: "/porting/"
},
{
text: "API 参考",
link: "http://localhost:8080/api-reference/"
text: "LiteOS API 参考",
link: "http://liteos.github.io/api-reference/"
},
]
},
{
text: "教程",
items: [
{
text: "LiteOS 内核实战",
text: "LiteOS 内核实战训练",
link: "/tutorials/kernel/"
},
{
text: "IoT 场景化例程",
text: "NB-IoT 开发板场景化实操",
link: "/tutorials/scene/"
},
{
text: "NB-IoT 端到端开发",
text: "NB-IoT OneButton 端到端开发",
link: "/step-by-step/nb-iot/"
},
{
text: "朱老师 NB-IoT 视频课程",
link: "https://ke.qq.com/course/320960"
}
]
},
Expand Down

0 comments on commit 7263c96

Please sign in to comment.