docsify-giscus-new

1.2.0 • Public • Published

docsify-giscus-new

docsify giscus plugin,集成giscus评论插件!

npm

image

Usage

  1. Applay giscus ,申请 giscus

  2. Configure docsify-giscus:(配置值详情请参考 https://giscus.app/zh-CN

    <script>
    window.$docsify = {
      giscus:{
        repo: "longshilin/w",
        repoId: "R_kgDOwvLA",
        categoryId: "DIC_kwDOKAwv4CYMOU",
        mapping: "pathname",
        strict: "0",
        reactionsEnabled: "1",
        emitMetadata: "1",
        inputPosition: "top",
        theme: "preferred_color_scheme",
        lang: "zh-CN",
        loading: "lazy",
      },
    }
    </script>
  3. Insert script into docsify document:

    <!-- giscus评论  -->
    <link rel="stylesheet" href="https://unpkg.com/docsify-giscus-new@1.2.0/dist/giscus.css">
    <script src="https://unpkg.com/docsify-giscus-new@1.2.0/dist/docsify-giscus.min.js"></script>

Readme

Keywords

Package Sidebar

Install

npm i docsify-giscus-new

Weekly Downloads

1

Version

1.2.0

License

MIT

Unpacked Size

319 kB

Total Files

7

Last publish

Collaborators

  • longsl