-
Notifications
You must be signed in to change notification settings - Fork 4
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
Typedoc? #8
Comments
This is a good question and I don't have any good answers. I have always assumed typedoc is the only tool that correctly uses TS's typechecking APIs to document (inferred) types correctly. That assumption might be wrong; I'm not sure. Is apiextractor worth looking at? |
Things I would change if I was designing a tool from the ground up today, rather than maintaining something that's been around for a while:
I wonder sometimes why I work on TypeDoc... Personally, I'd rather have a good definition file than TypeDoc generated docs. |
Interesting, do you think 1. and 2. could be implemented as breaking changes in a fork of typedoc? Could 3. be implemented as a more minimal theme? Could be a fun project, to see how nice we can make typedoc if we embrace breaking changes. |
After having toyed with API Extractor for weeks on a similar-ish project on a much smaller scale, my opinion is that, given Gerrit's comments on what a documentation site should do as well as the general direction of this project, your best bet would be to either go lower level with the TS Compiler API itself (or maybe a package like ts-morph to abstract away some of that) or to just use a hodgepodge of what TypeDoc provides. API Extractor itself is somewhere in the middle, and in my opinion is just not the right tool if you're looking for a generic enough program that can generate documentation from anything that isn't written with the generator itself in mind. |
Maybe it would be valuable to list what you like/don't like about similar projects, especially rust and deno, since those are mentioned as motivation. I know when I'm stuck doing ruby, where IDE integration is somewhere between hard and impossible, I've found the universal-doc-site-with-all-the-versions to be really useful. Stuff like layout/presentation is important. I personally find typedoc's default to be hard to navigate, but that's most likely due to lack of using it. If we plan to take rendering upon ourselves, then we can do whatever we want, and the main problem is extracting the info. One thing I don't know how to do in vscode for example is to look at the actual JS/TS sources of a function I'm looking at. Granted that's not my most common wish, but sometimes it's really important. |
I just remembered https://paka.dev/npm/fp-ts/v/2.10.5/ today, which shares a lot of the same goals as this project, definitely worth looking at and maybe some discussion with @jasonkuhrt. |
Oh yeah, I think I remember it popping up on Reddit years ago, but I didn't see it since. Where is the code? |
@cspotcode this is less than a year old so you must be thinking of something else. The tool is private source right now. |
@jasonkuhrt that looks great. It's looks like that's actually pretty much the thing i want from the thing we've been talking about. I like all the info in one place. Any place we can look for more info? Is it something that's private-for-now or will probably stay that way? Sorry if I missed something obvious. Thanks for dropping in, BTW. |
You can join our discord for most up to date info if you're curious https://discord.gg/fEGNFsJs.
Uncertain at this point.
That's great to hear! More feedback always welcome in Discord.
Thanks @Gerrit0 for that! |
It's in the repo name, but based on @Gerrit0 's comments and what we're trying to do, maybe it's not the right tool?
I think certainly it's the starting point, and the point of this project is not to create a TS doc generator.
The main motivating thought here is that typedoc has to do a ton of things that we don't care about:
Whereas we want basically to have consistent, generic docs for all the packages. Possibly a narrower tool serves the purpose better, without the pain.
Or maybe using typedoc as a lib ultimately serves us perfectly, or we contribute what we need upstream.
Bonus points for ripping off Gerrit without attribution 🚎
The text was updated successfully, but these errors were encountered: