I am working on an open source library, and I use JSDoc for documentation. I would like to reference the repository at the top of each file.
I am able to put my name in the comment block using @author, but I don't know how should I reference the repository as well. My guess is this:
/**
* @author John Doe<[email protected]>
* @link https://github.com/john-example/my-repo
*/
Is it the right way to do it? Or should I combine @link with @see?
Many of the classes in my project can be used independently from the library, so it is possible that some users will just copy the files they need. That is the reason, why creating a LICENSE file in the root folder is not enough, and I would like to put the link of the repository at the top of each file.
Try @see with @link, one of the examples is even a link to Github. Put it at the top of your file:

Read more here. I've gone through all of the docs, but not found anything better.
While not answering your question per se, I'd probably use @version with an @link to the URL of the release.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With