-
-
Notifications
You must be signed in to change notification settings - Fork 738
Support for additional comment styles #1433
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
Comments
I looked at implementing this today, and... there still isn't consensus on the TSDoc side. Using For now, I'm just going to implement support for See: microsoft/tsdoc#166 |
FWIW I would really like to see TypeDoc align with the TSDoc spec not just here, but as close to 100% as possible. I need to write docs that work well on both my website (which uses TypeDoc) and in users' IDEs (which follow the TSDoc spec), so every place the two don't align means a degraded experience for one of the two. |
This implies that the /**
* Here is a bunch of text which is starting to get long so I want to
*+ wrap the line
*/ I think having an escaping mechanism like this is potentially useful, but given that it hasn't been standardized, wasn't going to spend time implementing it when nobody's trying to use it today.
As far as I know, there is no editor which follows the TSDoc spec. Each one makes a best effort to display comments as the user intended, but no editor implements strict support for TSDoc, since only a tiny percentage of documentation comments conform to TSDoc. Until less than a week ago, even VSCode didn't support If you want a documentation generator which forces you to strictly follow TSDoc, you should use https://api-extractor.com/. The goal of this project is to make writing documentation easier, not force a specific style or format on developers. TypeDoc once the TSDoc project is done should be compatible with TSDoc, but it will not force its users to use TSDoc. In fact, this issue, adding support for |
Search Terms
triple slash comments, c# style documentation, comment style
Problem
TypeDoc doesn't support relatively common comment styles
Suggested Solution
Add a new option:
commentStyle
which determines how TypeDoc searches for comments:/** ... */
/* ... */
/// ...
//
,///
,/* */
,/**
This suggestion was previously rejected (see #963), but my stance on it has completely changed having used a language which uses
///
comments. They are much nicer for dealing with embedded codeblocks that contain block comments.At the same time, for JSDoc and Block style comments, this should add support for the escaping mechanism used by TSDoc.
Cross linking:
The text was updated successfully, but these errors were encountered: