Skip to content

Commit

Permalink
✨ init project
Browse files Browse the repository at this point in the history
  • Loading branch information
Jader committed May 28, 2021
1 parent a994c69 commit 76eb887
Show file tree
Hide file tree
Showing 10 changed files with 684 additions and 0 deletions.
106 changes: 106 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*

# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage
*.lcov

# nyc test coverage
.nyc_output

# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# TypeScript v1 declaration files
typings/

# TypeScript cache
*.tsbuildinfo

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Microbundle cache
.rpt2_cache/
.rts2_cache_cjs/
.rts2_cache_es/
.rts2_cache_umd/

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env
.env.test

# parcel-bundler cache (https://parceljs.org/)
.cache

# Next.js build output
.next

# Nuxt.js build / generate output
.nuxt

# Gatsby files
.cache/
# Comment in the public line in if your project uses Gatsby and *not* Next.js
# https://nextjs.org/blog/next-9-1#public-directory-support
# public

# vuepress build output
.vuepress/dist

# Serverless directories
.serverless/

# FuseBox cache
.fusebox/

# DynamoDB Local files
.dynamodb/

# TernJS port file
.tern-port

.idea/
.DS_Store
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2021 Jade

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
50 changes: 50 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# docsify-sponsor

<p align="center">
<img src="https://docsify.js.org/_media/icon.svg" />
<br />
<code>docsify-sponsor</code>
</p>

