Contributing page
For general contributing guidelines, see the Contributing Guide on DoneJS.com.
Code Organization
bit-docs
└── package.json
Program Flow
When bit-docs gets run, the following flow happens:
bit-docs/bin/bit-docsis triggered, and passed command flags are parsed as options.- Next, the module export in
main.jsis called with thepackage.jsonpath and options.
- Next, the module export in
main.jsuseslib/configure/configure.jsto get asiteConfigwhich is passed tolib/generate/generate.js.configure.jswill install plugin packages defined in thebit-docssection ofpackage.json.- Next,
configure.jswill allow each installed plugin to register itself to whatever handlers.
generate.jstakes that configuration and passes it to those plugins registered as "generator" plugins.
Developing Locally
Setup
Fork and clone this repository. See Fork A Repo and Cloning a repository for help.
Install the packages defined in package.json:
npm install
Build
There is no build step for this repo.
Test
Tests are located in test.js, at the root of this repo.
Getting Help
Our forums and Gitter chat are the best places to ask questions.