ランキングに戻る

pedronauck/docz

TypeScript

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

docsdocumentationjsreactzero-configurationuidesign-systemgatsbymdxdocztheme
スター成長
スター
23.6k
フォーク
1.4k
週間成長
Issue
108
23.6k23.6k23.6k
7月18日7月19日7月20日7月21日
成果物npmnpm install docz
README

Docz

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.

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.

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.

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

関連リポジトリ
freeCodeCamp/devdocs

API Documentation Browser

RubyRubyGemsMozilla Public License 2.0devdocsdocumentation
devdocs.io
39.2k2.6k
docsifyjs/docsify

🃏 A magical documentation site generator.

JavaScriptnpmMIT Licensedocumentationdocumentation-tool
docsify.js.org
31.4k5.8k
doczjs/docz

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

TypeScriptnpmMIT Licensedocsdocumentation
docz.site
23.7k1.5k
github/docs

The open-source repo for docs.github.com

TypeScriptnpmCreative Commons Attribution 4.0 Internationaldocsworks-with-codespaces
docs.github.com
20.5k67.9k
scalar/scalar

Scalar is an open-source API platform:                                       🌐 Modern REST API Client                                        📖 Beautiful API References                                        ✨ 1st-Class OpenAPI/Swagger Support

TypeScriptnpmMIT Licenseapidocs
scalar.com
15.6k900
jsdoc/jsdoc

An API documentation generator for JavaScript.

JavaScriptnpmApache License 2.0jsdocjavascript
jsdoc.app
15.4k1.5k
dotnet/AspNetCore.Docs

Documentation for ASP.NET Core

C#Creative Commons Attribution 4.0 Internationalaspnetcoreaspnet-core
docs.microsoft.com/aspnet/core
13.1k24.7k
zealdocs/zeal

Offline documentation browser. Your personal reference library, searchable in an instant.

C++GNU General Public License v3.0documentationdocset
zealdocs.org
12.7k834
fuma-nama/fumadocs

The beautiful & flexible React.js docs framework.

TypeScriptnpmMIT Licenseapp-routerdocs
fumadocs.dev
12.6k703
chaitin/PandaWiki

PandaWiki 是一款 AI 大模型驱动的开源知识库搭建系统,帮助你快速构建智能化的 产品文档、技术文档、FAQ、博客系统,借助大模型的力量为你提供 AI 创作、AI 问答、AI 搜索等能力。

TypeScriptnpmGNU Affero General Public License v3.0aidocument
pandawiki.docs.baizhi.cloud
10k993
matheusfelipeog/beautiful-docs

Pointers to useful, well-written, and otherwise beautiful documentation.

MIT Licensebeautiful-docsdocs
9.5k605
readthedocs/readthedocs.org

The source code that powers readthedocs.org

PythonPyPIMIT Licensepythondocs
readthedocs.org
8.4k3.7k