Comments (6)
I'm agree with you it could be a nice feature!
from grunt-jsdoc.
Another nice feature would be to keep track of inline comments. I can see this making it possible to document a lot more interesting things within code, and convert them in to an easy-to-read format. It also would help computers make inferences between computational procedures and verbal communication. Could be neat.
Are you spending much time on this project these days? I've been thinking for a while about a code documentation JSON Schema based on the jsdoc3 spec. I'd be willing to pitch in a few drafts.
from grunt-jsdoc.
Definitely agree.
I had also in mind to rewrite the jsdoc parser using node instead of rhino (and the complex legacy system that comes with jsdoc3), to be able to integrate some features like docco's code and comments layout and so on.
from grunt-jsdoc.
You can get the JSdoc JSON object by running jsdoc with the --explain
flag.
from grunt-jsdoc.
I am trying to get the JSON file. I use the --explain
flag and get the correct result without Grunt. Using Grunt and your plugin I get the standard JSDoc output, but as I said need the JSON file. I found in the cli.js file (line 388) this code where --explain
is handled:
cli.processParseResults = function() {
if (env.opts.explain) {
cli.dumpParseResults();
}
else {
cli.resolveTutorials();
cli.generateDocs();
}
return cli;
};
cli.dumpParseResults = function() {
global.dump(props.docs);
return cli;
};
From that I thought I could just write the file like this using fs.writeFile:
cli.dumpParseResults = function() {
var fs = require('fs');
global.dump(props.docs);
fs.writeFile('videojs-src/cumulative.json', props.docs);
return cli;
};
The file was created, but it as empty. I tried to just write some simple text to the file fs.writeFile('videojs-src/cumulative.json', 'hello');
, and that wouldn't write out either.
Any ideas? It seems something is interfering with the write.
Thanks-
Matt
from grunt-jsdoc.
Old issue, please reopen if needed (the plugin relies now of the node implementation)
from grunt-jsdoc.
Related Issues (20)
- Package Deprecated HOT 1
- deprecated [email protected] HOT 1
- Task Events HOT 5
- No source files defined HOT 2
- Event on compilation error HOT 2
- Getting command line too long while running grunt jsdocs as i am having large set of file, i also checked #51,#59 but not able to resolved. HOT 8
- Destination path not working in Grunt HOT 2
- Not adding the README.md file (was working in old versions)
- JSDoc is now in version 3.4.1 which resolves the Github dependency HOT 4
- Include several md files
- Include symbols marked with @private with the "-p" cli argument HOT 3
- JSDoc dependency breaking build HOT 5
- Copying files broken by Node v8.5.0 HOT 2
- Upgrade to jsdoc 3.5.5 HOT 3
- transitive dependency is insecure HOT 1
- jsdoc not built HOT 7
- Help!!! Why I get syntaxError when run "grunt jsdoc" HOT 1
- Security warning on 'npm audit' due to old dependency marked HOT 1
- grunt-jsdoc duplicate all classes, but command line is Ok HOT 5
- Install not working since months HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from grunt-jsdoc.