Giter Site home page Giter Site logo

Comments (2)

daveaglick avatar daveaglick commented on June 19, 2024

I really like this idea. One question I have is how should we show documentation comments if they differ for each overload (which presumably they would, at least for different arguments). Maybe have a single page for the overloads but list each one in normal detail below? I guess we could also compare the comments for each method and argument and if they're identical across the overloads we could "collapse" the docs to a single page like Unity.

from statiq.docs.

SilentSin avatar SilentSin commented on June 19, 2024

It seems the merged style is more of an exception than the rule in how they organise their documentation. Physics2D.Raycast for example just lists the details of 3 different overloads with their full descriptions one after the other, essentially keeping them separate but still all on one page.

Even just doing that so the Methods list on the class page doesn't need to include all the parameters in the Name column would be nice. I currently have quite a few methods with multiple overloads that have one line summaries, but end up taking up several lines because it tries to squeeze their parameters into the tiny Name column. For example:

image

That could all be a single line.

Trying to collapse them automatically whenever all parameters that share a name also have the same comment sounds like it would work reasonably well.

Are there any sort of tags or anything that could be included in the comments to tell Wyam how to manage the overloads without affecting the way Visual Studio displays the tooltip or anything else?

On a somewhat related note, I don't even bother documenting the parameters or return type on most of my methods since the summary already explains enough. So those functions end up looking like the image below where the Parameters and Return Type tables don't even show anything the Syntax hasn't already said. In such cases I think it would be best to simply skipped the tables entirely.

image

from statiq.docs.

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.