Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
Documentation made easy with Gatsby. :tada:
Dox is a Gatsby theme that transforms a folder of Markdown and MDX files into a documentation website with a built-in sidebar, navbar, and syntax-highlighted code blocks.
Dox is a Gatsby theme created by MunifTanjim for building documentation sites. It takes Markdown and MDX content from a configurable content directory and outputs a static documentation website with navigation and theming. The theme is installed as an npm package and added to a Gatsby site's plugin list.
content/docs directory of Markdown files into a public documentation site with a sidebar menu.basePath to host documentation at a sub-path like /docs on an existing Gatsby site.After installing with npm install --save gatsby-theme-dox or yarn add gatsby-theme-dox, add gatsby-theme-dox to the plugins array in gatsby-config.js. The theme reads documentation files from content/docs by default and generates pages under the root URL. You can pass an options object to change basePath and contentPath, or set mdx: false if your site already configures gatsby-plugin-mdx.
The README documents three options: basePath (default /) sets the root URL for the documentation site; contentPath (default content/docs) sets the location of documentation files; and mdx (default true) configures the gatsby-plugin-mdx plugin — set it to false if your site already uses MDX.
Yes, the theme is open-source and publicly available on GitHub. You can install it from the npm registry and use it in your own projects without a license fee.
Pass a contentPath option in the plugin configuration, for example contentPath: 'docs' to read files from docs instead of content/docs.
Yes, MDX support is a listed feature. The theme enables gatsby-plugin-mdx by default; if your site already sets up MDX, set the mdx option to false to avoid duplication.
mdx option to false?When set to false, Dox skips configuring gatsby-plugin-mdx, so you must provide your own MDX plugin configuration in the Gatsby site.
