Skip to content

Docsify plugin error ReferenceError: gitalk is not defined #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
MJ-Zeng opened this issue Nov 15, 2024 · 0 comments
Open

Docsify plugin error ReferenceError: gitalk is not defined #3

MJ-Zeng opened this issue Nov 15, 2024 · 0 comments

Comments

@MJ-Zeng
Copy link

MJ-Zeng commented Nov 15, 2024

Code:

<script>
    window.$docsify = {
      name: 'Code Wiki',
      repo: 'https://github.com/MJ-Zeng/Code-Wiki',
      auto2top: true,
      autoHeader: true,
      loadSidebar: true,
      subMaxLevel: 5,
      search: {
        noData: {
          '/': '😒 找不到结果'
        },
        paths: 'auto',
        placeholder: {
          '/': '🔍 搜索'
        }
      },
      // 访问统计
      busuanzi: true,
      // 评论
      gitalk: {
        clientID: 'Ov23li7QqtpSj2xYPnAa',
        clientSecret: '340bf5f148779f034e17eb0949389d23396bfc94',
        repo: 'Code-Wiki-Talk',
        owner: 'MJ-Zeng',
        // admin: ['MJ-Zeng'],
        id: location.pathname,
        distractionFreeMode: false, // 是否启用无干扰模式
        language: 'zh-CN' // 设置评论区的语言
      },


    };
  </script>
  <!-- <script src="//unpkg.com/docsify/lib/docsify.min.js"></script> -->

  <!-- Docsify v4 -->
  <script src="//cdn.jsdelivr.net/npm/docsify@4"></script>

  <!-- GitTalk评论 -->
  <link rel="stylesheet" href="//cdn.jsdelivr.net/npm/gitalk/dist/gitalk.css">
  <script src="//cdn.jsdelivr.net/npm/docsify/lib/plugins/gitalk.min.js"></script>
  <script src="//cdn.jsdelivr.net/npm/gitalk/dist/gitalk.min.js"></script>
  <script src="https://unpkg.com/[email protected]/dist/docsify-gitalk.min.js"></script>

ISSUE

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant