-
Notifications
You must be signed in to change notification settings - Fork 608
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
Add easy link from docs to the code #2430
Comments
This would be a really nice feature. It does not look like something JSDoc supports out of the box. We could use I think we could write a plugin that could do this, however. The JSDoc AST already has enough information. |
I think we have what you're looking for, but let me know if I misunderstand:
|
So we do. I did not see that. Would it be possible to change our template to have that be next to the header, rather than at the very bottom of a very long and drawn out explanation with multiple examples? I am thinking along the lines of having it right-aligned right next to the name of the method. |
Historic reason: #790 (comment) We basically have a generic "put relevant links here" bucket-- at a minimum, they're supposed to contain:
Anything else, like links to guides from the official docs "Getting Started with _____", will go here as well. |
@stephenplusplus I think @lukesneeringer's suggestion is good, we can still put other links (upstream docs, etc.) at the bottom but maybe some smaller text next to the method name that says |
I'm fine with it that way, or the way it is! |
This issue was moved to GoogleCloudPlatform/gcloud-common#229 |
The positioning issue can be resolved in the common repo-- that's where the change would be made, and it would affect all of our libraries. |
For the methods we have in our docs, is it possible to add a link to the code so that we don't have to click around trying to navigate from the docs for (say) datastore.save -> code for the method?
The text was updated successfully, but these errors were encountered: