Giter Site home page Giter Site logo

es-code-docer's Introduction

ES Code Docer

Greenkeeper badge Build Status David GitHub release npm npm

ES Code Docer is a modern code documentation tool for ECMAScript. The CLI application is designed for ECMAScript modules and supports the JSDoc comment syntax. Source Code files are parsed with the acorn ECMAScript parser and analysed for type information. The identified type information will be combined with the JSDoc type annotations and then rendered into the documentation.

Notice

ES Code Docer is not quite complete yet. If you have trouble running it on your project, feel free to file an issue for it.

Installation

npm -g i es-code-docer

Usage

es-code-docer ./src/

Multiple source files can be specified. For every file code docer will search for a package.json in order to deduce the project root. Currently there are three options for rendering the documentation which are hard coded at the moment. The options will be exposed soon and can be changed inside the index.js file for the time being.

Supported Render Outputs

ES Code Docer currently only implements a Markdown renderer, to implement additional renders should be straight forward though.

Supported JSDoc Tags

At the moment only the most important JSDoc tags are supported in the code docer.

  • @type
  • @return(s)
  • @private
  • @param
  • @deprecated

If not specified aliases are not supported. ES Code Docer tries to implement the JSDoc tags the way they are specified by JSDoc, but this is not always possible. JSDoc namepaths are not supported and most likely will never be. This is due to the fact, that ES Code Docer is based on the ECMAScript modules and does not implement the JSDoc module system.

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.