Search code examples
docusaurus

Is it possible to support visitor comments in Docusaurus?


I'm building a website using Docusaurus 2.

My website will contain docs and blogs. I wonder if it is possible to let visitors comment below an article?

I guess, if we support comments, we need an authentication system for the website too.

If the native Docusaurus does not support this, Is there any plugin to do so?


Solution

  • Definitely. You can swizzle the doc pages and embed your own Disqus social plugin/Facebook comments plugin.

    See this website for an example - https://www.banli17.com/docs/f2e/html/index/ of adding comments on pages via GitHub, which is a very cool idea! (Update Jul 5, 2020: the link is broken).

    Find a tutorial here - https://coderhackers.com/blog/2020/02/29/how-to-add-forum-to-docusaurus (thanks @kirtan403)