Replies: 3 comments 7 replies
-
I was not too much involved in the initial work on docgen but I think the main issue is that at the time there were no third party options that allowed us to achieve the results we wanted. Also let's make sure that which ever solution we pick is not typescript specific but works for both JS and typescript. |
Beta Was this translation helpful? Give feedback.
-
@adamziel I would be very willing to support this effort. I did a quick look into TSDoc JSDoc support and it looks like it can do it, which makes sense to me. TypeScript processes JSDocs so it should be possible.
There might need to be a refactor of the JSDoc comments for compatibility. |
Beta Was this translation helpful? Give feedback.
-
Related to #48998, and interest in an API reference for Gutenberg that is similar to the WordPress Code Reference. |
Beta Was this translation helpful? Give feedback.
-
Is there any real upside to maintaining our own documentation tool? Docgen confuses us with these errors demanding a hotfix, e.g. Here:
TypeScript syntax keeps evolving, and even the existing one isn’t exhaustively described by Docgen.
Have we ever considered switching to another tool? For example https://typedoc.org/ which @gziolo once recommended to me. I moved WordPress Playground from a custom documenter to TypeDoc and the results are splendid. It works like a charm even for the weirdest TS corner-cases and when it fails, it fails gracefully and still produces some output instead of an error.
Github search doesn't yield too many results. @youknowriad or @gziolo – can you remember any discussions?
also cc @tyxla @jsnajdr @noahtallen @noisysocks @t-hamano @justintadlock @sarayourfriend @aaronrobertshaw @mirka
Beta Was this translation helpful? Give feedback.
All reactions