You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 21, 2025. It is now read-only.
@@ -25,19 +25,27 @@ Create MDX files showcasing your code and Docz turns them into a live-reloading,
25
25
26
26
## Table of Contents
27
27
28
-
-[📟 Start a New Project](#--start-a-new-project)
29
-
-[➕ Add Docz to an Existing Project](#--add-docz-to-an-existing-project)
30
-
-[🎩 Features](#--features)
31
-
-[🤔 Why?](#--why)
32
-
-[🗃 Examples](#--examples)
33
-
-[👉🏻 More info on our website](#--more-info-on-our-website)
34
-
-[🎛 Plugins](#--plugins)
35
-
-[🌍 Around the world](#--around-the-world)
36
-
-[💪🏻 Contributors](#--contributors)
37
-
-[🤝 Contributing](#--contributing)
38
-
-[💭 Need Help?](#--need-help)
39
28
40
-
## 📟 Start a New Project
29
+
-[Why ?](#why)
30
+
-[Start a New Project](#start-a-new-project)
31
+
-[Add Docz to an Existing Project](#add-docz-to-an-existing-project)
32
+
-[Build](#build)
33
+
-[Deploy](#deploy)
34
+
-[Examples](#examples)
35
+
-[More info on docz.site](#more-info-on-doczsite)
36
+
-[Used by](#used-by)
37
+
-[Contributors](#contributors)
38
+
-[Contributing](#contributing)
39
+
40
+
## Why ?
41
+
42
+
Documenting code is one of the most important and time-heavy processes when developing software.
43
+
44
+
A lot of time is spent on building and maintaining custom documentation sites.
45
+
46
+
Docz enables you to quickly create live-reloading, seo-friendly, production-ready documentation sites with MDX and customize the look, feel and behavior when required by leveraging [GatsbyJS](https://www.gatsbyjs.org) and [Gatsby theme shadowing](https://www.gatsbyjs.org/docs/themes/shadowing/).
47
+
48
+
## Start a New Project
41
49
42
50
Use [create-docz-app](https://www.npmjs.com/package/create-docz-app) to quickly get started :
* This is a pretty good description for this prop.
105
+
* This is a description for this prop.
98
106
* Button type.
99
107
*/
100
108
type: t.oneOf(['button', 'submit', 'reset']),
@@ -105,58 +113,48 @@ Button.defaultProps = {
105
113
exportdefaultButton
106
114
```
107
115
108
-
Finally, run the Docz development server:
116
+
Finally, run:
109
117
110
118
```bash
111
-
$ yarn docz dev
119
+
yarn docz dev
112
120
```
113
121
114
-
That's it! You now have an interactive site to showcase and debug your components, and some badass documentation as a nice bonus 👊
122
+
This will start a local development server and open your documentation site in the browser.
115
123
116
-
## 🎩 Features
124
+
## Build
117
125
118
-
- 🔩 **Powered by Gatsby.** Bundling and ecosystem powered by [Gatsby](https://gatsbyjs.org).
119
-
- 🧘 **Zero config and easy.** Don't worry about complex configurations steps.
120
-
- ⚡️ **Blazing Fast.** Hot reload support and automatic code splitting out of the box.
121
-
- 💅 **Easy to customize.** Create and use real customizable themes.
122
-
- 📝 **[MDX](https://github.com/mdx-js/mdx) Based.** Write markdown enhanced by the power of components.
123
-
- 🎛 **Pluggable.** Use plugins to manipulate and customize Docz to suit your needs.
124
-
- 🔐 **Typescript Support.** Full support for TypeScript. Write your type definitions with no extra setup required.
126
+
`yarn docz build` will generate a static site for your site in `.docz/dist/`.
125
127
126
-
Still not convinced? Check [our docs](http://docz.site) to learn more about **Docz**!
128
+
You can try it out with `yarn docz serve` or by serving the generated site with your favorite static file server (e.g. `npx serve .docz/dist`).
127
129
128
-
## 🤔 Why?
130
+
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`.
129
131
130
-
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**.
132
+
## Deploy
131
133
132
-
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 you want.
134
+
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.
133
135
134
-
## 🗃 Examples
136
+
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.
-**[gatsby](https://github.com/doczjs/docz/tree/master/examples/gatsby)** - Example using Docz in a Gastby project.
142
+
-**[react native](https://github.com/doczjs/docz/tree/master/examples/react-native)** - Using Docz in a React Native project.
143
+
-**[styled-components](https://github.com/doczjs/docz/tree/master/examples/styled-components)** - Using Docz with `styled-components`.
144
+
-**[with typescript](https://github.com/doczjs/docz/tree/master/examples/typescript)** - Using Docz with Typescript.
145
+
-**[with flow](https://github.com/doczjs/docz/tree/master/examples/flow)** - Using Docz with Flow.
146
+
-**[with images](https://github.com/doczjs/docz/tree/master/examples/images)** - Using Docz with images in mdx and jsx.
149
147
150
-
## 👉🏻 More info on [our website](https://docz.site)
148
+
-**[with sass](https://github.com/doczjs/docz/tree/master/examples/sass)** - Using Docz parsing CSS with SASS.
149
+
-**[with less](https://github.com/doczjs/docz/tree/master/examples/less)** - Using Docz parsing CSS with LESS.
150
+
-**[with stylus](https://github.com/doczjs/docz/tree/master/examples/css-stylus)** - Using Docz parsing CSS with Stylus.
151
+
-**with css modules**: works out of the box with gatsby
151
152
152
-
## 🎛 Plugins
153
+
You can check the complete list of docz examples [here](https://github.com/doczjs/docz/tree/master/examples).
153
154
154
-
-**[gatsby-theme-docz](https://github.com/pedronauck/docz/tree/master/core/gatsby-theme-docz)** - Use Docz as a theme for Gatsby.
155
-
-**[netlify](https://github.com/nicholasess/docz-plugin-netlify)** - Deploy your Docz site to [Netlify](http://netlify.com/).
156
-
-**[svg sprite loader](https://github.com/trustedhousesitters/docz-plugin-svg-sprite-loader)** - Docz plugin for SVG sprite loader.
157
-
-**[snapshots](https://github.com/JosephConradBlack/docz-plugin-snapshots)** - A plugin for Docz that creates jest snapshots for all documented component usages.
155
+
## More info on [docz.site](https://docz.site)
158
156
159
-
## 🌍 Around the world
157
+
## Used by
160
158
161
159
-**[Smooth UI](https://smooth-ui.smooth-code.com/)** - Modern React UI library.
162
160
-**[Set Protocol Docs](https://docs.setprotocol.com/)** - Documentation site of Set Protocol.
@@ -167,25 +165,25 @@ Documenting code is one of the most important and time-heavy processes when you'
167
165
-**[React Hotkey Tooltip](https://react-hotkey-tooltip.netlify.com/#/)** - A global Hotkey provider with built in tooltip for React.
168
166
-**[Sajari React SDK](https://sajari-sdk-react.netlify.com/)** - Library of React Components for the Sajari.
169
167
170
-
## 💪🏻 Contributors
168
+
## Contributors
171
169
172
170
This project exists thanks to all the people who contribute. [[Contribute](CONTRIBUTING.md)].
All kinds of contributions are very welcome and appreciated !
179
177
180
-
If you want to contribute time to docz then here's a list to get you started :
178
+
If you want to contribute time to docz then here's a list of suggestions to get you started :
181
179
182
-
1.⭐️ Star the project
183
-
2.💬 Help people in the [issues](https://github.com/doczjs/docz/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc) by sharing your knowledge and experience
184
-
3.🐛 Find and report issues
185
-
4.📥 Submit PRs to help solve issues or add features
186
-
5.✋ Influence the future of docz with feature requests
180
+
1. Star the project.
181
+
2. Help people in the [issues](https://github.com/doczjs/docz/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc) by sharing your knowledge and experience.
182
+
3. Find and report issues.
183
+
4. Submit PRs to help solve issues or add features.
184
+
5. Influence the future of docz with feature requests.
187
185
188
-
If you're looking for a place to start make sure to check issues tagged with
186
+
If you're looking for a place to start make sure to check issues tagged with :
189
187
190
188
[](https://github.com/doczjs/docz/issues?q=is%3Aopen+is%3Aissue+label%3A%22good+first+issue%22)
191
189
@@ -197,11 +195,4 @@ You can also contribute money to help secure docz's future.
If you need some help, feel free to open an issue with a description of the problem you're facing or chat with us on [our Spectrum Community](https://spectrum.chat/docz).
0 commit comments