# docz **Repository Path**: dh1992/docz ## Basic Information - **Project Name**: docz - **Description**: ✍ It has never been so easy to document your things! - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: add-test-reporting - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-12-09 - **Last Updated**: 2021-12-09 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README

Open Collective Patreon

Chat

## ✅️   Migration Guide This documentation is for Docz [v2](https://github.com/pedronauck/docz/pull/950). Follow our [migration guide](/MIGRATION_GUIDE.md) if you haven't upgraded your project yet. ## 📕 v1 docs If you're still using v1, you can find the docs [here](https://docz-v1.surge.sh). ## 🎩   Features - 🔩 **Powered by Gatsby.** Bundling and ecosystem powered by [Gatsby](https://gatsbyjs.org). - 🧘 **Zero config and easy.** Don't worry about complex configurations steps. - ⚡️ **Blazing Fast.** Full hot reload support with webpack 4 and automatic code splitting. - 💅 **Easy to customize.** Create and use real customizable themes. - 📝 **[MDX](https://github.com/mdx-js/mdx) Based.** Write markdown enhanced by the power of components. - 🎛 **Pluggable.** Use plugins to manipulate and customize Docz to suit your needs. - 🔐 **Typescript Support.** Full support for TypeScript. Write your type definitions with no extra setup required. ## 🤔   Why? Libraries that make development easier are appearing every day. Style guides and design systems are growing in popularity. Today, tools that allow us to get our best work done and be efficient are necessary. We shouldn't be spending too much time on tasks that should be trivial. This is why we created **Docz**. Documenting code is one of the most important and time-heavy processes when you're creating something new. A lot of time is wasted on unnecessarily attempting to build a documentation site that will match the style we want. ## 👉🏻   More info on [our website](https://docz.site) ## 🎛   Plugins - **[gatsby-theme-docz](https://github.com/pedronauck/docz/tree/master/core/gatsby-theme-docz)** - Use Docz as a theme for Gatsby. - **[netlify](https://github.com/nicholasess/docz-plugin-netlify)** - Deploy your Docz site to [Netlify](http://netlify.com/). - **[svg sprite loader](https://github.com/trustedhousesitters/docz-plugin-svg-sprite-loader)** - Docz plugin for SVG sprite loader. - **[snapshots](https://github.com/JosephConradBlack/docz-plugin-snapshots)** - A plugin for Docz that creates jest snapshots for all documented component usages. ## 🗃   Examples - **[basic](https://github.com/pedronauck/docz/tree/master/examples/basic)** - Barebones example. - **[gatsby](https://github.com/pedronauck/docz/tree/master/examples/gatsby)** - Example using Docz in a Gastby project. - **[react native](https://github.com/pedronauck/docz/tree/master/examples/react-native)** - Using Docz in a React Native project. - **[styled-components](https://github.com/pedronauck/docz/tree/master/examples/styled-components)** - Using Docz with `styled-components`. - **[with typescript](https://github.com/pedronauck/docz/tree/master/examples/typescript)** - Using Docz with Typescript. - **[with flow](https://github.com/pedronauck/docz/tree/master/examples/flow)** - Using Docz with Flow. - **[with sass](https://github.com/pedronauck/docz-plugin-css/tree/master/examples/css-sass)** - Using Docz parsing CSS with SASS. - **[with less](https://github.com/pedronauck/docz-plugin-css/tree/master/examples/css-less)** - Using Docz parsing CSS with LESS. - **[with postcss](https://github.com/pedronauck/docz-plugin-css/tree/master/examples/css-postcss)** - Using Docz parsing CSS with PostCSS. - **[with stylus](https://github.com/pedronauck/docz-plugin-css/tree/master/examples/css-stylus)** - Using Docz parsing CSS with Stylus. ## 🌍   Around the world - **[Smooth UI](https://smooth-ui.smooth-code.com/)** - Modern React UI library. - **[Set Protocol Docs](https://docs.setprotocol.com/)** - Documentation site of Set Protocol. - **[RBX](https://dfee.github.io/rbx)** - The Comprehensive Bulma UI Framework for React. - **[Circuit UI](https://circuit.sumup.com/#/)** - React component library for [SumUp](https://sumup.com) web apps. - **[Fannypack](https://fannypack.style)** - A friendly & accessible React UI Kit built with [Reakit](https://reakit.io/). - **[React Pixi](https://reactpixi.org/#/)** - React Fiber renderer for Pixi. - **[React Hotkey Tooltip](https://react-hotkey-tooltip.netlify.com/#/)** - A global Hotkey provider with built in tooltip for React. - **[Sajari React SDK](https://sajari-sdk-react.netlify.com/)** - Library of React Components for the Sajari. ## ⚠️   Warning Since the release of v1 you need `react` and `react-dom` `v16.8.0` or later installed. ## 📟   Install and Usage Getting started with **Docz** is really quick and easy. If you're starting from scratch use [create-docz-app](https://www.npmjs.com/package/create-docz-app) to create your project. ```sh npx create-docz-app my-docz-app # or yarn create docz-app my-docz-app --example typescript ``` If you want to add `docz` to a codebase, then add docz using your favourite package manager: ```bash $ yarn add --dev docz@next react react-dom # or $ npm install --save-dev docz@next react react-dom ``` > **Note**: `react` and `react-dom` will not be installed automatically. You'll have to install them yourself. Next, add some `.mdx` files anywhere in your project: ```mdx --- name: Button route: / --- import { Playground, Props } from "docz"; import Button from "./Button"; # Button ## Basic usage ``` And a Button component `Button.jsx`: ```typescript import React from "react"; import t from "prop-types"; const Button = ({ children, type }) => ; Button.propTypes = { /** * This is a pretty good description for this prop * Button type. Learn more about `type` attribute [at MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#attr-type) */ type: t.oneOf(["button", "submit", "reset"]) }; Button.defaultProps = { type: "button" }; export default Button; ``` Finally, run the Docz development server: ```bash $ yarn docz dev ``` That's it! Now you have some real badass documentation 👊 ![](https://cdn-std.dprcdn.net/files/acc_649651/S2YCID) Any doubt? Check [our docs](http://docz.site) to see more about **Docz**! ## 🤝   Contributions Contributions, issues and feature requests are very welcome. Please make sure to read the [Contributing Guide](/CONTRIBUTING.md) before making a pull request. ## 💪🏻   Contributors This project exists thanks to all the people who contribute. [[Contribute](CONTRIBUTING.md)]. ## 💭   Needing Help? If you need some help you can chat with us on [our Spectrum Community](https://spectrum.chat/docz), we have a great team who would be more than happy to help you: | [Pedro Nauck
Pedro Nauck](https://github.com/pedronauck)
[💻](https://github.com/pedronauck/docz/commits?author=pedronauck "Code") [📖](https://github.com/pedronauck/docz/commits?author=pedronauck "Documentation") [🐛](https://github.com/pedronauck/docz/issues?q=author%3Apedronauck "Bug reports") [👀](#review-pedronauck "Reviewed Pull Requests") | | :---: |