devrsi0n / chirpy

💬 A privacy-friendly and customizable Disqus (comment system) alternate. 注重隐私保护和定制化的评论系统。
https://chirpy.dev
GNU Affero General Public License v3.0
552 stars 32 forks source link

Add official Docusaurus plugin #528

Open devrsi0n opened 1 year ago

devrsi0n commented 1 year ago

Is your feature request related to a problem? Please describe.

Add an official Docusaurus plugin to help build communities

image

Describe the solution you'd like

Describe alternatives you've considered

Additional context

RudraSen2 commented 1 year ago

Use this as a template for the docusaurus plugin: https://github.com/rdilweb/template-docusaurus-plugin

devrsi0n commented 1 year ago

Hi @RudraSen2 , thanks for the info, do you have interest in making a Chirpy plugin for docusaurus?

RudraSen2 commented 1 year ago

I have no experience but would like to help

devrsi0n commented 1 year ago

@RudraSen2 Thank you, I think you only need to find a proper hook to inject the script

<script
  defer
  src="http://chirpy.dev/bootstrap/comment.js"
  data-chirpy-domain="<your-domain>"
></script>

Feel free to create a new package here

RudraSen2 commented 1 year ago

I have made a repository, and I have implemented the code in it. You can see it here. You can see how I implemented it here.