sitepen / js-doc-parse Goto Github PK
View Code? Open in Web Editor NEWAn experimental library for parsing JavaScript files and extracting inline documentation.
An experimental library for parsing JavaScript files and extracting inline documentation.
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]
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'
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 ??
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
})
});
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.