Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
Simple starter where building your own documentation with Docz is possible
Gatsby Starter Docz is a GatsbyJS boilerplate that combines the default Gatsby starter with Docz, giving you a static site plus a separate documentation site for your React components.
Gatsby Starter Docz is a starter project forked from gatsby-starter-default and maintained by Robin Cussol (GitHub: @RobinCsl). It layers Docz, a documentation generator, onto a standard Gatsby site so that MDX files (Markdown with JSX) become live component documentation. The starter outputs two deployable sites: the regular Gatsby site and the Docz documentation site, each with its own live Netlify demo linked in the README.
npm run develop to start Gatsby at http://localhost:8000 and npm run docz:dev to start Docz at http://localhost:3000.npm run docz:build outputs the documentation to .docz/dist, keeping documentation builds independent from the Gatsby site build.commit-template.txt file and a local git config command to enforce conventional commit prefixes (Fix, Feat, Refactor, Docs, Test, Chore, BREAKING).npm run docz:build and host the static output from .docz/dist on any static host, keeping docs decoupled from the main site.Scaffold a new project with npx gatsby-cli new your-project-name https://github.com/RobinCsl/gatsby-starter-docz. After installation, npm run develop serves the Gatsby site at port 8000 and npm run docz:dev serves the documentation at port 3000. For production, npm run docz:build compiles the docs into .docz/dist.
No. The README lists a known limitation: it only works with React components that do not render any StaticQuery components from Gatsby. Any component containing GraphQL logic cannot be rendered in documentation files because Docz does not have Gatsby's data layer context.
The quick-start assumes npx is installed, which is the case for npm version 5.2.0 or greater. You can run the scaffold command with npx gatsby-cli to create a new project.
Run npm run docz:build, and the static documentation will be placed in .docz/dist by default. You can then host that folder on any static hosting service.
Yes, it is released under the MIT License. The copyright notices cover gatsbyjs (2015) and RobinCsl (2019), and the license permits free use, modification, and distribution.
