From de62439cd65775909da7ba44f59e48c273ba08a0 Mon Sep 17 00:00:00 2001 From: GalAster Date: Sun, 15 Jul 2018 16:57:09 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=87=E6=A1=A3::=E4=BD=BF=E7=94=A8=20Netlif?= =?UTF-8?q?y=20=E6=9E=84=E5=BB=BAweb=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 3 +-- .travis.yml | 19 +++++++++++-------- Readme.md | 2 ++ docs/.vuepress/config.js | 2 +- static.json | 3 --- 5 files changed, 15 insertions(+), 14 deletions(-) delete mode 100644 static.json diff --git a/.gitignore b/.gitignore index 4960b9c..7a1b394 100644 --- a/.gitignore +++ b/.gitignore @@ -10,8 +10,7 @@ yarn-error.log* # Build Temp .DS_Store -dist/ -demo/ +docs/.build/ # Notebook diff --git a/.travis.yml b/.travis.yml index 763b355..695fd9b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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' @@ -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 diff --git a/Readme.md b/Readme.md index b12d8f6..42af149 100644 --- a/Readme.md +++ b/Readme.md @@ -13,6 +13,8 @@ BilibiliLink 提供了一系列获取B站数据的方法, 计划中的内容有, 但并非所有页面上的东西都能获得, 有些看着是文字, 其实是图片, 那就没法抓取了. +[详细文档](https://bilibililink.netlify.com/) + ## Install ![](https://i.loli.net/2018/05/20/5b0170a0f01f9.png) diff --git a/docs/.vuepress/config.js b/docs/.vuepress/config.js index ee8dd3b..ef57da8 100644 --- a/docs/.vuepress/config.js +++ b/docs/.vuepress/config.js @@ -1,5 +1,5 @@ module.exports = { - dest: 'BBLink', + dest: 'docs/.build', locales: { '/': { lang: 'zh-CN', diff --git a/static.json b/static.json deleted file mode 100644 index 9341a75..0000000 --- a/static.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "root": "./dist" -}