Giter Site home page Giter Site logo

Comments (13)

pjcozzi avatar pjcozzi commented on May 19, 2024

This includes GLSL functions like agi_rayEllipsoidIntersectionInterval.

from cesium.

mramato avatar mramato commented on May 19, 2024

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.

from cesium.

pjcozzi avatar pjcozzi commented on May 19, 2024

@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?

from cesium.

kristiancalhoun avatar kristiancalhoun commented on May 19, 2024

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?

from cesium.

mramato avatar mramato commented on May 19, 2024

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.

from cesium.

kristiancalhoun avatar kristiancalhoun commented on May 19, 2024

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?

from cesium.

pjcozzi avatar pjcozzi commented on May 19, 2024

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

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

from cesium.

mramato avatar mramato commented on May 19, 2024

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
[email protected]
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)

from cesium.

kristiancalhoun avatar kristiancalhoun commented on May 19, 2024

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.

from cesium.

mramato avatar mramato commented on May 19, 2024

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

On Mon, Jun 25, 2012 at 4:32 PM, Kristian Calhoun
[email protected]
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)

from cesium.

pjcozzi avatar pjcozzi commented on May 19, 2024

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.

from cesium.

kristiancalhoun avatar kristiancalhoun commented on May 19, 2024

I just opened up pull request #80.

from cesium.

mramato avatar mramato commented on May 19, 2024

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.

from cesium.

Related Issues (20)

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.