All Articles

Gitbook Plugins

I recently starter working on an education project called LearnJS and I decided to draft it with GitBook as it is quite simple to setup and run.

There were a few features missing from the core and from the community, so I decided to build some super simple plugins that help me handling my contents better.

Enjoy!


gitbook-plugin-redirect-https

Just add this plugin to your book.json and enjoy an automatic Javascript redirect from HTTP to HTTPS when your book is published online.

The plugin recognises your local environment and skips the redirect.

gitbook-plugin-disqus-legacy

Just add this plugin to embed a Disqus board in every page of your 3.x GitBook.

You can configure a few settings and blacklist pages that should not use it.

gitbook-plugin-youtube-placeholder

This plugin lets you embed a Youtube video that is fully responsive to the page size. Works great for desktop and mobile.

gitbook-plugin-codepen-placeholder

If you need to embed a CodePen into your pages, this plugin does the heavy lifting for you.