dox icon indicating copy to clipboard operation
dox copied to clipboard

Need skimmable index per class

Open keyframer opened this issue 4 years ago • 4 comments

I'm new to Haxe (and it's related projects) so I've been using the output of this tool extensively! All of these pages desperately need an index of all properties/methods. It is very hard to browse classes and get a sense of what they do.

Like here, what kind of things can you do with an array? Or on Haxe Flixel, what's covered by their Math utilities? You have to wade through all the hairy details! I just want to skim for what looks familiar or new.

Most API docs present information like this, but see Qt for one of many examples: https://doc.qt.io/qt-5/qaction.html You just skim this index to see if you're in the right place than click the method that looks ballpark and start reading descriptions.

Another great thing on the Qt docs is the "List of all members, including inherited members" link for any class.

Thanks for considering!

keyframer avatar Feb 21 '21 00:02 keyframer

I actually don't like these redundant overviews very much... It would be fine to have a simple list of field/method names in the navigation on the left, but I don't want to duplicate everything in the main content.

Simn avatar Feb 21 '21 07:02 Simn

I think I agree with OP here. Assuming a class is properly documented (as in, each method has some amount of docs), scrolling through the document to find any particular method might take a minute. A summary at the beginning which only links to the methods is useful. If it were in the navigation on the left, this would not be very readable IMO.

Aurel300 avatar Feb 21 '21 08:02 Aurel300

There could simply be a button that collapses / expands the doc comments.

Gama11 avatar Feb 21 '21 12:02 Gama11

Right having the index be part of the sidebar hierarchy is a totally reasonable place to put this.

Microsoft docs do exactly that: https://docs.microsoft.com/en-us/dotnet/api/system.collections.generic.list-1.add?view=net-5.0

Of course their docs are so extensive you have to navigate with an index like this: https://docs.microsoft.com/en-us/dotnet/api/system.collections.generic.list-1?view=net-5.0#methods It would be totally unreasonable to inline every method on a single page.

You might also get a bonus feature by including the index in the side hierarchy: you could filter for method/property names using the filter at the top left. I actually kept trying to use that filter for this purpose, since there is no other search on these pages.

keyframer avatar Feb 21 '21 18:02 keyframer