-
Notifications
You must be signed in to change notification settings - Fork 114
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
Generate component documentation from GraphQL instead of runtime #1078
Conversation
…sage, and examples from graphql
…transformer-sharp
@@ -179,4 +256,211 @@ PropList.propTypes = { | |||
), | |||
}; | |||
|
|||
export const query = graphql` | |||
fragment PropList_propTypes on NewRelicSdkPropTypeDefinition { |
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.
Don't ask. This query was so hard 😂
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.
I remember trying to write prop types for the prop prop types and getting so turned around 😵
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.
🎉 This looks fantastic! Thank you so much for digging into this!
You're welcome! This was fun :) |
🎉 This PR is included in version 1.34.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Relates to #1077
Description
Generates the New Relic One SDK documentation from the data in GraphQL rather than at runtime. This should help out our SEO tremendously for those pages. This PR also auto generates pages for each component/api in the SDK so that we no longer have to manually create MDX files for each component.
Screenshots
Before
After