-
-
Notifications
You must be signed in to change notification settings - Fork 209
Better way and guide to documenting components. #516
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'm not sure what you are aiming for. You talk about documenting components and link to something that outputs a specific format which can be presented as a documentation page which you can browse. But then you talk about autocomplete/definitions in IDEs. Could you specifiy what exactly you envision? |
Sorry for not being specific, was in a hurry before. This can also be replicated for component props, when writing them, the language server can give hints provided by the component author on how to use the props and what they do. This is mentioned in the faq. (although we cannot specify if the prop is a boolean, string or number) However, there is no way to do the same with slots, actions and events, so I was trying to say what if we use specific JSDoc keywords to provide more information on them, something like this. I do not know if there is a better way to do this, but providing in-editor descriptions and definitions of props, slots and actions for components does seem very useful to have. |
Okay I think I understand you now. So you want doc info on hover/completion for props, slots, events, actions in the IDE.
|
I am now sure whether to post the issue here or the svelte repo.
There is no standard tooling and easy way to document svelte components.
Describe the solution you'd like
Something like https://vue-styleguidist.github.io/docs/Documenting.html#documenting-components with reserved JSDoc keywords. It will make for better autocomplete and definitions in VSCode and other editors.
The text was updated successfully, but these errors were encountered: