egoist / docute

📚 Effortless documentation, done right.
https://docute.egoist.dev
MIT License
3.8k stars 427 forks source link

Disqus Plugin doesn't work #158

Closed Genuifx closed 6 years ago

Genuifx commented 6 years ago

I am writing doc with docute, while using disqus plugin for my site. config like following:

   plugins: [
        evanyou(),
        disqus({
            shortname: 'wxa.disqus.com'
        })
    ]

while, dependencies like this:

  <script src="https://unpkg.com/docute-evanyou@0.4.0/dist/evanyou.min.js"></script>
  <script src="https://unpkg.com/docute/plugins/disqus.js"></script>
  <script src="https://unpkg.com/docute@2/dist/docute.js"></script>

but, It doesn't work at all. anything I need to do for this?

Genuifx commented 6 years ago
  <script src="https://cdn.jsdelivr.net/npm/docute/plugins/docsearch.js"></script>
  <script src="https://cdn.jsdelivr.net/npm/docute/plugins/disqus.js"></script>
  <script src="https://cdn.jsdelivr.net/npm/docute-evanyou/dist/evanyou.min.js"></script>
  <script src="https://cdn.jsdelivr.net/npm/docute/dist/docute.js"></script>

oooo....ok, I fix the problem with this source.

Genuifx commented 6 years ago

why not update the docs and the scaffolding

egoist commented 6 years ago

Fixed in 3.4.11, jsdelivr might work because cache, something is broken in 3.4.10

Also the shortname should be wxa instead of wxa.disqus.com.

Note that you're supposed to pin the version, like docute@3 in this case, otherwise your website will be broken once docute 4 is released.

Genuifx commented 6 years ago

tks, and if there any docute's plugin support emoji? @egoist

egoist commented 6 years ago

what do you mean? you can use emoji in markdown file

Genuifx commented 6 years ago

oops, I just use github provided emoji, like :100:

egoist commented 6 years ago

@Genuifx got you covered: https://github.com/hkwu/docute-emojify

Genuifx commented 6 years ago

tks