-
-
Notifications
You must be signed in to change notification settings - Fork 727
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
Group summary pages? #2893
Comments
See #2793, TypeDoc 0.28's rework of the router has made it easier for custom themes to do this, but it isn't supported by the default theme. My concerns raised there are still present:
|
Thanks for replying. I'll give my own naive answers to your questions - but of course I know nothing of the larger considerations! can you @link to those pages?Ideally, yes, although admittedly I hadn't thought of this as a requirement until seeing this question. My use case is the api docs for JsPlumb, and I'm using groups to define things like What does the current module page look like then, does it contain duplicate information or links to the category pages, basically making it useless?I must confess that the concept of What about groups, do they get their own pages?I think this is what I'm requesting - I'd like each group to have its own page, with categories listed in sections. What if categorizeByGroup is true and the site includes both categories and groups, how does linking work then? Do you get a page per group and per category, or per group+category?I do have Looking through the generated JSON I can see that the data structure would support the generation of a group+categories page, for example:
...all of the information required to assemble the type of page I'm asking about is available, and the groups are children of the root, suggesting that it would be possible to have a unique page for each one without namespace clashes. Since the internal model can write out this JSON I guess it could also be made to write out an HTML page for each group. Categories, though, don't seem quite so straightforward. |
To expand on this -- how? TS and VSCode know nothing about TypeDoc's groups, so it would be a TypeDoc specific link resolution. /**
* @groupDescription Events
* **FooEvent** - ...
*/
/** @group Events */
export class FooEvent {}
/** @group Events */
export class BarEvent {}
/** @group Events */
export type Events = FooEvent | BarEvent;
/** See {@link Events} for details on each event */
export function emit() {} TypeScript will understandably link
Your intuition is correct that it roughly maps to an entry point, with the exception of the packages and merge entryPointStrategy options. Currently, it's the page which includes the Group summary pages would likely be limited to modules (and maybe namespaces?). Classes, interfaces, and type aliases might also have groups within them, but if those are so big as to need splitting up, something has gone horribly wrong.
Yes, without any group tags if If typedoc/src/lib/output/themes/lib.tsx Lines 208 to 249 in 182ef52
|
Search Terms
group groupDescription category
Problem
I've recently started using @group and @category, which have helped me organise the docs a lot better. I arrange by group in the index so I get the collapsing menus and it's all good.
The main page lists out the contents of each group in order, and I was hoping for the ability to click on group names in the nav column and be taken to a summary page for that group, which would have the @groupDescription tag and then all of the group's members. Does this exist and I have just failed to find it? I see that the group description is being included in the json output.
Suggested Solution
An output config like
includeGroupSummaryPages:boolean
?The text was updated successfully, but these errors were encountered: