Gatsby as Bundler

In the last major version, we introduced static render using gatsby-theme-docz , now since the v2 Docz is entirely built using Gatsby under the hood. This is the biggest change in the project since its creation and one of the best things that we could make for the tool.

Gatsby is a blazing fast modern site generator for React and one of the greatest modern tools of the new frontend era. It has a huge ecosystem and community around it and a very concise team behind. Using Gatsby as bundler behind the scenes we won a lot of benefits like:

Stay focused on creating features instead of lead with bundler management

Static and optimized builds by default

Fast dev-experience and better workflow

Huge ecosystem of tools, plugins and community

Better and easy way to customize things inside Docz

More power in order to create your documentation

Gatsby API and Hooks

Gatsby has a pretty damn good API for developers and a lot of hooks and life cycle methods that you can use in order to customize the process of

your bundle. Indeed you can hook into it in a lot of ways and all these hooks

and properties you can use with Docz.

Check all Gatsby API references here

So, if you want to use any of those Gatsby configurations file inside your Docz project, just create it in the root and we’ll lead with them for you.

Like, if you want to make some change in the webpack configuration, you can use the onCreateWebpackConfig hook inside the gatsby-node.js file: