Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit c5d0cbe

Browse files
committedJun 6, 2020
init
1 parent 9b15a57 commit c5d0cbe

File tree

202 files changed

+24170
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

202 files changed

+24170
-0
lines changed
 

‎.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/node_modules/*
2+
.temp

‎deploy.sh

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
#!/usr/bin/env sh
2+
3+
# 确保脚本抛出遇到的错误
4+
set -e
5+
6+
# 生成静态文件
7+
npm run docs:build
8+
9+
# 进入生成的文件夹
10+
cd docs/.vuepress/dist
11+
12+
# 如果是发布到自定义域名
13+
# echo 'www.example.com' > CNAME
14+
15+
git init
16+
git add -A
17+
git commit -m 'deploy'
18+
19+
# 如果发布到 https://<USERNAME>.github.io
20+
# git push -f git@github.com:<USERNAME>/<USERNAME>.github.io.git master
21+
22+
# 如果发布到 https://<USERNAME>.github.io/<REPO>
23+
git push -f git@github.com:BruceYuj/frontend-leetcode.git master:gh-pages
24+
25+
cd -

0 commit comments

Comments
 (0)
Please sign in to comment.