Skip to content
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

@link to your webdoc [request] #439

Closed
jonlepage opened this issue Mar 16, 2021 · 3 comments
Closed

@link to your webdoc [request] #439

jonlepage opened this issue Mar 16, 2021 · 3 comments

Comments

@jonlepage
Copy link

jonlepage commented Mar 16, 2021

you have beautiful docs for dev! congras :)
I love when a project is hard documented. 😁

Next step can be to add relative @link to your webdoc for all methods?
https://greensock.com/docs/v3
example:
image
image

not using much gsap, so for me it is necessary to manually consult the docs on your website for mostly all methods, and I find its unproductive to do this all time by searching.
Maybe a little link added for one click ?
It juste a geeks' suggest for improves docs but probably of no real interest to most veterans.

@ZachSaucier
Copy link
Member

Hey djmisterjon, thanks for the kind words and suggestion.

From what I can tell, there isn't a real standard for this? I was looking at this thread and some other pages around the internet.

With that being said, a quick test gives a hyperlink when I add something like @link https://greensock.com/docs/v3/Plugins/Draggable/static.create() to the JSDoc comments for a given method in VS Code. It does not have proper formatting if I include curly braces around the line like is suggested in some places.

So I'm betting this is the way we should go forward for now. Do you have any experience doing this? @OSUblake can you confirm?

@OSUblake
Copy link
Member

I don't know if I've ever use link before, but it should be fine without the curly brace. It will just show as plain text if it doesn't understand a command, and VS code automatically converts urls to hyperlinks. It might be worth seeing how it looks in other editors.

@jonlepage
Copy link
Author

jonlepage commented Mar 16, 2021

yes link is not supported yet or maybe never by ts server (for vscode , dont know others IDE)
microsoft/TypeScript#35524
https://www.typescriptlang.org/docs/handbook/jsdoc-supported-types.html
image

I use the tag @link for example purpose and for easy read.
I find that more aesthetic and respect jsdoc syntax logic for documentations, but these a very personal choice !
Both are fine for me :)
Vscode is my only editor , sry i cant give more info about others.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants