All Projects → doczjs → Docz

doczjs / Docz

Licence: mit
✍ It has never been so easy to document your things!

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Docz

Mdx Docs
📝 Document and develop React components with MDX and Next.js
Stars: ✭ 412 (-98.13%)
Mutual labels:  documentation, docs, mdx, design-system
X0
Document & develop React components without breaking a sweat
Stars: ✭ 1,706 (-92.25%)
Mutual labels:  zero-configuration, documentation, docs, mdx
Nord Docs
The official Nord website and documentation
Stars: ✭ 63 (-99.71%)
Mutual labels:  documentation, gatsby, docs
Cloudflare Docs
Cloudflare’s developer docs.
Stars: ✭ 219 (-99.01%)
Mutual labels:  gatsby, docs, mdx
Docs
Documentation of Vercel and other services
Stars: ✭ 663 (-96.99%)
Mutual labels:  documentation, docs, mdx
Gatsby Documentation Starter
Automatically generate docs for React components using MDX, react-docgen, and GatsbyJS
Stars: ✭ 91 (-99.59%)
Mutual labels:  documentation, docs, mdx
Sentry Docs
The new place for the sentry documentation (and tools to build it)
Stars: ✭ 160 (-99.27%)
Mutual labels:  documentation, gatsby, docs
gatsby-starter-specimens
Leverage the wide variety of powerful React components to build your design system. Display colors, typography or any other design tokens with ease. Works seamlessly with MDX.
Stars: ✭ 35 (-99.84%)
Mutual labels:  gatsby, mdx, design-system
Ru.reactjs.org
React documentation website in Russian / Официальная русская версия сайта React
Stars: ✭ 444 (-97.98%)
Mutual labels:  documentation, gatsby, docs
Mdx Go
⚡️ Lightning fast MDX-based dev server for progressive documentation
Stars: ✭ 340 (-98.46%)
Mutual labels:  documentation, mdx
Dokz
Effortless documentation with Next.js and MDX
Stars: ✭ 353 (-98.4%)
Mutual labels:  documentation, mdx
Verb
HEADS UP! Verb is going though a major transition, we've completely refactored everything from the ground up. If you're interested, please see the dev branch.
Stars: ✭ 442 (-97.99%)
Mutual labels:  documentation, docs
Docsify
🃏 A magical documentation site generator.
Stars: ✭ 19,310 (-12.31%)
Mutual labels:  documentation, docs
Cordova Docs
Apache Cordova Documentation
Stars: ✭ 315 (-98.57%)
Mutual labels:  documentation, docs
Guides
Documentation guides and tutorials for Clojure. Various authors.
Stars: ✭ 361 (-98.36%)
Mutual labels:  documentation, docs
Codedoc
Create beautiful modern documentation websites.
Stars: ✭ 307 (-98.61%)
Mutual labels:  documentation, docs
Gatsby Theme Code Notes
A Gatsby theme for publishing code-related notes to your website
Stars: ✭ 370 (-98.32%)
Mutual labels:  gatsby, mdx
Website
Yarn package manager website
Stars: ✭ 374 (-98.3%)
Mutual labels:  documentation, docs
Gatsby Starter Portfolio Emilia
Minimalistic portfolio/photography site with masonry grid, page transitions and big images. Themeable with Theme UI. Includes Light/Dark mode.
Stars: ✭ 300 (-98.64%)
Mutual labels:  gatsby, mdx
Theme Ui
Build consistent, themeable React apps based on constraint-based design principles
Stars: ✭ 4,150 (-81.15%)
Mutual labels:  mdx, design-system

Docz makes it easy to write and publish beautiful interactive documentation for your code.

Create MDX files showcasing your code and Docz turns them into a live-reloading, production-ready site.

docz example

Why?

Documenting code is one of the most important and time-consuming tasks when developing software.

A lot of time is spent on building and maintaining custom documentation sites.

Docz enables you to quickly create a live-reloading, SEO-friendly, production-ready documentation site with MDX and customize the look, feel and behavior when required by leveraging GatsbyJS and Gatsby theme shadowing.

About create-docz-app

There's a create-docz-app, which you can use to start new projects with docz even faster. This app is developed independently of the docz project, and is not officially supported. So use the app at your own risk. You can use create-docz-app as a replacement for create-react-app, when you're creating a new project.

Getting started

Start by adding docz as a dependency to your project with Yarn or npm:

$ yarn add docz # react react-dom

# or

$ npm install docz # react react-dom

Note: react and react-dom will not be installed automatically. You'll have to install them yourself.

Then, create .mdx files anywhere in your project:

---
name: Button
route: /
---

import { Playground, Props } from 'docz'
import Button from './Button'

# Button

<Props of={Button} />

## Basic usage

<Playground>
  <Button type="submit">Click me</Button>
  <Button>No, click me</Button>
</Playground>

And a Button component Button.jsx:

import React from 'react'
import t from 'prop-types'

const Button = ({ children, type }) => <button type={type}>{children}</button>

Button.propTypes = {
  /**
   * This is a description for this prop.
   * Button type.
   */
  type: t.oneOf(['button', 'submit', 'reset']),
}
Button.defaultProps = {
  type: 'button',
}
export default Button

Finally, run:

yarn docz dev

This starts a local development server and opens your documentation site in the browser.

Build

yarn docz build generates a static site in .docz/dist/.

Try it with yarn docz serve or by serving the generated site with your favorite static file server (e.g. npx serve .docz/dist).

You can have yarn docz build emit to a different directory by providing a path to the dest field in your doczrc.js or from the command line: yarn docz build --dest docs-site-directory.

Deploying

The output of docz consists of static assets only. This allows you to deploy your generated docz site with any static site hosting provider you'd like.

Start by building your site with yarn docz build, if you haven't provided a dest flag to your config then you will find your generated files in .docz/dist to copy to the server.

Examples

You can check the complete list of docz examples here.

More info on docz.site

Used by

Contributors

This project exists thanks to all the people who contribute. [Contribute].

Contributing

All kinds of contributions are very welcome and appreciated!

If you want to contribute time to docz then here's a list of suggestions to get you started:

  1. Star the project on GitHub.
  2. Help people in the issues by sharing your knowledge and experience.
  3. Find and report issues.
  4. Submit pull requests to help solve issues or add features.
  5. Influence the future of docz with feature requests.

If you're looking for a place to start make sure to check issues tagged with the good first issue label:

Good First Issue

Read the Contributing Guide before you open a pull request.

You can also sponsor us via OpenCollective to help secure docz's future.

Open Collective

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].