Contributions, issues and feature requests are very welcome.
If you are using this package and fixed a bug for yourself, please consider submitting a PR!
- Node:
^9.0.0
or higher. - Npm:
6.0.0
or higher. - Yarn:
^1.7.0
or higher.
Clone the project from Github :
git clone [email protected]:doczjs/docz.git
cd docz
Install dependencies :
yarn
Setup development environment:
yarn dev
That's it you're ready to start contributing 👍!
The example docz app is in dev-env/basic
and runs on http://localhost:3000
You can change any of the core packages and see the effect or edit the mdx and jsx in dev-env/basic
- Builds and watches all core docz packages.
- Copies build output to local dev-env node_modules on every change.
- Runs a docz app on
http://localhost:3000/
that listens to changes of docz packages' build output.
Feel free to join our contributors' slack channel for longer form discussion.
docz follows the Monorepo design managed by Lerna.
The are just two directories to care about if you would like to contribute:
- Packages: Host all docz source code.
- Examples: Host all available usage examples.
There are lots of packages that are necessary to run docz, the most important packages that are important to care about:
- This is the core of docz. All build algorithms, server process and parses belongs to here.
- If you break this package, probably you'll break all packages! Please, be careful.
- All CLI commands are built here and imported on
docz
package using./bin
script. - Do not create scripts that run on browser here, only node scripts.
- Main and top level package.
- Scripts that run on browser belongs to this package
- Built-ins components are built here, most specifically on this folder
- This package shouldn't have any component style, just boilerplate and logic!
If there are some plugins that you want to create, please contact me before to talk about the possibility to make this plugin official!
Commit messages should follow the commit message convention so, changelogs could be generated automatically by that. Commit messages are validated automatically upon commit. If you aren't familiar with the commit message convention, you can use yarn commit (or npm run commit
) instead of git commit, which provides an interactive CLI for generating proper commit messages.
-
Work in the src folder of a respective package and DO NOT check
dist
in the commits. -
It's OK - and a very nice thing - to have multiple small commits as you work on the PR - we will let GitHub automatically squash it before merging.
- Make sure that all examples are running as expected
- Provide convincing reason to add this feature. Ideally you should open a suggestion issue first and have it greenlighted before working on it.
This project exists thanks to all the people who contribute.