Member-only story

How to add Giscus to your Docs site built with Docusaurus

Dipak Parmar
3 min readOct 8, 2022

In this simple guide, I’ll show you how to add Giscus to your Docs site built with Docusaurus. With just a few quick steps, you can have a comment system up and running on your site. So if you want to add a comments section to your docs, follow this guide, and you’ll be all set.

If you’re new to Docusaurus, you might want to check it out for your next online documentation site build. It’s an open-source docs site generator using markdown files and has features like version control, search and localization, etc., developed by Meta (aka. Facebook).

So, if you want to add a comment system to your docs, follow through these quick steps and have your comments system ready:

⚠️ You can safely ignore the unsafe warnings, as this states that docusaurus won't be able to upgrade automatically changes to that file with version upgrade. For now this is the option, also our change is so minimal if the future upgrade breaks it we can easily re-swizzle it and fix it.

Swizzle the DocItem/Layout component from @docusaurus/theme-classic

  1. Select the theme @docusaurus/theme-classic

The author made this story available to Medium members only.
If you’re new to Medium, create a new account to read this story on us.

Or, continue in mobile web

Already have an account? Sign in

Dipak Parmar
Dipak Parmar

Written by Dipak Parmar

A passionate DevOps Engineer and Cyber Security enthusiast From Kamloops, BC 🇨🇦

No responses yet

Write a response