Create your document site with only ONE command.
Life gets easier
To create your document site, just:
npm install document -g cd /path/to/your/repo document
Oh YEAH! That's it! We made it!
- Could not be easier ! Just ONE command!
- Build with node.js, yeah !
- Support CommonJS package/1.0 spec.
- Designed to minimize arguments and configurations as much as possible.
- Support documents of multiple languages.
- Supports GitHub Flavored Markdown.
- Lovely and SEO friendly URLs.
- Application cache so that to afford heavy traffic.
- Custom themes and dev guide with
grunt-inittask. (what's comming...)
documentmiddleware for express.js. (what's comming...)
Visit the document site for details.
By default, if your repo is based on commonjs,
document will use the
directories.doc field of the package.json as the document root.
If there's no package.json or no
document will use
'doc' folder by default.
But you can specify it by using
--doc argument, for example:
document --doc /somewhere/else
It's best to use
document command at the root of your repo, in order to read the package.json.
document will try to read the 'config.json' file inside the
doc folder, which has higher priority upon 'package.json'.
- title: the document title of the web page
- tagline: the description
Why a node.js version of daux.io?
The first time I met daux.io: Wow.
Setting up nginx conf and tring to install daux.io under a sub path: Oh no!
Spelunking into the source code: _(:3」∠)_
firstname.lastname@example.org uses the theme of daux.io, thanks a million.
Actually, all those features below has been designed and implemented at the very beginning of
document, but they were not fully tested yet.
I will release them immediately when the test cases are ok.
- You will be able to
require('document')as an express middleware. (actually it already is)
- Custom themes support.
- Programmatical APIs.
- Watcher support so that you can uodate your documents without restarting your server.