Skip to content

Commit

Permalink
文档::使用 Netlify 构建web文档
Browse files Browse the repository at this point in the history
  • Loading branch information
oovm committed Jul 15, 2018
1 parent a444044 commit de62439
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 14 deletions.
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ yarn-error.log*

# Build Temp
.DS_Store
dist/
demo/
docs/.build/


# Notebook
Expand Down
19 changes: 11 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ env:
# 还有一个 TRAVIS_KEY 填在 travis settings 里!
# 教程: https://github.com/settings/tokens
before_script:
- ls -all -l
- git config --global user.name "${GITHUB_NAME}"
- git config --global user.email "${GITHUB_MAIL}"
- export TZ='Asia/Shanghai'
Expand All @@ -23,21 +24,23 @@ script:
- cd ${GITHUB_REPO}
- ver=`git tag | awk 'END {print}'`
- nVer=`echo $ver | awk -F. '{printf "%s.%s.%s\n",$1,$2,$3+1}'`
- echo $ver
- echo $nVer
before_deploy:
- rm -rf .git*
- rm -rf .*
- rm -rf *.json
- rm -rf yarn.lock
- rm -rf docs
- rm -rf .travis.yml
- ls && cd ..
- ls -all -l
- cd ..
- tar -cJf ${GITHUB_REPO}.tar.xz ${GITHUB_REPO}
- ls
deploy:
provider: releases
api_key:
secure: ${TRAVIS_KEY}
api_key: ${TRAVIS_KEY}
name: AutoBuild-$nVer
skip_cleanup: true
file:
- ${GITHUB_REPO}.tar.xz
skip_cleanup: true
prerelease: true
on:
repo: ${GITHUB_USER}/${GITHUB_REPO}
tags: true
2 changes: 2 additions & 0 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ BilibiliLink 提供了一系列获取B站数据的方法, 计划中的内容有,

但并非所有页面上的东西都能获得, 有些看着是文字, 其实是图片, 那就没法抓取了.

[详细文档](https://bilibililink.netlify.com/)

## Install
![](https://i.loli.net/2018/05/20/5b0170a0f01f9.png)

Expand Down
2 changes: 1 addition & 1 deletion docs/.vuepress/config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module.exports = {
dest: 'BBLink',
dest: 'docs/.build',
locales: {
'/': {
lang: 'zh-CN',
Expand Down
3 changes: 0 additions & 3 deletions static.json

This file was deleted.

0 comments on commit de62439

Please sign in to comment.