Skip to content

Commit 03a6c58

Browse files
auto update
1 parent dbad8d3 commit 03a6c58

23 files changed

+251
-789
lines changed

README.md

Lines changed: 2 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,6 @@
1212

1313
> A gitbook plugin for showing the differences between the codes within markdown
1414
15-
[English](./README.md) | [中文](./README_zh.md)
16-
17-
### 🏠 [Homepage](https://github.com/snowdreams1006/gitbook-plugin-diff#readme)
18-
19-
- Github : [https://snowdreams1006.github.io/gitbook-plugin-diff/](https://snowdreams1006.github.io/gitbook-plugin-diff/)
20-
- GitLab: [https://snowdreams1006.gitlab.io/gitbook-plugin-diff/](https://snowdreams1006.gitlab.io/gitbook-plugin-diff/)
21-
- Gitee : [https://snowdreams1006.gitee.io/gitbook-plugin-diff/](https://snowdreams1006.gitee.io/gitbook-plugin-diff/)
22-
2315
## Screenshot
2416

2517
- usage
@@ -495,36 +487,6 @@ gitbook serve
495487

496488
## Examples
497489

498-
- Official documentation configuration file
499-
500-
> [https://github.com/snowdreams1006/gitbook-plugin-diff/blob/master/docs/book.json](https://github.com/snowdreams1006/gitbook-plugin-diff/blob/master/docs/book.json)
501-
502-
```json
503-
{
504-
"plugins": ["diff"],
505-
"pluginsConfig": {
506-
"diff": {
507-
"method": "diffJson"
508-
}
509-
}
510-
}
511-
```
512-
513-
- Official example configuration file
514-
515-
> [https://github.com/snowdreams1006/gitbook-plugin-diff/blob/master/example/book.json](https://github.com/snowdreams1006/gitbook-plugin-diff/blob/master/example/book.json)
516-
517-
```json
518-
{
519-
"plugins": ["diff"],
520-
"pluginsConfig": {
521-
"diff": {
522-
"method": "diffJson"
523-
}
524-
}
525-
}
526-
```
527-
528490
- Sample `book.json` file
529491

530492
```json
@@ -586,6 +548,8 @@ Contributions, issues and feature requests are welcome! Feel free to check [issu
586548

587549
Give a [Star](https://github.com/snowdreams1006/gitbook-plugin-diff) if this project helped you!
588550

551+
![snowdreams1006-wechat-donate.jpg](https://snowdreams1006.github.io/snowdreams1006-wechat-donate.jpg)
552+
589553
## Copyright
590554

591555
Copyright © 2019 [snowdreams1006](https://github.com/snowdreams1006).

README_zh.md

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,10 @@
77
[![github:maintenance](https://img.shields.io/badge/Maintained%3F-yes-green.svg)](https://github.com/snowdreams1006/gitbook-plugin-diff/graphs/commit-activity)
88
[![npm:license](https://img.shields.io/npm/l/gitbook-plugin-diff.svg)](https://github.com/snowdreams1006/gitbook-plugin-diff/blob/master/LICENSE)
99
[![github:snodreams1006](https://img.shields.io/badge/github-snowdreams1006-brightgreen.svg)](https://github.com/snowdreams1006)
10-
[![website:snodreams1006.tech](https://img.shields.io/badge/website-snowdreams1006.tech-brightgreen.svg)](https://snowdreams1006.tech/)
1110
[![微信公众号:雪之梦技术驿站-brightgreen.svg](https://img.shields.io/badge/%E5%BE%AE%E4%BF%A1%E5%85%AC%E4%BC%97%E5%8F%B7-%E9%9B%AA%E4%B9%8B%E6%A2%A6%E6%8A%80%E6%9C%AF%E9%A9%BF%E7%AB%99-brightgreen.svg)](https://snowdreams1006.github.io/snowdreams1006-wechat-public.jpeg)
1211

1312
> 在 markdown 文档中显示代码之间的差异的 Gitbook 插件
1413
15-
[English](./README.md) | [中文](./README_zh.md)
16-
17-
### 🏠 [主页](https://github.com/snowdreams1006/gitbook-plugin-diff#readme)
18-
19-
- Github : [https://snowdreams1006.github.io/gitbook-plugin-diff/](https://snowdreams1006.github.io/gitbook-plugin-diff/)
20-
- GitLab: [https://snowdreams1006.gitlab.io/gitbook-plugin-diff/](https://snowdreams1006.gitlab.io/gitbook-plugin-diff/)
21-
- Gitee : [https://snowdreams1006.gitee.io/gitbook-plugin-diff/](https://snowdreams1006.gitee.io/gitbook-plugin-diff/)
22-
2314
## 屏幕截图
2415

2516
- 用法
@@ -588,6 +579,8 @@ gitbook serve
588579

589580
如果这个项目对您有帮助,请给个[星星](https://github.com/snowdreams1006/gitbook-plugin-diff)
590581

582+
![snowdreams1006-wechat-donate.jpg](https://snowdreams1006.github.io/snowdreams1006-wechat-donate.jpg)
583+
591584
## 版权
592585

593586
版权所有©2019 [snowdreams1006](https://github.com/snowdreams1006)

deploy.sh

Lines changed: 23 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,40 @@
11
#! /bin/bash
22

3+
# copy info
4+
cp -rf README.md docs/en/
5+
cp -rf README_zh.md docs/zh/README.md
6+
cp -rf README_zh.md example/README.md
7+
8+
# status latest
9+
git status
10+
11+
# pull latest
12+
git pull
13+
14+
# add commits
15+
git add .
16+
# commit
17+
git commit -m "auto update"
18+
# push to github and others
19+
git push
20+
321
# prepare for generate docs
422
cd docs
523

624
# re-generate docs
725
rm -rf _book/ && gitbook build
8-
926
# copy to docs
10-
cp -rf _book/ .
27+
cp -rf _book/* ./
1128

1229
# prepare for push
1330
cd ..
1431

1532
# add commits
1633
git add .
17-
1834
# commit
1935
git commit -m "auto deploy website"
20-
2136
# push to github and others
22-
git push origin master
37+
git push
38+
39+
# status latest
40+
git status

docs/.nojekyll

Whitespace-only changes.

docs/book.json

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,8 @@
1010
},
1111
"plugins": [
1212
"favicon-absolute",
13-
"github-buttons",
14-
"edit-link-plus",
1513
"code",
16-
"readmore",
1714
"copyright",
18-
"mygitalk",
1915
"icp",
2016
"diff"
2117
],
@@ -34,23 +30,6 @@
3430
"180x180": "/apple-touch-icon-precomposed-180.png"
3531
}
3632
},
37-
"github-buttons": {
38-
"buttons": [{
39-
"user": "snowdreams1006",
40-
"repo": "gitbook-plugin-diff",
41-
"type": "star",
42-
"size": "small"
43-
}]
44-
},
45-
"edit-link-plus": {
46-
"base": {
47-
"snowdreams1006.github.io":"https://github.com/snowdreams1006/gitbook-plugin-diff/edit/master/docs",
48-
"snowdreams1006.gitlab.io":"https://gitlab.com/snowdreams1006/gitbook-plugin-diff/edit/master/docs",
49-
"snowdreams1006.gitee.io":"https://gitee.com/snowdreams1006/gitbook-plugin-diff/edit/master/docs"
50-
},
51-
"defaultBase": "https://github.com/snowdreams1006/gitbook-plugin-diff/edit/master/docs",
52-
"label": "Edit This Page"
53-
},
5433
"readmore": {
5534
"blogId": "15702-1569305559839-744",
5635
"name": "雪之梦技术驿站",
@@ -64,14 +43,6 @@
6443
"image": "https://snowdreams1006.github.io/snowdreams1006-wechat-open.png",
6544
"copyProtect": false
6645
},
67-
"mygitalk": {
68-
"clientID": "b41f45e89afe86e4782f",
69-
"clientSecret": "50efaa46056c41abbdc7537cd09061677d02c0af",
70-
"repo": "gitbook-plugin-diff",
71-
"owner": "snowdreams1006",
72-
"admin": ["snowdreams1006"],
73-
"distractionFreeMode": false
74-
},
7546
"icp": {
7647
"number": "浙ICP备18042346号"
7748
},

0 commit comments

Comments
 (0)