Got: Generate documentation from types

Created on 5 Nov 2019  Â·  5Comments  Â·  Source: sindresorhus/got

https://github.com/TypeStrong/typedoc

It'd be best to generate Markdown, but it can be JSON too. We can generate Markdown later.

documentation enhancement ✭ help wanted ✭

All 5 comments

I’m not a big fan of Typedoc. The docs UI/structure it creates is not very user friendly and the generator itself is missing support for lots of TS features and it’s quite buggy. There’s unfortunately no other docs generator for TS.

Is there something that just reads comments? E.g. if we know what we are documenting, what arguments does it take, what's its description, we can generate markdown on our own.

I mean we could code the look of the docs.

I mean, we could still use it in addition to human written notes, but it's not good enough to replace our handwritten docs.

But at minimum, #758 should be fixed first, and we need a lot more doc comments.

Since #758 is now fixed, I think we can start looking deeper into this issue.

Deno has pretty nice docs IMO: https://doc.deno.land/https/deno.land/std/http/server.ts

But it has its own deno doc generator. typedoc is still missing lots of things (131 issues as of 24/09/2020):

Was this page helpful?
0 / 5 - 0 ratings

Related issues

f-mer picture f-mer  Â·  4Comments

lukehorvat picture lukehorvat  Â·  3Comments

carvallegro picture carvallegro  Â·  4Comments

erfanium picture erfanium  Â·  3Comments

dAnjou picture dAnjou  Â·  3Comments