Coder Social home page Coder Social logo

mr-doc's Introduction

Mr. Doc by Ben Matsuya

Artwork by Ben Matsuya.

Deps npm Build GitHub license npm

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

By default, Mr. Doc uses mr-doc-theme-default which uses Twitter Bootstrap for the frontend framework and Prism.js for syntax highlighting.

Visit the official site for instructions to install Mr. Doc and other themes.

Documentation Style

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) {
  ...
}

Notes

  • Mr. Doc supports the following variations of @return and @jsFiddle:
    • @return, @returns
    • @jsfiddle, @jsFiddle, @JSFiddle

CLI

$ mr-doc --help

  Usage: mr-doc [options]

  Options:

    -h, --help                    Outputs usage information.
    -V, --version                 Outputs the version number.
    -e, --extension <extension>  The output files extension. Default: html
    -i, --ignore <directories>   The comma seperated list of directories to ignore. Default: test,public,static,view,views,template,templates
    -j, --template <template>    The Jade template file to use.
    -k, --kit [kit]              Marks the template as a starter-kit with a 'yes' or 'no' (optional).
    -n, --name <name>            The name of your project.
    -o, --output <output>        The directory for the generated docs. Default: <CWD>/docs
    -r, --readme <file>          The markdown file to use on the main page of the documentations. Checks the current directory for a package.json or README.md by default
    -s, --source <source>        The directory to your source.
    -t, --theme <theme>          The name of the theme to select. e.g. mr-doc-theme-cayman or cayman.

Related

  • grunt-mrdoc - mr-doc grunt plugin automatically generates the documentation for your project.
  • gulp-doxx - mr-doc documentation generator for gulp.

Roadmap

Next

See issue #94.

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.

Updating Docs

To update the docs on the gh-pages branch:

gulp docs

Changelog

The changes can be viewed here.

Donate

License

MIT License

Copyright (c) 2015 Francois-Guillaume Ribreau

mr-doc's People

Contributors

andban avatar cliftonc avatar evertton avatar fgribreau avatar gwagroves avatar hiddentao avatar iwatakeshi avatar jharwig avatar leejt489 avatar llamerr avatar mattmcmanus avatar nicolasbrugneaux avatar orweinberger avatar rogernoble avatar scottnath avatar sdepold avatar seangarner avatar tarqd avatar trusktr avatar wojciak avatar wondersloth avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.