-
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
[v2] docs - update page query docs #7285
[v2] docs - update page query docs #7285
Conversation
…pattern consistently
…explanation for different context
Deploy preview for using-postcss-sass failed. Built with commit 2463358 https://app.netlify.com/sites/using-postcss-sass/deploys/5b720854c965926b051414e5 |
Deploy preview for using-contentful failed. Built with commit 2463358 https://app.netlify.com/sites/using-contentful/deploys/5b720856c965926b051414f4 |
Deploy preview for using-jss failed. Built with commit 85f13da https://app.netlify.com/sites/using-jss/deploys/5b71d1dbdd28ef1b1bd94650 |
Deploy preview for using-drupal ready! Built with commit 2463358 |
Deploy preview for gatsbygram ready! Built with commit 2463358 |
Deploy preview for gatsbyjs failed. Built with commit 2463358 https://app.netlify.com/sites/gatsbyjs/deploys/5b720853c965926b051414d9 |
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.
👍 Nice, thanks @amberleyromo!
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.
Looks great!
--- | ||
|
||
Gatsby v2 introduces `StaticQuery`, a new API that allows components to retrieve data via GraphQL query. | ||
|
||
## Basic example | ||
In this guide, we'll walk through an example using `StaticQuery`, and discuss [the difference between a StaticQuery and a page query](/static-query/#how-staticquery-differs-from-page-query). |
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 is going to end up with a merge conflict in #7249, but otherwise I'm into it. 😄
* master: (597 commits) Add a site(https://mojaave.com) to showcase list (gatsbyjs#7275) feat: create a doc for open source pair programming sessions (gatsbyjs#7266) [docs] Add video lesson to the StaticQuery docs (gatsbyjs#7249) [v2] docs - update page query docs (gatsbyjs#7285) [v2] docs "Styling" overview (gatsbyjs#7288) Remove delay (gatsbyjs#7273) add site (gatsbyjs#7291) Adding new site to the showcase. (gatsbyjs#7281) chore(release): Publish initial webpack externals support (gatsbyjs#7245) add missing package dependencies (gatsbyjs#7259) add: custom configuration overview (gatsbyjs#7231): tutorial part four updates (gatsbyjs#7240) [www] Fix showcase search, checkbox styles (gatsbyjs#7014) (gatsbyjs#6584): Restructure plugin overview and plugin authoring pages (gatsbyjs#7229) Use Hubspot form for email subscription (gatsbyjs#7233) Adding bootstrap CV starter (gatsbyjs#7207) Stub Articles and new names (gatsbyjs#7200) Improve readability of verbose logging code in wordpress source plugin (gatsbyjs#7146) Update hash link to scroll to right section of page (gatsbyjs#7161) ...
* (gatsbyjs#7278): Update graphql and static query doc organization to pattern consistently * (gatsbyjs#7278): move graphql tag explanation from tutorial to page query docs * (gatsbyjs#7278): remove intro paragraph, no longer necessary after restructuring * (gatsbyjs#7278): add language to StaticQuery intro * (gatsbyjs#7278): add link to page-query doc in tutorial part four * (gatsbyjs#7278): distinct heading levels for sections * (gatsbyjs#7278): consistent intro style on page-query, alter graphql explanation for different context close gatsbyjs#7278
closes #7278
Changes:
docs/build-a-page-with-graphql-query
docs/static-query
docs/page-query
docs.sidebars/doc-links
tutorial/part-four
graphql
tag work?" section and integrated intodocs/page-query
docs/page-query
(docs/static-query
is already linked)