Files
docz/README.md
Jabur ac359cee5e feat: integration with react native (#271)
Feature: integration with react native 🌉
2018-09-01 21:12:52 -03:00

171 lines
9.6 KiB
Markdown
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<p align="center">
<a href="https://opencollective.com/docz" target="_blank">
<img src="https://cdn-std.dprcdn.net/files/acc_649651/Q5nVhT" height="80" alt="Open Collective">
</a>
<a href="https://www.patreon.com/pedronauck" target="_blank">
<img src="https://cdn-std.dprcdn.net/files/acc_649651/plrSCT" height="80" alt="Patreon">
</a>
</p>
<p align="center" style="margin-bottom: -20px">
<img src="https://cdn-std.dprcdn.net/files/acc_649651/BSPk3z">
</p>
<p align="center">
<img src="https://badgen.net/npm/v/docz" alt="">
<img src="https://badgen.net/badge/license/MIT/blue" alt="">
<img src="https://badgen.net/npm/dt/express" alt="">
<a href="https://discord.gg/YQE4MbD">
<img src="https://img.shields.io/badge/chat-on%20discord-7289da.svg" alt="Chat">
</a>
<a href="https://discord.gg/YQE4MbD">
<img src="https://img.shields.io/badge/check-our%20roadmap-5362F5.svg" alt="Chat">
</a>
</p>
<p align="center">
<a href="http://docz.site" target="_blank">
<img src="https://cdn-std.dprcdn.net/files/acc_649651/lvs55S" alt="Docz video">
</a>
</p>
## 🙌🏻 &nbsp; Sponsors
Thanks for all people that support us 🙏🏻
<a href="https://impulso.work" target="_blank">
<img src="https://cdn-std.dprcdn.net/files/acc_649651/OosgCe" width="60">
</a>
## 🎩 &nbsp; Features
- 🧘 **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 Based.** Write markdown with all power of components.
- 🎛 **Pluggable.** With plugins, you can manipulate a lot of things through the docz flow and data.
- 🔐 **Typescript Support.** We have a full support for your type definitions.
## 🚀 &nbsp; Roadmap
We still have a *long road to go*, this is just the beginning. So to further improve **docz** we've created a roadmap so that you can see the next features and improvements and **give your feedback about**:
<a href="http://feedback.docz.site/roadmap" target="_blank">
<img src="https://cdn-std.dprcdn.net/files/acc_649651/ogSCYY" alt="Docz Roadmap" width="300">
</a>
## 🤔 &nbsp; Why?
Libraries that make our life easier coming up every day. Styleguides and design system are growing so fast. Today, tools that allow us to be quick and effective in what we are doing are really necessary. We can't lose time with tasks that should be trivial for us. Thinking about that **docz** came out.
Documenting our things is one of the most important and heavy processes when you're creating something new. We waste a lot of time with unnecessary setups to build something that can represent and we want with our own style.
## 👉🏻 &nbsp; More info on [our website](https://docz.site)
- [Introduction](http://www.docz.site/introduction)
- [Getting Started](http://www.docz.site/introduction/getting-started)
- [Writing MDX](http://www.docz.site/introduction/writing-mdx)
- [Documenting your Things](http://www.docz.site/introduction/documenting-your-things)
- [Customizing](http://www.docz.site/introduction/customizing)
- [Deploying your docs](http://www.docz.site/introduction/deploying-your-docs)
- [Documentation](http://www.docz.site/documentation)
- [Project Configuration](http://www.docz.site/documentation/project-configuration)
- [Components API](http://www.docz.site/documentation/components-api)
- [Creating Themes](http://www.docz.site/documentation/creating-themes)
- [CreatingPlugins](http://www.docz.site/documentation/creating-plugins)
- [Themes](http://www.docz.site/themes)
- [Plugins](http://www.docz.site/plugins)
- [Repository of Website](https://github.com/pedronauck/docz-website)
## 🎛 &nbsp; Plugins
- **[css](https://github.com/pedronauck/docz/blob/master/packages/docz-plugin-css)** - Parse css files inside your documents
- **[babel6](https://github.com/pedronauck/docz/blob/master/packages/docz-plugin-babel6)** - Use this plugin to use older babel version **[DEPRECATED]** ⚠️
- **[react-native](https://github.com/pedronauck/docz/blob/master/packages/docz-plugin-svgr)** - Allow you to use docz with React Native
- **[svgr](https://github.com/pedronauck/docz/blob/master/packages/docz-plugin-svgr)** - Allow you to parse svg using svgr
## 🗃 &nbsp; Examples
- **[basic](https://github.com/pedronauck/docz/tree/master/examples/basic)** - Some basic example
- **[react-native-flow](https://github.com/pedronauck/docz/tree/master/examples/react-native-flow)** - Using in a React Native project with flow
- **[react-native-prop-types](https://github.com/pedronauck/docz/tree/master/examples/react-native-prop-types)** - Using in a React Native project with propTypes
- **[babel 6](https://github.com/pedronauck/docz/tree/master/examples/babel6)** - Using docz with Babel@6 ***(DEPRECATED)***
- **[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/tree/master/examples/css-sass)** - Using docz parsing css with Sass
- **[with less](https://github.com/pedronauck/docz/tree/master/examples/css-less)** - Using docz parsing css with Less
- **[with postcss](https://github.com/pedronauck/docz/tree/master/examples/css-postcss)** - Using docz parsing css with PostCSS
- **[with stylus](https://github.com/pedronauck/docz/tree/master/examples/css-stylus)** - Using docz parsing css with Stylus
## 🚧 &nbsp; Warning!
> Due to performance issues **docz** uses babel 7 and webpack 4. So, if you're using some older version of this packages you'll probably get some errors! About webpack 4 we can't do anything, but about babel, we indicate that you update your babel version. You can do that just by running [babel-upgrade](https://github.com/babel/babel-upgrade):
```bash
npx babel-upgrade --write
```
## 📟 &nbsp; Install and Usage
Simplicity is one of our core principles. Therefore, getting started with **docz** is something really easy and quick. First of all, you will need to install **docz** on your project using some package managers
```bash
$ yarn add docz --dev
```
Then create some `.mdx` anywhere inside your project:
```markdown
---
name: Button
---
import { Playground, PropsTable } from 'docz'
import Button from './'
# Button
<PropsTable of={Button} />
## Basic usage
<Playground>
<Button>Click me</Button>
<Button kind="secondary">Click me</Button>
</Playground>
```
Now just run your dev server:
```bash
$ yarn docz dev
```
That's it! Now you have a real badass documentation 👊
![](https://cdn-std.dprcdn.net/files/acc_649651/7RRXv)
Any doubt? Check [our docs](http://docz.site) to see more about **docz**!
## 🤝 &nbsp; Contributions
Contributions, issues and feature requests are very welcome.
Please make sure to read the [Contributing Guide](/CONTRIBUTING.md) before making a pull request.
## 💪🏻 &nbsp; Contributors
This project exists thanks to all the people who contribute. [[Contribute](CONTRIBUTING.md)].
<a href="https://github.com/pedronauck/docz/graphs/contributors"><img src="https://opencollective.com/docz/contributors.svg?width=890&button=false" /></a>
## 💭 &nbsp; Needing Help?
If you need some help you can chat with us on [our Discord server](https://discord.gg/Qec87en), you have a great team to help you:
<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
<!-- prettier-ignore -->
| [<img src="https://avatars3.githubusercontent.com/u/2029172?v=4" width="60px;"/><br /><sub><b>Pedro Nauck</b></sub>](https://github.com/pedronauck)<br />[💻](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") | [<img src="https://avatars3.githubusercontent.com/u/5435657?v=4" width="60px;"/><br /><sub><b>Marcelo Formentão</b></sub>](https://github.com/marceloavf)<br />[💻](https://github.com/pedronauck/docz/commits?author=marceloavf "Code") [📖](https://github.com/pedronauck/docz/commits?author=marceloavf "Documentation") [🐛](https://github.com/pedronauck/docz/issues?q=author%3Amarceloavf "Bug reports") | [<img src="https://avatars0.githubusercontent.com/u/3238901?s=460&v=4" width="60px;"/><br /><sub><b>Nicholas Eduardo</b></sub>](https://github.com/nicholasess)<br />[💻](https://github.com/pedronauck/docz/commits?author=nicholasess "Code") [📖](https://github.com/pedronauck/docz/commits?author=nicholasess "Documentation") [🐛](https://github.com/pedronauck/docz/issues?q=author%3Anicholasess "Bug reports") | [<img src="https://avatars2.githubusercontent.com/u/3277185?v=4" width="60px;"/><br /><sub><b>Renato Ribeiro</b></sub>](http://twitter.com/renatorib_)<br />[💻](https://github.com/pedronauck/docz/commits?author=renatorib "Code") [📖](https://github.com/pedronauck/docz/commits?author=renatorib "Documentation") [🐛](https://github.com/pedronauck/docz/issues?q=author%3Arenatorib "Bug reports") | [<img src="https://avatars0.githubusercontent.com/u/13947203?v=4" width="60px;"/><br /><sub><b>Guilherme Jabur</b></sub>](https://github.com/jaburcodes)<br />[💻](https://github.com/pedronauck/docz/commits?author=jaburcodes "Code") [📖](https://github.com/pedronauck/docz/commits?author=jaburcodes "Documentation") [🐛](https://github.com/pedronauck/docz/issues?q=author%3Ajaburcodes "Bug reports") |
| :---: | :---: | :---: | :---: | :---: |
<!-- ALL-CONTRIBUTORS-LIST:END -->