It has never been so easy to document your things!
Docz is a documentation tool that makes it easy to write and publish interactive documentation for your code. It allows you to create MDX files showcasing your code, which Docz then turns into a live-reloading, production-ready site. With Docz, you can quickly create a documentation site that is SEO-friendly and customizable.
To install Docz, follow these steps:
Add Docz as a dependency to your project using Yarn or npm:
yarn add docz
npm install docz
Install the required dependencies react and react-dom manually:
yarn add react react-dom
npm install react react-dom
Create .mdx files anywhere in your project to showcase your code.
Create a component file, for example, Button.jsx, which contains the code for a Button component.
Run the command yarn docz dev
to start a local development server and open your documentation site in the browser.
To build a static site, use yarn docz build
. The generated static site will be located in the .docz/dist/ directory.
Deploy the generated docz site to a static site hosting provider of your choice.
Docz is a powerful documentation tool that simplifies the process of creating and publishing interactive code documentation. With features like live-reloading, SEO-friendliness, and easy deployment, Docz is a valuable tool for developers who want to quickly and efficiently document their code.