Plugins are the best way to extend GitBook functionalities (ebook and website). There exist plugins to do a lot of things: bring math formulas display support, track visits using Google Analytic, etc.
Plugins can be easily searched on plugins.gitbook.com.
Once you find a plugin that you want to install, you need to add it to your book.json
:
{
"plugins": ["myPlugin", "anotherPlugin"]
}
You can also specify a specific version using: "[email protected]"
. By default GitBook will resolve the latest version of the plugin compatbile with the current GitBook version.
Plugins are automatically installed on GitBook.com. Locally, run gitbook install
to install and prepare all plugins for your books.
Plugins specific configurations are stored in pluginsConfig
. You have to refer to the documentation of the plugin itself for details about the available options.