Skip to content

Commit 76eb887

Browse files
committed
✨ init project
1 parent a994c69 commit 76eb887

File tree

10 files changed

+684
-0
lines changed

10 files changed

+684
-0
lines changed

.gitignore

Lines changed: 106 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
lerna-debug.log*
8+
9+
# Diagnostic reports (https://nodejs.org/api/report.html)
10+
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
11+
12+
# Runtime data
13+
pids
14+
*.pid
15+
*.seed
16+
*.pid.lock
17+
18+
# Directory for instrumented libs generated by jscoverage/JSCover
19+
lib-cov
20+
21+
# Coverage directory used by tools like istanbul
22+
coverage
23+
*.lcov
24+
25+
# nyc test coverage
26+
.nyc_output
27+
28+
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
29+
.grunt
30+
31+
# Bower dependency directory (https://bower.io/)
32+
bower_components
33+
34+
# node-waf configuration
35+
.lock-wscript
36+
37+
# Compiled binary addons (https://nodejs.org/api/addons.html)
38+
build/Release
39+
40+
# Dependency directories
41+
node_modules/
42+
jspm_packages/
43+
44+
# TypeScript v1 declaration files
45+
typings/
46+
47+
# TypeScript cache
48+
*.tsbuildinfo
49+
50+
# Optional npm cache directory
51+
.npm
52+
53+
# Optional eslint cache
54+
.eslintcache
55+
56+
# Microbundle cache
57+
.rpt2_cache/
58+
.rts2_cache_cjs/
59+
.rts2_cache_es/
60+
.rts2_cache_umd/
61+
62+
# Optional REPL history
63+
.node_repl_history
64+
65+
# Output of 'npm pack'
66+
*.tgz
67+
68+
# Yarn Integrity file
69+
.yarn-integrity
70+
71+
# dotenv environment variables file
72+
.env
73+
.env.test
74+
75+
# parcel-bundler cache (https://parceljs.org/)
76+
.cache
77+
78+
# Next.js build output
79+
.next
80+
81+
# Nuxt.js build / generate output
82+
.nuxt
83+
84+
# Gatsby files
85+
.cache/
86+
# Comment in the public line in if your project uses Gatsby and *not* Next.js
87+
# https://nextjs.org/blog/next-9-1#public-directory-support
88+
# public
89+
90+
# vuepress build output
91+
.vuepress/dist
92+
93+
# Serverless directories
94+
.serverless/
95+
96+
# FuseBox cache
97+
.fusebox/
98+
99+
# DynamoDB Local files
100+
.dynamodb/
101+
102+
# TernJS port file
103+
.tern-port
104+
105+
.idea/
106+
.DS_Store

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2021 Jade
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# docsify-sponsor
2+
3+
<p align="center">
4+
<img src="https://docsify.js.org/_media/icon.svg" />
5+
<br />
6+
<code>docsify-sponsor</code>
7+
</p>
8+
9+
[![jsdelivr](https://data.jsdelivr.com/v1/package/npm/docsify-sponsor/badge)](https://www.jsdelivr.com/package/npm/docsify-sponsor)
10+
[![](https://img.shields.io/npm/v/docsify-sponsor.svg)](https://www.npmjs.com/package/docsify-sponsor)
11+
[![](https://img.shields.io/npm/l/docsify-sponsor)](https://github.com/JaderH/docsify-sponsor/blob/master/LICENSE)
12+
13+
>docsify的赞助插件 Sponsor plugin for docsify
14+
15+
本项目参考自 [sponsor-page](https://github.com/Kaiyuan/sponsor-page)
16+
17+
## 使用 Usage
18+
19+
1. 插入样式 Insert the style
20+
21+
```html
22+
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify-sponsor@latest/dist/sponsor.min.css" />
23+
```
24+
25+
2. 插入脚本 Insert the script
26+
27+
```html
28+
<script src="//cdn.jsdelivr.net/npm/docsify-sponsor@latest/dist/sponsor.min.js"></script>
29+
```
30+
31+
3. 添加配置 Add settings
32+
33+
```js
34+
window.$docsify = {
35+
sponsor: {
36+
github: '',
37+
alipay_donate_qrcode: "",
38+
alipay_donate_link: "",
39+
wechat_donate_qrcode: "",
40+
}
41+
}
42+
```
43+
## 配置说明 Configuration description
44+
45+
| 属性名 Attribute | 类型 Type | 解释 Description | 默认值 Defaults |
46+
| --------------- | -------- | --------------- | ----------- |
47+
| github | string | GitHub 链接地址 GitHub link address | https://github.com/JaderH |
48+
| alipay_donate_qrcode | string | 支付宝二维码图片地址 Alipay two-dimensional code picture address | https://cdn.jsdelivr.net/gh/JaderH/JaderH.github.io@master/assets/AliPayQR.png |
49+
| alipay_donate_link | string | 支付宝二维码链接地址 Alipay QR code link address | https://qr.alipay.com/fkx14579f8hzpauqxrteze9 |
50+
| wechat_donate_qrcode | string | 微信二维码图片地址 WeChat QR code picture address | https://cdn.jsdelivr.net/gh/JaderH/JaderH.github.io@master/assets/WeChanSQ.png |

dist/sponsor.min.css

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/sponsor.min.js

Lines changed: 20 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/.nojekyll

Whitespace-only changes.

docs/README.md

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# docsify-sponsor
2+
3+
<p align="center">
4+
<img src="https://docsify.js.org/_media/icon.svg" />
5+
<br />
6+
<code>docsify-sponsor</code>
7+
</p>
8+
9+
[![jsdelivr](https://data.jsdelivr.com/v1/package/npm/docsify-sponsor/badge)](https://www.jsdelivr.com/package/npm/docsify-sponsor)
10+
[![](https://img.shields.io/npm/v/docsify-sponsor.svg)](https://www.npmjs.com/package/docsify-sponsor)
11+
[![](https://img.shields.io/npm/l/docsify-sponsor)](https://github.com/JaderH/docsify-sponsor/blob/master/LICENSE)
12+
13+
>docsify的赞助插件 Sponsor plugin for docsify
14+
15+
本项目参考自 [sponsor-page](https://github.com/Kaiyuan/sponsor-page)
16+
17+
## 使用 Usage
18+
19+
1. 插入样式 Insert the style
20+
21+
```html
22+
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify-sponsor@latest/dist/sponsor.min.css" />
23+
```
24+
25+
2. 插入脚本 Insert the script
26+
27+
```html
28+
<script src="//cdn.jsdelivr.net/npm/docsify-sponsor@latest/dist/sponsor.min.js"></script>
29+
```
30+
31+
3. 添加配置 Add settings
32+
33+
```js
34+
window.$docsify = {
35+
sponsor: {
36+
github: '',
37+
alipay_donate_qrcode: "",
38+
alipay_donate_link: "",
39+
wechat_donate_qrcode: "",
40+
}
41+
}
42+
```
43+
## 配置说明 Configuration description
44+
45+
| 属性名 Attribute | 类型 Type | 解释 Description | 默认值 Defaults |
46+
| --------------- | -------- | --------------- | ----------- |
47+
| github | string | GitHub 链接地址 GitHub link address | https://github.com/JaderH |
48+
| alipay_donate_qrcode | string | 支付宝二维码图片地址 Alipay two-dimensional code picture address | https://cdn.jsdelivr.net/gh/JaderH/JaderH.github.io@master/assets/AliPayQR.png |
49+
| alipay_donate_link | string | 支付宝二维码链接地址 Alipay QR code link address | https://qr.alipay.com/fkx14579f8hzpauqxrteze9 |
50+
| wechat_donate_qrcode | string | 微信二维码图片地址 WeChat QR code picture address | https://cdn.jsdelivr.net/gh/JaderH/JaderH.github.io@master/assets/WeChanSQ.png |

docs/index.html

Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<title>docsify-sponsor</title>
6+
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
7+
<meta name="description" content="docsify-sponsor docsify docsify-plugin">
8+
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0">
9+
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify@4/lib/themes/vue.css">
10+
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify-darklight-theme@latest/dist/style.min.css">
11+
<link rel="stylesheet" href="//cdn.jsdelivr.net/gh/JaderH/JaderH.github.io@master/css/gitalk.min.css" />
12+
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify-sponsor@latest/dist/sponsor.min.css" />
13+
</head>
14+
<body>
15+
<div id="app">加载中,请稍后...</div>
16+
<script>
17+
window.$docsify = {
18+
name: 'docsify-sponsor',
19+
// 文章深度
20+
maxLevel: 2,
21+
// 子目录层级
22+
subMaxLevel: 2,
23+
auto2top: true,
24+
search: {
25+
paths: 'auto',
26+
noData: {
27+
'/': '没有结果'
28+
},
29+
placeholder: {
30+
'/': '搜索一下'
31+
}
32+
},
33+
darklightTheme: {
34+
siteFont : 'PT Sans',
35+
defaultTheme : 'dark | light',
36+
codeFontFamily : 'Roboto Mono, Monaco, courier, monospace',
37+
bodyFontSize : '15px',
38+
dark: {
39+
accent: '#539bf5', // 强调颜色
40+
toogleBackground : '#ffffff', // 图格背景颜色
41+
background: '#22272e', // 背景颜色
42+
textColor: '#adbac7', // 文本颜色
43+
codeTextColor : '#adbac7', // 代码文本颜色
44+
codeBackgroundColor : '#2d333b', // 代码背景色
45+
borderColor : '#444c56', // 边框颜色
46+
// blockQuoteColor : '#858585',
47+
// highlightColor : '#d22778', // 高亮颜色
48+
sidebarSublink : '#768390', // 侧边栏链接颜色
49+
// codeTypeColor : '#ffffff',
50+
coverBackground : 'linear-gradient(to left bottom, hsl(28deg 48% 48%) 0%,hsl(149deg 23% 35%) 100%)', // 封面背景
51+
},
52+
light: {
53+
accent: '#539bf5', // 强调颜色
54+
toogleBackground : '#091a28', // 图格背景颜色
55+
background: '#ffffff', // 背景颜色
56+
textColor: '#34495e', // 文本颜色
57+
codeTextColor : '#34495e', // 代码文本颜色
58+
codeBackgroundColor : '#f6f8fa', // 代码背景色
59+
borderColor : 'rgba(0, 0, 0, 0.07)', // 边框颜色
60+
// blockQuoteColor : '#858585',
61+
// highlightColor : '#d22778', // 高亮颜色
62+
sidebarSublink : '#586069', // 侧边栏链接颜色
63+
// codeTypeColor : '#ffffff',
64+
coverBackground : 'linear-gradient(to left bottom, hsl(28deg 48% 48%) 0%,hsl(149deg 23% 35%) 100%)', // 封面背景
65+
}
66+
},
67+
sponsor: {
68+
github: 'https://github.com/JaderH',
69+
alipay_donate_qrcode: "https://cdn.jsdelivr.net/gh/JaderH/JaderH.github.io@master/assets/AliPayQR.png",
70+
alipay_donate_link: "https://qr.alipay.com/fkx14579f8hzpauqxrteze9",
71+
wechat_donate_qrcode: "https://cdn.jsdelivr.net/gh/JaderH/JaderH.github.io@master/assets/WeChanSQ.png",
72+
}
73+
}
74+
</script>
75+
<!-- Docsify v4 -->
76+
<script src="//cdn.jsdelivr.net/npm/docsify@4"></script>
77+
<script src="//cdn.jsdelivr.net/npm/docsify/lib/plugins/search.min.js"></script>
78+
<script src="//cdn.jsdelivr.net/npm/prismjs/components/prism-bash.min.js"></script>
79+
<script src="//cdn.jsdelivr.net/npm/prismjs/components/prism-json.min.js"></script>
80+
<script src="//cdn.jsdelivr.net/npm/prismjs/components/prism-php.min.js"></script>
81+
<script src="//cdn.jsdelivr.net/npm/docsify/lib/plugins/emoji.min.js"></script>
82+
<script src="//cdn.jsdelivr.net/npm/docsify/lib/plugins/zoom-image.min.js"></script>
83+
<script src="//cdn.jsdelivr.net/npm/docsify/lib/plugins/gitalk.min.js"></script>
84+
<script src="//cdn.jsdelivr.net/gh/JaderH/JaderH.github.io@master/js/gitalk.min.js"></script>
85+
<script src="//cdn.jsdelivr.net/npm/docsify-darklight-theme@latest/dist/index.min.js"></script>
86+
<script src="//cdn.jsdelivr.net/npm/docsify-sponsor@latest/dist/sponsor.min.js"></script>
87+
<script>
88+
const gitalk = new Gitalk({
89+
clientID: "1a06d73a89ec7f34fd85",
90+
clientSecret: "088fb63106d3d17e30153187cf85125cd56c18b1",
91+
repo: "jaderh.github.io",
92+
owner: "JaderH",
93+
admin: ["JaderH"],
94+
number: 2,
95+
distractionFreeMode: true,
96+
labels: ["talk"],
97+
title: "Welcome!",
98+
perPage: 10,
99+
});
100+
</script>
101+
</body>
102+
</html>

0 commit comments

Comments
 (0)