-
Notifications
You must be signed in to change notification settings - Fork 11.9k
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
Types (=docs) for IEvent and IPlugin #7090
Conversation
IMO the current typedocs are mostly unusable: https://www.chartjs.org/docs/master/typedoc/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm ok with splitting the type definitions out into their own files
It looks like there's a couple big problems with We might be able to use a different theme if there are any you like more though. E.g. you can do On a separate but related note, I did find a bug in typedoc today where it seems not to be correctly locating the parent classes: TypeStrong/typedoc#1209 |
@benmccann did you actually take a look at the docs under gh-pages? None of the links work (probably due to underscores) |
Ah, I misunderstood what you were saying earlier. Yeah, it's cause of the underscores. Here's some possible solutions: TypeStrong/typedoc#149 |
IMO we are to supply one entry point for the library and the source tree structure is kept internal (and not included in npm, because if we publish that, then all those files can not be moved or renamed anymore. or exports removed). Thats why
I'm not worried about how it looks like at this point, if it provides the needed documentation. Point me to |
|
It's fixed on master, so I think it was some other change that fixed it. It looks like with They're working on a new mode Also, I filed a feature request to support typedefs TypeStrong/typedoc#1214 |
Ok, played enough with typedocs in https://github.com/kurkle/color to give up and just write a .d.ts. There is currently no way to get it to generate good docs from JSDoc comments. |
Extracted from #7084
If we are going to use typedoc to generate the docs, this is the only way (not going full typescript), that I got the interfaces to get documented.
Re: #7030 (comment)