Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

doxx

FGRibreau1.6k2.1.1

Generic, template based, HTML output for Dox documentation generator

dox, jsdox, documentor, documentation, docs, dox

readme

Doxx Deps Version Version

Doxx is a total refactoring of dox-foundation written in ES6, tranformed to ES5 with Babel, and is based on dox. It can automatically generate beautiful documentations and can further spice up your documentations using themes.

By default, Doxx uses doxx-theme-default which uses Twitter Bootstrap for the frontend framework and Prism.js for syntax highlighting.

Docs

The beautifully documentation can be found at GitHub.

Installation

# Install the module globally
$ npm i -g doxx

Usage

JavaScript JavaDoc style

/**
 * Create an array of all the right files in the source dir
 * @param      {String}   source path
 * @param      {Object}   options
 * @param      {Function} callback
 * @jsFiddle   A jsFiddle embed URL
 * @return     {Array} an array of string path
 */
function collectFiles(source, options, callback) {
  ...
}

CoffeeScript JavaDoc style

###*
 * Create an array of all the right files in the source dir
 * @param      {String}   source path
 * @param      {Object}   options
 * @param      {Function} callback
 * @jsFiddle   A jsFiddle embed URL
 * @return     {Array} an array of string path
###
collectFiles = (source, options, callback) ->
  ...

Notes

  • Doxx supports the following variations of @return and @jsFiddle:
    • @return, @returns
    • @jsfiddle, @jsFiddle, @JSFiddle

CLI

$ doxx --help

  Usage: doxx [options]

  Commands:
    cache                         Manages the Doxx cache. The available commands are clean and remove.

  Options:

    -h, --help                    Outputs usage information.
    -V, --version                 Outputs the version number.
    -r, --raw                     Outputs "raw" comments, leaving the markdown intact.
    -d, --debug                   Outputs parsed comments for debugging.
    -t, --title <string>          The title for the page produced.
    -s, --source <source>         The folder which should get parsed.
    -i, --ignore <directories>    Comma seperated list of directories to ignore. Default: test, public, static, view, views, templates.
    -T, --target <target>         The folder which will contain the results. Default: <CWD>/docs
    -e, --extension <extension>   Target files extension. Default: html
    -j, --template <template>     The Jade template file to use.
    -b, --theme <theme>           The name of the theme. e.g. doxx-theme-cayman or cayman.
  Examples:

    # parse a whole folder
    $ doxx --source lib --target docs

    # parse a whole folder and use a specific template
    $ doxx --template ./view/myowntpl.jade --source lib --target docs

Themes

Usage

With the release of 2.1.0, you are able to use different themes to spice up your documentations. To install a theme, simply use the --theme option followed by the name of the theme:

$ doxx --source lib --target docs --theme cayman
# or
$ doxx --source lib --target docs --theme doxx-theme-cayman

Notes

  • The prefix doxx-theme- is not necessary except when publishing your own themes.
  • While it is still possible to use templates, I would advise you to use themes instead.

Creating Themes

If you would like to create your own themes, see doxx-theme-starter-kit.

  • grunt-doxx - Doxx grunt plugin automatically generates the documentation for your project.
  • gulp-doxx - Doxx documentation generator for gulp.

Roadmap

3.0.0

  • Switch the backend from bower to npm for themes. #79
  • Re-introduce Doxx with a new name. #83

Contributing

In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using gulp and mocha.

Changelog

The changes can be viewed here.

License

MIT License

Copyright (c) 2013 Francois-Guillaume Ribreau

changelog

Change Log

v2.1.0 (2015-09-14)

Full Changelog

Implemented enhancements:

  • Use update-notifier #78

  • Generate critical path from CSS #43

  • Minify CSS and JS #42

  • broken when viewed from https server #5

Merged pull requests:

v2.0.0 (2015-09-03)

Full Changelog

Closed issues:

  • Using @description tag doubles the description #70

  • TypeLexerSyntaxError #69

  • Get exception when running doxx --source lib --target docs #64

Merged pull requests:

v1.5.0 (2015-07-21)

Full Changelog

Merged pull requests:

v1.4.0 (2015-05-30)

Full Changelog

Merged pull requests:

v1.3.0 (2015-05-26)

Full Changelog

