-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JsDoc fixes for issue #11 #80
Conversation
A few comments/questions:
|
Yes, it is. I tried changing the JsDoc configuration file to read .glsl files as well as .js files, but JsDoc chokes on the different syntax. @shunter, do you have any ideas? Is stripping out the comments during the build process and writing them to another file for JsDoc to read unreasonable?
Not so much a bug as the design of JsDoc. The problem is that function foo() is within an anonymous function inside of the module definition, so JsDoc won't document it. We previously got around this problem by using the @name tag, which basically tells JsDoc to just look at the comment and not the code. However, then documentation for the inner properties is not generated (using '@constructor foo' has the same problem). var foo = function is the recommended way to document classes within modules as seen here : http://usejsdoc.org/howto-commonjs-modules.html. If you're interested in reading more: https://groups.google.com/forum/?fromgroups#!searchin/jsdoc-users/function$20Sample/jsdoc-users/L1n50YvtwFY/aB2gVbxD4RwJ
|
Small tweaks - missing semicolons, etc.
@kristiancalhoun let us know when this is ready for review again. |
It's good to go. |
I still don't see any GLSL functions. Do I need to clean build? |
Yeah, try that. I just did another clean build and it worked for me. |
Can you please tweak a few minor things:
|
agi_emptyRaySegment is duplicated in BuiltinFunctions.glsl. It looks to be a copy/paste error, as one should be agi_fullRaySegment. @agi_complement, @agi_insertAt, and @agi_intersection are duplicated because they're overloaded functions and each is tagged. |
OK. Can you fix them? Should be trivial. |
Alright, 5055141 takes care of those issues. |
|
Interseting. They all work for me from both the index page and sidebar. Did you try another clean build? What is the broken URL for each? |
Yes, I cleaned. It is probably because I am using the filter: |
global.html is purposefully not generated (because nothing should link there), which is why you're getting an error. I searched through my entire documentation folder and couldn't find anything that linked to global.html. Regardless, sync up and try again with this latest commit. |
Looks good now. @mramato I suppose you'll want to pull master in to get this. |
Reintroduce @exports tag to document modules.
Switch from @name to @alias to document object properties.
Added some @defaults to CentralBody.
@enumerations no longer list 'new' in their documentation as though they were a class.