docsify-sponsor

1.0.2 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i docsify-sponsor

Weekly Downloads

2

Version

1.0.2

License

MIT

Unpacked Size

116 kB

Total Files

10

Last publish

Collaborators

  • jader