Gatsby source plugin
We've also created an example project showing the plugin in work. You can find the source over Github, and a live demo deployed to Netlify. The example is built on a project using the Sample Blog template in Mozaik. As it would be quite tedious work to create every page for each post, we implemented automatic page generation as well. You can check the code in the
gatsby-node.js file and read more about the concept in the Gatsby tutorial.
The built version gets deployed to Netlify every time new code is pushed to the repository. Since both Mozaik and Netlify supports webhooks in their free plan, it is easy to automatically trigger a new build every time a document gets published with Mozaik. (You can also trigger new builds on other events. You can read more about supported events in Mozaik documentation.