Skip to content

Commit

Permalink
文档::配置vuepress
Browse files Browse the repository at this point in the history
  • Loading branch information
oovm committed Jul 15, 2018
1 parent 7d738aa commit be8273a
Showing 7 changed files with 7,938 additions and 5 deletions.
9 changes: 9 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
root = true

[*]
charset = utf-8
indent_style = tab
indent_size = 4
end_of_line = CRLF
insert_final_newline = true
trim_trailing_whitespace = true
11 changes: 6 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -25,18 +25,19 @@ script:
- nVer=`echo $ver | awk -F. '{printf "%s.%s.%s\n",$1,$2,$3+1}'`
- echo $ver
before_deploy:
- rm -rf .git
- rm -rf Documentation
- rm -rf Packages/_*
- rm -rf .git*
- rm -rf docs
- rm -rf .travis.yml
- cd ..
- tar -cJf ${GITHUB_REPO}.tar.xz ${GITHUB_REPO}
- zip -r ${GITHUB_REPO}.zip ${GITHUB_REPO}
- mv ${GITHUB_REPO}.zip ${GITHUB_REPO}-nVer.paclet
deploy:
provider: releases
api_key:
secure: ${TRAVIS_KEY}
name: AutoBuild-$nVer
file:
- ${GITHUB_REPO}.tar.xz
- ${GITHUB_REPO}-nVer.paclet
skip_cleanup: true
on:
repo: ${GITHUB_USER}/${GITHUB_REPO}
36 changes: 36 additions & 0 deletions docs/.vuepress/config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
module.exports = {
dest: 'BBLink',
locales: {
'/': {
lang: 'zh-CN',
title: 'BBLink',
description: 'Bilibili Connection Established!'
}
},
serviceWorker: true,
themeConfig: {
repo: 'Moe-Net/BilibiliLink',
editLinks: true,
docsDir: 'docs',
markdown: {
lineNumbers: true
},
sidebar: [
{
title: '简介',
children: [
'/Start/',
'/Start/Design.md'
]
},
{
title: '全站爬虫',
children: [
'/Crawler/',
'/Crawler/Video.md'

]
}
]
}
};
25 changes: 25 additions & 0 deletions docs/Readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
home: true
actionText: Get Started →
actionLink: /Start/
footer: MPL2.0 Licensed | Copyright © 2018-2018 GalAster
---

### 一键安装

```haskell
PacletInstall["BilibilliLink","Site"->"http://math.owo.site/"]
```

当然更新和卸载也是一键搞定

```haskell
PacletUpdate["BilibilliLink","Site"->"http://math.owo.site/"]
PacletUninstall["BilibilliLink"]
```

::: warning 兼容性要求
[![Release Vision](https://img.shields.io/badge/release-v0.3.x-ff69b4.svg)](https://github.com/Moe-Net/BilibiliLink/releases)
[![Mathematica](https://img.shields.io/badge/Mathematica-%3E%3D11.3-brightgreen.svg)](https://www.wolfram.com/mathematica/)
[![Mathematica](https://img.shields.io/badge/Encode-UTF8-red.svg)](https://www.wolfram.com/mathematica/)
:::
12 changes: 12 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"devDependencies": {
"vuepress": "^0.10.2"
},
"scripts": {
"docs:dev": "vuepress dev docs",
"docs:build": "vuepress build docs"
},
"dependencies": {
"heroku": "^7.6.0"
}
}
3 changes: 3 additions & 0 deletions static.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"root": "./dist"
}
Loading

0 comments on commit be8273a

Please sign in to comment.