[![jsdelivr](https://data.jsdelivr.com/v1/package/npm/docsify-sponsor/badge)](https://www.jsdelivr.com/package/npm/docsify-sponsor)
[![](https://img.shields.io/npm/v/docsify-sponsor.svg)](https://www.npmjs.com/package/docsify-sponsor)
[![](https://img.shields.io/npm/l/docsify-sponsor)](https://github.com/JaderH/docsify-sponsor/blob/master/LICENSE)

>docsify的赞助插件 Sponsor plugin for docsify
本项目参考自 [sponsor-page](https://github.com/Kaiyuan/sponsor-page)

## 使用 Usage

1. 插入样式 Insert the style

```html
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify-sponsor@latest/dist/sponsor.min.css" />
```

2. 插入脚本 Insert the script

```html
<script src="//cdn.jsdelivr.net/npm/docsify-sponsor@latest/dist/sponsor.min.js"></script>
```

3. 添加配置 Add settings

```js
window.$docsify = {
sponsor: {
github: '',
alipay_donate_qrcode: "",
alipay_donate_link: "",
wechat_donate_qrcode: "",
}
}
```
## 配置说明 Configuration description

| 属性名 Attribute | 类型 Type | 解释 Description | 默认值 Defaults |
| --------------- | -------- | --------------- | ----------- |
| github | string | GitHub 链接地址 GitHub link address | https://github.com/JaderH |
| alipay_donate_qrcode | string | 支付宝二维码图片地址 Alipay two-dimensional code picture address | https://cdn.jsdelivr.net/gh/JaderH/JaderH.github.io@master/assets/AliPayQR.png |
| alipay_donate_link | string | 支付宝二维码链接地址 Alipay QR code link address | https://qr.alipay.com/fkx14579f8hzpauqxrteze9 |
| wechat_donate_qrcode | string | 微信二维码图片地址 WeChat QR code picture address | https://cdn.jsdelivr.net/gh/JaderH/JaderH.github.io@master/assets/WeChanSQ.png |
1 change: 1 addition & 0 deletions dist/sponsor.min.css

Large diffs are not rendered by default.

20 changes: 20 additions & 0 deletions dist/sponsor.min.js

Large diffs are not rendered by default.

Empty file added docs/.nojekyll
Empty file.
50 changes: 50 additions & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# docsify-sponsor

<p align="center">
<img src="https://docsify.js.org/_media/icon.svg" />
<br />
<code>docsify-sponsor</code>
</p>

[![jsdelivr](https://data.jsdelivr.com/v1/package/npm/docsify-sponsor/badge)](https://www.jsdelivr.com/package/npm/docsify-sponsor)
[![](https://img.shields.io/npm/v/docsify-sponsor.svg)](https://www.npmjs.com/package/docsify-sponsor)
[![](https://img.shields.io/npm/l/docsify-sponsor)](https://github.com/JaderH/docsify-sponsor/blob/master/LICENSE)

>docsify的赞助插件 Sponsor plugin for docsify
本项目参考自 [sponsor-page](https://github.com/Kaiyuan/sponsor-page)

## 使用 Usage

1. 插入样式 Insert the style

```html
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify-sponsor@latest/dist/sponsor.min.css" />
```

2. 插入脚本 Insert the script

```html
<script src="//cdn.jsdelivr.net/npm/docsify-sponsor@latest/dist/sponsor.min.js"></script>
```

3. 添加配置 Add settings

```js
window.$docsify = {
sponsor: {
github: '',
alipay_donate_qrcode: "",
alipay_donate_link: "",
wechat_donate_qrcode: "",
}
}
```
## 配置说明 Configuration description

| 属性名 Attribute | 类型 Type | 解释 Description | 默认值 Defaults |
| --------------- | -------- | --------------- | ----------- |
| github | string | GitHub 链接地址 GitHub link address | https://github.com/JaderH |
| alipay_donate_qrcode | string | 支付宝二维码图片地址 Alipay two-dimensional code picture address | https://cdn.jsdelivr.net/gh/JaderH/JaderH.github.io@master/assets/AliPayQR.png |
| alipay_donate_link | string | 支付宝二维码链接地址 Alipay QR code link address | https://qr.alipay.com/fkx14579f8hzpauqxrteze9 |
| wechat_donate_qrcode | string | 微信二维码图片地址 WeChat QR code picture address | https://cdn.jsdelivr.net/gh/JaderH/JaderH.github.io@master/assets/WeChanSQ.png |
102 changes: 102 additions & 0 deletions docs/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>docsify-sponsor</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="description" content="docsify-sponsor docsify docsify-plugin">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0">
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify@4/lib/themes/vue.css">
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify-darklight-theme@latest/dist/style.min.css">
<link rel="stylesheet" href="//cdn.jsdelivr.net/gh/JaderH/JaderH.github.io@master/css/gitalk.min.css" />
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify-sponsor@latest/dist/sponsor.min.css" />
</head>
<body>
<div id="app">加载中,请稍后...</div>
<script>
window.$docsify = {
name: 'docsify-sponsor',
// 文章深度
maxLevel: 2,
// 子目录层级
subMaxLevel: 2,
auto2top: true,
search: {
paths: 'auto',
noData: {
'/': '没有结果'
},
placeholder: {
'/': '搜索一下'
}
},
darklightTheme: {
siteFont : 'PT Sans',
defaultTheme : 'dark | light',
codeFontFamily : 'Roboto Mono, Monaco, courier, monospace',
bodyFontSize : '15px',
dark: {
accent: '#539bf5', // 强调颜色
toogleBackground : '#ffffff', // 图格背景颜色
background: '#22272e', // 背景颜色
textColor: '#adbac7', // 文本颜色
codeTextColor : '#adbac7', // 代码文本颜色
codeBackgroundColor : '#2d333b', // 代码背景色
borderColor : '#444c56', // 边框颜色
// blockQuoteColor : '#858585',
// highlightColor : '#d22778', // 高亮颜色
sidebarSublink : '#768390', // 侧边栏链接颜色
// codeTypeColor : '#ffffff',
coverBackground : 'linear-gradient(to left bottom, hsl(28deg 48% 48%) 0%,hsl(149deg 23% 35%) 100%)', // 封面背景
},
light: {
accent: '#539bf5', // 强调颜色
toogleBackground : '#091a28', // 图格背景颜色
background: '#ffffff', // 背景颜色
textColor: '#34495e', // 文本颜色
codeTextColor : '#34495e', // 代码文本颜色
codeBackgroundColor : '#f6f8fa', // 代码背景色
borderColor : 'rgba(0, 0, 0, 0.07)', // 边框颜色
// blockQuoteColor : '#858585',
// highlightColor : '#d22778', // 高亮颜色
sidebarSublink : '#586069', // 侧边栏链接颜色
// codeTypeColor : '#ffffff',
coverBackground : 'linear-gradient(to left bottom, hsl(28deg 48% 48%) 0%,hsl(149deg 23% 35%) 100%)', // 封面背景
}
},
sponsor: {
github: 'https://github.com/JaderH',
alipay_donate_qrcode: "https://cdn.jsdelivr.net/gh/JaderH/JaderH.github.io@master/assets/AliPayQR.png",
alipay_donate_link: "https://qr.alipay.com/fkx14579f8hzpauqxrteze9",
wechat_donate_qrcode: "https://cdn.jsdelivr.net/gh/JaderH/JaderH.github.io@master/assets/WeChanSQ.png",
}
}
</script>
<!-- Docsify v4 -->
<script src="//cdn.jsdelivr.net/npm/docsify@4"></script>
<script src="//cdn.jsdelivr.net/npm/docsify/lib/plugins/search.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/prismjs/components/prism-bash.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/prismjs/components/prism-json.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/prismjs/components/prism-php.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/docsify/lib/plugins/emoji.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/docsify/lib/plugins/zoom-image.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/docsify/lib/plugins/gitalk.min.js"></script>
<script src="//cdn.jsdelivr.net/gh/JaderH/JaderH.github.io@master/js/gitalk.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/docsify-darklight-theme@latest/dist/index.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/docsify-sponsor@latest/dist/sponsor.min.js"></script>
<script>
const gitalk = new Gitalk({
clientID: "1a06d73a89ec7f34fd85",
clientSecret: "088fb63106d3d17e30153187cf85125cd56c18b1",
repo: "jaderh.github.io",
owner: "JaderH",
admin: ["JaderH"],
number: 2,
distractionFreeMode: true,
labels: ["talk"],
title: "Welcome!",
perPage: 10,
});
</script>
</body>
</html>
Loading

0 comments on commit 76eb887

Please sign in to comment.