-
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
Document how to implement Gatsby's different APIs #3101
Conversation
Deploy preview ready! Built with commit d8587c7 |
Deploy preview ready! Built with commit d8587c7 |
www/src/pages/docs/browser-apis.js
Outdated
@@ -9,6 +9,10 @@ class BrowserAPIDocs extends React.Component { | |||
return ( | |||
<Container> | |||
<h1 css={{ marginTop: 0 }}>Gatsby Browser APIs</h1> | |||
<h2 css={{ marginBottom: rhythm(1 / 2) }}>Usage</h2> | |||
<p>Implement any of these APIs by exporting them from a file named <code>gatsby-browser.js</code> in the root of your project.</p> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@m-allanson probably want marginBottom: rhythm(1)
or something along those lines as opposed to using br
tags to control spacing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point, thanks 👍
Thanks! Can't believe I forgot this before 🤦♂️ Thanks for this and your other very nice PRs today! Really helpful to get help improving DX from fresh eyes. |
Add some notes on how to use the various Gatsby API's.
See comment: #2963 (comment)