Skip to content

Jader/docsify-sponsor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docsify-sponsor


docsify-sponsor

jsdelivr

docsify的赞助插件 Sponsor plugin for docsify

本项目参考自 sponsor-page

使用 Usage

  1. 插入样式 Insert the style
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify-sponsor@latest/dist/sponsor.min.css" />
  1. 插入脚本 Insert the script
<script src="//cdn.jsdelivr.net/npm/docsify-sponsor@latest/dist/sponsor.min.js"></script>
  1. 添加配置 Add settings
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/Jader
alipay_donate_qrcode string 支付宝二维码图片地址 Alipay two-dimensional code picture address https://cdn.jsdelivr.net/gh/Jader/Jader.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/Jader/Jader.github.io@master/assets/WeChanSQ.png