-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Document types #4011
Document types #4011
Conversation
|
Can we set a max length on the snippets? Some of them are very difficult to read on mobile. |
Do you mean running Prettier on the snippets with a shorter line length, or something? |
Yeah, that would be good if it is possible. |
Made that change. The JSDoc comments will need to be updated (and maintained) manually though |
sveltejs#4011 added @sveltejs/adapter-static . But sveltejs#4239 removed it. Then deploy process is failed. (Please see sveltejs#4244 (comment) for more details)
* add @sveltejs/adapter-static. #4011 added @sveltejs/adapter-static . But #4239 removed it. Then deploy process is failed. (Please see #4244 (comment) for more details) * workspace:^1.0.0-next.29 -> workspace:*
Follow-up to #4010. The idea here is to make types linkable throughout the docs — rather than the unreadable gibberish you get from automatic doc generators, this literally just copies the source
.d.ts
into the docs, extracts leading JSDoc comments, and crosslinks everything.So for example in the endpoint docs, the
RequestHandler
type becomes a link......that points here:
RequestHandler
->RequestHandler
in the example above)Add more JSDoc comments explaining the various typesthis can happen in a follow-upRethinkfollow-up in RenameApp
vsApp
— maybe we rename the class?App
#4030lsp
attributes, or have the tooltip actually link to them