Generates github wiki compatible API documentation from your project's jsdocs and adds them to your wiki.
Want to see pretty graphs? Log in now!
npm install wicked
|1||downloads in the last day|
|3||downloads in the last week|
|613||downloads in the last month|
|Last Published By|
|Version||0.2.1 last updated 24 days ago|
|Keywords||jsdoc, documentation, generate, wiki, github, comments|
|Dependencies (14)||find-parent-dir, jsdoc, jsdoc-githubify, minimist, mkdirp, mutiny, npmlog, readdirp, require-module, resolve-git-remote, rimraf, runnel, through2, update-section|
A tool that generates github wiki compatible API documentation from your project's jsdocs and adds them to your wiki.
That is wicked!
npm install -g wicked
- Create wiki by checking
wikiin your project Features settings
- Initialize wiki by accessing the wiki (the book icon in the navbar) which links to
- Install wicked
npm install -g wicked
- Go to the root of your github project on your machine
Steps 4 - 5 can be repeated everytime you want to re-generate API docs for your project.
wicked does not overwrite other pages you created in your wiki so keep running wicked all you need.
More specifically wicked only removes old
*.API.md files from your wiki and updates the links
_Sidebar.md without affecting any other links in the sidebar.
See an example of API docs added by
wicked in its own wiki.
Command Line Options
usage: wicked <wicked-options> -- <jsdoc-options> Generates wiki API docs for the gihub project in the current directory. Both options are optional, jsdoc-options get passed to [jsdoc](http://usejsdoc.org/about-commandline.html). Note: overriding the jsdoc destination (-d, --destination) is not possible since wicked will write files to a temp dir OPTIONS: --noclean don't remove the temp directory into which wiki is checked out when finished --nocommit don't commit the updated wiki automatically nor remove the temp directory -l, --loglevel level at which to log: silly|verbose|info|warn|error|silent -- default: info -h, --help Print this help message. EXAMPLES: Generate with default options: wicked Override [jsdocconf.json](http://usejsdoc.org/about-configuring-jsdoc.html): wicked -- --configure ./myconf.json Override loglevel and jsoc configuration and don't remove temp directory: wicked --loglevel silly --noclean -- --configure ./myconf.json
Helpful links and techniques
In order to avoid all functions being attached to the
global namespace resulting in one API page per function, I namespaced functions in wicked with
@memberof working together. As an example the
Internal namespace is defined
here and used by all
the lib functions like this
Feel free to study the commenting style used in wicked itself and compare with the wiki pages it produced.
In order to make your wicked API pages appear properly styled, please install the chrome extension or bookmarklet.
<static> wicked(args, jsdocargs, cb)
Generates jsdoc wiki pages for project of current working directory and updates github wiki with them.
It is assumed that this is run from the root of the project whose wiki should be generated. Additionally the currently checked out branch will be used when generating blob urls to link source examples.
However the github remote and branch can also be set via environment vars as explained in the documentation of jsdoc-githubify which is used by wicked under the hood.
Name Type Description
consumed by wicked
Name Type Argument Description
(false) if true, the temp directory into which wiki is checked out will not be removed when done
if true, the updated wiki will not be committed automatically
(info) level at which to log: silly|verbose|info|warn|error|silent
consumed by jsdoc
called back when wicked finished generating the wiki page
generated with docme