Skip to content

Commit 3051041

Browse files
committed
docs(docs,deploy-docs.yml): docs folder: 整理
1 parent 24d97c0 commit 3051041

File tree

21 files changed

+71
-9425
lines changed

21 files changed

+71
-9425
lines changed

.github/workflows/deploy-docs.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Build and Deploy Docs
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
jobs:
8+
build-and-deploy:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout 🛎️
12+
uses: actions/checkout@master
13+
14+
- name: Use Node.js 12
15+
uses: actions/setup-node@v2-beta
16+
with:
17+
node-version: '12'
18+
19+
- name: Install and Build 🔧
20+
run: |
21+
cd docs
22+
npm install
23+
npm run docs:build
24+
25+
- name: Deploy 🚀
26+
uses: JamesIves/[email protected]
27+
with:
28+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
29+
BRANCH: gh-pages
30+
FOLDER: docs/docs/.vuepress/dist
31+

.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,5 +260,3 @@ paket-files/
260260
__pycache__/
261261
*.pyc
262262

263-
# VuePress
264-
docs/.vuepress/dist/

docs/.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# VuePress
2+
docs/.vuepress/dist/
3+
4+
package-lock.json

docs/README.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
---
2-
home: true
3-
heroImage: /images/logo.gif
4-
heroText: SimCaptcha
5-
tagline: 文档构建中
6-
actionText: 快速上手 →
7-
actionLink: /Guide/
8-
features:
9-
- title: 简洁至上
10-
details: 以 约定优于配置 为中心的项目结构,以最少的配置帮助你专注于业务。
11-
- title: 易扩展
12-
details: 享受 面向接口编程 的开发体验,使用 DI 注入验证组件,同时可以开发自定义验证。
13-
- title: 开箱即用
14-
details: SimCaptcha(社区) 为流行前端框架提供了开箱即用的解决方案, 不再需要自己实现, 请见 sim-captcha-js, vue-sim-captcha。
15-
footer: MIT Licensed | Copyright © 2020-present yiyun
16-
---
1+
# 介绍
172

3+
本项目文档采用 `VuePress` 构建
184

5+
6+
# Build
7+
8+
```shell
9+
npm install
10+
```
11+
12+
```shell
13+
npm run docs:dev
14+
```
15+
16+
```shell
17+
npm run docs:build
18+
```

deploy-docs.sh renamed to docs/deploy-docs.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
npm run docs:build
88

99
# 进入生成的文件夹
10-
cd docs/.vuepress/dist
10+
cd .vuepress/dist
1111

1212
# 如果是发布到自定义域名
1313
# echo 'www.example.com' > CNAME
File renamed without changes.

0 commit comments

Comments
 (0)