faxx
v0.6.1
Published
π from repo/π β¨ wherever/π
Downloads
24
Keywords
Readme
Faxx
It's fun keeping docs and the code to which it refers together, but docs need to get out and about to be useful! Faxx teleports docs from a GitHub repository to wherever you heart desires.
Development
Faxx is compiled with Babel, src
=> dist
.
$ npm run build
Will watch and rebuild by default.
Usage
Install it everywhere
$ npm i -g faxx
Make faxx
part of your build process.
$ npm i --save-dev faxx
Teleportation
$ faxx -r manifold/torus -o app/docs
Keep an eye on a local docs directory
$ faxx -l ../manifold/torus -o app.docs
See --help
for additional options.
Import indexed documentation
Once the documentation is where you needed it, just import it.
import docs from './docs '
This assumes you're using babel-raw
in tandem with some sort of md => ? transpiler.
Structure
βββ src
β βββ catalog.js # Index documentation
β βββ download.js # Download tars from GitHub
β βββ github.js # Fetch GitHub releases
β βββ index.js # Glue everything together
β βββ local.js # Local watch and build
β βββ options.js # Options
β βββ output.js # Output to fs
β βββ spinners.js # Spinners (even sometimes work)
βββ dist # Compiled files
βββ docs
βββ bin
Roadmap
- [ ] Much needed refactor
- [ ] Better (any) error messages
- [ ] Serve fetched documentation
- [ ] Examples, and better documentation