Skip to content
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

Documentation missing for stand-alone functions #11

Closed
mramato opened this issue May 3, 2012 · 13 comments
Closed

Documentation missing for stand-alone functions #11

mramato opened this issue May 3, 2012 · 13 comments
Assignees

Comments

@mramato
Copy link
Contributor

mramato commented May 3, 2012

For example, createGuid and binarySearch both have documentation, but it does not show up in the JSDoc tree.

@ghost ghost assigned shunter and kristiancalhoun May 3, 2012
@pjcozzi
Copy link
Contributor

pjcozzi commented May 8, 2012

This includes GLSL functions like agi_rayEllipsoidIntersectionInterval.

@mramato
Copy link
Contributor Author

mramato commented Jun 7, 2012

It also appears that member variables don't show up properly either, if you force the doc with a memberof attribute, they will show up, but be marked as static and include the "this" qualifier.

@pjcozzi
Copy link
Contributor

pjcozzi commented Jun 7, 2012

@kristiancalhoun and @shunter how hard do you guys think this? A good chunk of our generated doc is missing. Maybe we should bug some of this with jsdoc-toolkit? Fix it ourselves? Workaround it in comments?

@kristiancalhoun
Copy link
Contributor

All of the undocumented GLSL types are from .glsl files (as compared to those found in ShaderProgram.js that are documented). I think the way the original GLSL comments are broken up into strings across multiple lines when the .glsl files are converted to .js files during the build process is preventing them from being documented. Thoughts, @shunter?

@mramato
Copy link
Contributor Author

mramato commented Jun 23, 2012

Not that we need to address this as the same time as everything else, but a minor doc issue (in my opinion) is the fact that their is a single "flat" table of contents, it would be nice if code where split up my directory or some other sort of tree.

@kristiancalhoun
Copy link
Contributor

I think I've finally worked out most of our issues and will be committing the rest of my changes shortly. However, my current fix for documenting stand-alone functions uses the @function tag, which has some unintended side-effects. What new tag name would you all prefer for documenting these types of functions? @standaloneFunc?

@pjcozzi
Copy link
Contributor

pjcozzi commented Jun 25, 2012

This is a temporary Cesium workaround, right? If so, how about @cesiumFunction?

Or are you going to pull request this back into jsdoc-toolkit?

@mramato
Copy link
Contributor Author

mramato commented Jun 25, 2012

What does @function currently do? It seems like that's the best name,
why isn't it? I guess I would prefer something like @GlobalFunction
(even though it's not really global).

On Mon, Jun 25, 2012 at 3:27 PM, Kristian Calhoun
reply@reply.github.com
wrote:

I think I've finally worked out most of our issues and will be committing the rest of my changes shortly. However, my current fix for documenting stand-alone functions uses the @function tag, which has some unintended side-effects. What new tag name would you all prefer for documenting these types of functions? @standaloneFunc?


Reply to this email directly or view it on GitHub:
#11 (comment)

@kristiancalhoun
Copy link
Contributor

I was trying to keep the name generic in case we do eventually pull request our changes back in, but at this point our JsDoc fork is very Cesium specific in terms of how we separate JavaScript from GLSL, generate a list of types for SandCastle, etc. Maybe at some point I'll put all our changes into a new template so that our pull request can only contain general core changes.

Functions tagged with @function are currently pooled into one conglomerate global.html file that we choose not to publish (and if we did, not all the necessary tagged info is displayed). It's also used somewhere behind the scenes to classify methods and resolve @see links (which is the error I was running into).

I also thought of @libraryFunction, but I'll go with @GlobalFunction for now and change it if there are any objections.

@mramato
Copy link
Contributor Author

mramato commented Jun 25, 2012

I think I actually like @libraryFunction better, good idea.

On Mon, Jun 25, 2012 at 4:32 PM, Kristian Calhoun
reply@reply.github.com
wrote:

I was trying to keep the name generic in case we do eventually pull request our changes back in, but at this point our JsDoc fork is very Cesium specific in terms of how we separate JavaScript from GLSL, generate a list of types for SandCastle, etc. Maybe at some point I'll put all our changes into a new template so that our pull request can only contain general core changes.

Functions tagged with @function are currently pooled into one conglomerate global.html file that we choose not to publish (and if we did, not all the necessary tagged info is displayed). It's also used somewhere behind the scenes to classify methods and resolve @see links (which is the error I was running into).

I also thought of @libraryFunction, but I'll go with @GlobalFunction for now and change it if there are any objections.


Reply to this email directly or view it on GitHub:
#11 (comment)

@pjcozzi
Copy link
Contributor

pjcozzi commented Jun 25, 2012

Maybe at some point I'll put all our changes into a new template so that our pull request can only contain general core changes.

Yes, very good idea.

Also, I'm OK with @libraryFunction too.

@kristiancalhoun
Copy link
Contributor

I just opened up pull request #80.

pjcozzi added a commit that referenced this issue Jun 28, 2012
@mramato
Copy link
Contributor Author

mramato commented Jun 28, 2012

The new stuff looks great, there are two more doc issues however and @kristiancalhoun is already looking into them.

  1. We specify the return type in most places, but the return type does not generate a link as we expect.
  2. Static objects are not linked to properly, for example enumerations such as LabelStyle used in Label.setStyle documentation.

emackey pushed a commit that referenced this issue Aug 21, 2015
oterral pushed a commit to oterral/cesium that referenced this issue Mar 2, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants