-
-
Notifications
You must be signed in to change notification settings - Fork 748
The TypeDoc example #1726
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
The TypeDoc example #1726
Conversation
|
Done! Let me know of any changes you want. I put a list of comments / issues in the initial comment on the PR. |
Shoot, this is a bug. It should have quotes too... easy fix at least.
This is expected because there's no way to figure out what the constant value is for arbitrary expressions.
Maybe? I didn't even know this was a markdown feature until just now...
If you submit a PR to Shiki that just bumps the version, orta will merge it and a new version will be published, which should fix this, assuming it is fixed on main over there...
Maybe... It also breaks single-type parameter generic arrow functions.
Yeah... going away in 0.23 or sooner if someone fixes it, which I'd be fine with, this is because right now TypeDoc parses the first paragraph of a comment as the |
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.
This is looking great! A few comments
Lol, I will report it to Prettier.
Done, see shikijs/shiki#241.
Didn't know about that one. Normal |
|
Thanks for the feedback, all changes have been made. |
|
Looks great! Thanks again :) Once the next release is published, I will look at getting this rendering on typedoc.org |
Closes #1556.
Following are notes / potential issues.
Modules
@moduleto document a module but I couldn't find where that comment appears in the generated documentation. Seefunctions.ts.Enums
EnumLikeObjectisn't in the generated documentation.StringEnumandEnumLikeObject, you'll notice thatStringEnumhas double quotes around the values whileEnumLikeObjectdoesn't.CrazyEnum.ComputedMember.Objects
as constobject but it doesn't appear in the generated documentation. Probably not an issue but thought it worth mentioning. SeeObjectConstant.Markdown
playground.ts) to be multiple lines, but if you add two spaces to the end of each line, Prettier just removes the spaces. Do you think this is a Prettier bug? I'm not sure if Markdown in doc comments is a first-class use case for them.Syntax Highlighting
typescript. Would it make sense to change it totsx? The only drawback I can think of is that TSX does not support the old style of type assertions (<number>myVariable) which I don't think anyone uses anymore.Styles
CancellablePromisepage, the vertical space between "This example shows off how TypeDoc handles" and the list is quite large.