-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
API docs should link to the code definition in github for each function #12157
Comments
@KyleAMathews I can do it! Should it be a text link or the github icon link used in other places in the docs? |
@pieh might actually already have handled this in a different PR he was already working on. |
The UI design is TBD (I didn't work on this part) For I just added support for providing code location in c81f6e0 (it's in not yet merged PR #11597) After that is merged we can adjust query in https://github.com/gatsbyjs/gatsby/blob/master/www/src/pages/docs/actions.js#L73-L82 to use For Gatsby Node/SSR/Browser API reference pages: I've done proof of concept parser that finds where we "call" APIs - https://gist.github.com/pieh/ccbf0b2556fe3d19202ddaf61b881937 :
|
Hiya! This issue has gone quiet. Spooky quiet. 👻 We get a lot of issues, so we currently close issues after 30 days of inactivity. It’s been at least 20 days since the last update here. If we missed this issue or if you want to keep it open, please reply here. You can also add the label "not stale" to keep this issue open! Thanks for being a part of the Gatsby community! 💪💜 |
Right now if you go to an action e.g. https://www.gatsbyjs.org/docs/actions/#createPage there's no link to the actual code definition at
gatsby/packages/gatsby/src/redux/actions.js
Line 111 in 026eaaa
Documentation is great but sometimes you can get more clarity by looking at the code itself.
The text was updated successfully, but these errors were encountered: