GithubHelp home page GithubHelp logo

codeactual / apidox Goto Github PK

View Code? Open in Web Editor NEW
14.0 14.0 2.0 328 KB

Generate node.js module API markdown with dox

License: MIT License

JavaScript 100.00%
api-documentation documentation javascript nodejs

apidox's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

apidox's Issues

Allow full source description

I'd like an option to include the full source description -
i.e. in prependSourceDesc, to use this.fileComment.description instead of this.fileComment.description.summary

Grunt task grunt-apidox

Hi-
I wrote a really small grunt task for apidox (pasted below). Do you want to put it into apidox or should I create a separate module?

var apidox = require('apidox');

module.exports = function (grunt)
{
    grunt.registerTask('apidox', 'Generate node.js API markdown with dox',
    function ()
    {
        grunt.config.requires('apidox.input', 'apidox.output');

        var input = grunt.config('apidox.input'),
            output = grunt.config('apidox.output'),
            dox = apidox.create();

        dox.set('input', input);
        dox.set('output', output);

        dox.parse()
        grunt.file.write(output, dox.convert());
    });
};

Support @throws

It would be great to be able to use @throws when you know a function can throw an exception.

Upgrade to latest dox (vulnerability)

I did a npm install apidox. All installed fine. However, dox version 0.4.6 is getting installed as a dependency.
Now, apidox's package.json says:

"dox": "^0.4.4"

which is fine but npmjs.com says the latest version of dox is 0.9.0.

Now, I had thought that the caret would allow anything below 1.0.0. However, then I read this on https://docs.npmjs.com/misc/semver:

Caret Ranges ^1.2.3 ^0.2.5 ^0.0.4
Allows changes that do not modify the left-most non-zero digit in the [major, minor, patch] tuple. In other words, this allows patch and minor updates for versions 1.0.0 and above, patch updates for versions 0.X >=0.1.0, and no updates for versions 0.0.X.

which means we'll not get the latest dox.

The reason I want apidox to use the latest dox is I just got emails from github saying there's a vulnerability in a dependency (marked 0.3.6). This used to be used by dox but it now uses markdown-it.

Disable/specify source

Sometimes it would be nice to specify

dox.set('source', false) // don't include "Source: ..."

dox.set('source', 'foo.js') // override the list of files displayed as the Source

No longer testable

npm ERR! Error while executing:
npm ERR! /usr/bin/git ls-remote -h -t git://github.com/codeactual/node-component-grunt.git
npm ERR! 
npm ERR! fatal: remote error: 
npm ERR!   Repository not found.

Did you delete node-component-grunt?

Docs wrong

Docs say

  • var dox = require('apidox').create();
    
  • var markdown = dox
    
  •   .set('input', '/path/to/source.js')
    
  •   .set('output', '/path/to/output.md')
    
  •   .parse()
    
  •   .convert();
    

But I found I had to do

  • var dox = require('apidox').create();
    
  • dox
    
  •   .set('input', '/path/to/source.js')
    
  •   .set('output', '/path/to/output.md')
    
  •   .parse();
    
  • var markdown = dox.convert();
    

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.