Coder Social home page Coder Social logo

js-doc-parse's People

Contributors

cjolif avatar csnover avatar wkeese avatar

Stargazers

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

Watchers

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

js-doc-parse's Issues

Pass config on command line

I'd really like to be able to pas my config.js on the command line. This will allow a single instance of js-doc-parse to process various projects and versions.

eg node dojo/dojo.js load=parse {pathto}/config

The config could (should?) also hold the module trees I'd like to parse, which again would be very project/version specific.

Cheers

Karl Bishop
[email protected]

dependencies format

before:
define([
'dojo/_base/lang',
'dojo/string',
'../Value',
'../env',
'./util',
'marked/lib/marked.js'
after:
I suggest changing the path to relative, it will allow for
better modularity:
Original version strongly depends on dojo being on the same level as marked
define([
'dojo/_base/lang',
'dojo/string',
'../Value',
'../env',
'./util',
'../../marked/lib/marked'

Does APP folder must keep same directory to dojo

I am trying generate api-docs using js-doc-parse. our project is not kept in same folder to dojo. when run parse. it always report error with
"......Attempting to load a module outside the defined module hierarchy....."

So, is there any solution for APP and dojo not in same folder ??

Dojo.declare()

If I use dojo.declare in place of declare when declaring modules, although my source works fine in the browser this docs parser sets my class to a "string" type in the api browser.

Also, I'm calling dojo.declare in a separate function and then returning the result. I then use this function in place of my imported declare and although I've verified this is working correctly this parser returns an "object" instead of a "class" unless I strictly use the same instance of the "declare" function which I import. Creating a new reference to this declare function also works, but calling it in a function does not.

// Works
define([
    'dojo/_base/declare'
], function (declare) {
    var declare2 = declare;
    return declare2(null, {
        // some stuff
    });
});


// Doesn't work
define([
    'dojo/_base/declare'
], function (declare) {
    var me = this;
    var declare3 = function () {
        // some stuff
        return declare.apply(me, arguments);
    };
    return declare3(null, {
        // some stuff
    })
});

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.