v1.2.8 (2015-05-26)

Full Changelog

v1.2.7 (2015-05-26)

Full Changelog

Closed issues:

  • Official template - return issue #65

  • praise: this is awesome #62

Merged pull requests:

v1.2.6 (2015-03-18)

Full Changelog

Closed issues:

  • Information in the @return #56

  • TypeError 'undefined' when @return is empty #54

Merged pull requests:

v1.2.5 (2015-01-31)

Full Changelog

Closed issues:

  • Weird return statement display + markup showing in the output. #58

Merged pull requests:

v1.2.4 (2015-01-22)

Full Changelog

v1.3.4 (2015-01-22)

Full Changelog

v1.2.3 (2015-01-22)

Full Changelog

v1.2.2 (2015-01-22)

Full Changelog

Closed issues:

  • TypeError thrown in target option not specified #52

Merged pull requests:

v1.2.1 (2014-11-21)

Full Changelog

Merged pull requests:

  • #52 Fixes TypeError thrown if target option not passed. #53 (gwagroves)

v1.2.0 (2014-11-19)

Full Changelog

Merged pull requests:

  • Adding the ability to send in pre-compiled dox source #51 (leejt489)

v1.1.1 (2014-11-05)

Full Changelog

Implemented enhancements:

  • Expose doxx as a Node module #37

Closed issues:

  • Error message when npm installing #48

Merged pull requests:

v1.1.0 (2014-11-05)

Full Changelog

Closed issues:

  • Ability to rename module name #46

  • Ability to ignore code blocks #45

  • CSS doesn't load on first load #44

  • Nav flickers when browser height is too short #41

  • Whitespace is missing between credits links #40

  • Displaying @return/@returns #35

  • Menu paths are incorrect on Windows #33

  • Doxx don't work with symbolic links #32

  • Functions within objects are not handled properly #26

Merged pull requests:

v1.0.0 (2014-10-16)

Full Changelog

Fixed bugs:

  • Dollar symbol breaking the UI #15

Closed issues:

  • gittip image in README is 404ing #39

  • Doxx grunt task #31

  • Functions within objects are not handled properly #27

  • Doesn't work out-of-the-box #24

  • Inline comments break the output HTML #23

  • generating docs on Windows (MSYSGIT) does not work #6

Merged pull requests:

  • Fixes style distruptancies for sidenav on long paths and lists #30 (wojciak)

  • Dangling text for symbol.name caused jade 1.1.5 to create a html element... #29 (wojciak)

  • Upgrade to latest version of Jade. #28 (hiddentao)

  • Add target_extension option #25 (llamerr)

  • Changed README.md and examples to include new jsFiddle option #22 (orweinberger)

  • Added an option to include jsFiddle embed links within code comments #21 (orweinberger)

  • Regenerating docs with unreleased version of doxx #20 (eddywashere)

  • Update template.jade for change bootstrap urls #19 (wondersloth)

  • Show README.md in index.html #17 (ilsken)

  • Fixes for Windows support #16 (itamarro)

v0.6.0 (2013-04-28)

Full Changelog

Closed issues:

  • doxx breaks, if no package.json exists #9

Merged pull requests:

v0.5.9 (2013-02-16)

Full Changelog

Fixed bugs:

  • Doxx doesn't handle well multiple parameters #2

Merged pull requests:

  • bugfix for multiple @param tags #3 (andban)

  • Fix crash when subdirs present in source #1 (seangarner)

v0.5.8 (2013-01-13)

Full Changelog

v0.5.7 (2013-01-13)

Full Changelog

v0.5.6 (2013-01-12)

Full Changelog

v0.5.5 (2013-01-12)

Full Changelog

v0.5.4 (2013-01-12)

Full Changelog

v0.5.3 (2013-01-12)

Full Changelog

v0.5.2 (2013-01-12)

Full Changelog

v0.5.1 (2013-01-12)

Full Changelog

v0.5.0 (2013-01-12)

Full Changelog

v0.3.3 (2012-10-19)

Full Changelog

v0.3.2 (2012-10-19)

Full Changelog

v0.3.1 (2012-10-06)

Full Changelog

v0.2.0 (2012-09-29)

* This Change Log was automatically generated by github_changelog_generator