-
Notifications
You must be signed in to change notification settings - Fork 712
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
Use of TS submodules aren't well rendered #86
Comments
Hi, nice to hear from you. The sidebar of the generated documentation contains a list of all modules and the symbols of the current module. However, if your project contains more than 10 modules we only show the top level modules in first place. Could we solve your problem by allowing you to control this behavior? You can fake change this behavior by setting the threshold in node_modules/typedoc/bin/typdoc.js at line 7906 to a very high value. |
Thanks for the reply! But I don't think that's something to do with the modules number, it's more about nesting modules i guess, I only have one top module here: Would you like a docs/ sample to see by yourself if you can't replicate that behaviour? |
If you have less than 10 modules in total, the sidebar will display submodules as well. The sidebar will list them with their fully qualified names. |
I understand, but if you look at that screen you'll see that it is not really user friendly. A view in list or even better, with accordion collapse wouldn't it be better? (overview, navigation, ...) And even the sidebar doesn't link to the class directly, I need to click 3 times to get to the classe documentation itself:
I don't know if you understand exactly what I mean, maybe you never ran into that kind of issue (I guess so). :) |
This makes sense. Sometimes a module won't have any members, especially top I think in the modules section of the sidebar, having the option to display Also it might be help this specific case if you could just pass in the On Mon, Apr 13, 2015, 23:26 Vadorequest [email protected] wrote:
|
The fastest way to reach a certain class/interface/module is by using the search function, you can either click on the small magnifier in the toolbar or, even more simple, you can simply start typing anywhere on the page. I currently have two open todos that might help you with making your docs more readable:
|
If you view our docs, everything lives under Ex but what I did was treat http://excaliburjs.com/docs/api/edge On Mon, Apr 13, 2015, 23:50 Sebastian Lenz [email protected] wrote:
|
A tree like navigation with expandable entries won't work very well I guess, you'd have to maintain states between page reloads and put it into some kind of scroll pane to make it user friendly. Also the size of the documentation would explode as all pages must contain the entire navigation structure, or the navigation must be generated using some script from a shared json file. But yes, all this can be done using a custom template. |
@Vadorequest You've compiled the docs using the module mode, from your code sample I would guess that your project is not using a commonjs module structure. Did you try specifying |
@sebastian Ho, I only was talking about the link, absolutely not about the 2015-04-14 0:04 GMT+02:00 Sebastian Lenz [email protected]:
Cordialement, M. Ambroise Dhenain. |
I'm using a CommonJS module structure, as far as I know! Stuff like "Payline.Templating.Controllers" and so on, what makes you think 2015-04-14 0:10 GMT+02:00 Ambroise Dhenain [email protected]:
Cordialement, M. Ambroise Dhenain. |
When using a CommonJs/AMD structure you would do something like this to retrieve your classes:
In a project built like this, the file Specifying |
Okay, thanks for the explanation. For the record I use CommonJS but I don't 2015-04-14 0:19 GMT+02:00 Sebastian Lenz [email protected]:
Cordialement, M. Ambroise Dhenain. |
If the files will be merged you should specify |
Hello,
First thing first, thanks a lot for that typedoc generator, it is great and I plan on using it for several project.
But we have seen a problem with our nested TS modules, i.e:
When I do something like that (and that's the way we use to define submodules), it is hard to navigate
inside the documentation, because all sub-levels are on a different page.
Then, on click on "Payline" we get to this page.
So, we basically need to click three times to get to actual class and it makes the navigation difficult.
Would it be possible to have something more like a tree, which would display not only the module name but also all the classes associated to that module? This way we could have an overview of all classes that belong to a module (or submodule) and access any of them directly.
It may be related to #68, but I'm not sure.
Thanks :)
The text was updated successfully, but these errors were encountered: