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

--

--

Dipak Parmar
Dipak Parmar

Written by Dipak Parmar

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

No responses yet