Home

Awesome

docsify-ads

docsify plugin to show your ads!(定制你的广告)

npm

Usage

  1. Configure docsify-ads:(配置)

    <script>
    window.$docsify = {
      // docsify ads 配置广告
      ads: [
        {
          img: 'https://dn-lego-static.qbox.me/cps/1638355965-480x300.jpg',
          href: 'https://s.qiniu.com/zqiMBz'
        },
        {
          img: 'https://dn-lego-static.qbox.me/cps/1638355965-480x300.jpg',
          href: 'https://s.qiniu.com/VJFJvi'
        },
        {
          img: 'https://dn-lego-static.qbox.me/cps/1638355799-480300.jpg',
          href: 'https://s.qiniu.com/7nM3uy'
        },
        {
          img: 'https://dn-lego-static.qbox.me/cps/1638268412-480x300.jpg',
          href: 'https://s.qiniu.com/VZvaii'
        },
        {
          img: 'https://dn-lego-static.qbox.me/cps/1638268217-480x300.jpg',
          href: 'https://s.qiniu.com/nMnaQj'
        },
        {
          img: 'https://dn-lego-static.qbox.me/cps/1638267917-480x300.jpg',
          href: 'https://s.qiniu.com/aqAneu'
        },
      }
    }
    </script>
    
  2. Insert script into docsify document:

    
    <!-- body -->
    <script src="https://unpkg.com/docsify-ads@1.0.4/dist/docsify-ads.min.js"></script>