nopdan / docsify-waline

A simple comment plugin for docsify.
GNU General Public License v3.0
8 stars 1 forks source link
docsify plugin valine waline

docsify-waline

A Docsify comment plugin for docsify that supports pageview statistics.

Pageview statistics rely on docsify-count.

English | 简体中文

Begin

Import Waline v2

<script src="https://unpkg.com/@waline/client@v2/dist/waline.js"></script>
<link
  rel="stylesheet"
  href="https://unpkg.com/@waline/client@v2/dist/waline.css"
/>

Enter waline official website
Configure 'database' and 'server' according to the documentation

Usage

<script>
  window.$docsify = {
    count: {
      language: "", // default:english|chinese
    },
    waline: {
      // Required example:https://your-domain.vercel.app
      serverURL: "https://your-domain.vercel.app",
      // enable pageview count
      pageview: true,
      // ...
      // don't support custom `el` and `path`
    },
  };
</script>

<!--Import me-->
<script src="https://unpkg.com/docsify-waline@2/docsify-waline.min.js"></script>