Skip to content

Commit

Permalink
docs: fix spelling (#9228)
Browse files Browse the repository at this point in the history
Fixed some typos
  • Loading branch information
pushkyn authored and DSchau committed Oct 19, 2018
1 parent 9a72df9 commit e39d4c2
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
Expand Up @@ -15,7 +15,7 @@ Gatsby v1 shipped last year with a plugin-powered data layer that let you easily

But in the last year, a lot has changed. More and more services are shipping with native GraphQL APIs. CMSs like [GraphCMS](https://graphcms.com/), [AppSync](https://aws.amazon.com/appsync/), and [TakeShape](https://www.takeshape.io/) all have launched GraphQL APIs. [Contentful](https://www.contentful.com/) is launching a [native GraphQL API as well soon](https://www.contentful.com/blog/2018/07/04/graphql-abstract-syntax-tree-new-schema/).

Watching the spread of GraphQL has all been incredibly exciting to watch and a fullfillment of our vision for the future of the web where sites easily stitch together data from many sources.
Watching the spread of GraphQL has all been incredibly exciting to watch and a fulfillment of our vision for the future of the web where sites easily stitch together data from many sources.

But unfortunately, these new GraphQL APIs have been awkward to use inside Gatsby as you first had to wrap the API inside a Gatsby source plugin before you could query the data from your components.

Expand Down
2 changes: 1 addition & 1 deletion docs/docs/adding-tags-and-categories-to-blog-posts.md
Expand Up @@ -226,7 +226,7 @@ exports.createPages = ({ actions, graphql }) => {

Some notes:

- Our graphql query only looks for data we need to generate these pages. Anything else can be queried again later (and, if you notice, we do this above in the tags template for the post title).
- Our GraphQL query only looks for data we need to generate these pages. Anything else can be queried again later (and, if you notice, we do this above in the tags template for the post title).
- While making the tag pages, note that we pass `tag` through in the `context`. This is the value that gets used in the `TagPage` query to limit our search to only posts tagged with the tag in the URL.

## Make a tags index page (`/tags`) that renders a list of all tags
Expand Down
4 changes: 2 additions & 2 deletions docs/docs/api-specification.md
Expand Up @@ -56,9 +56,9 @@ See
## Concepts

- _Page_ — a site page with a pathname, a template component, and optional
graphql query.
GraphQL query.
- _Page Component_ — React.js component that renders a page and can optionally
specify a graphql query
specify a GraphQL query
- _Component extensions_ — extensions that are resolvable as components. `.js`
and `.jsx` are supported by core. But plugins can add support for other
compile-to-js languages.
Expand Down
2 changes: 1 addition & 1 deletion docs/docs/centralizing-your-sites-navigation.md
Expand Up @@ -92,7 +92,7 @@ Perfect! You now have a way of obtaining data from the `gatsby-config.js` file.

Inside your project, locate the `src/components` folder and navigate to the `layout.js` file. Within this layout component you should notice a component named `StaticQuery`.

StaticQuery is a new component introduced in Gatsby V2, which allows you to run GraphQL queries within your components, not just pages. It allows developers to colocate data with their components.
StaticQuery is a new component introduced in Gatsby V2, which allows you to run GraphQL queries within your components, not just pages. It allows developers to collocate data with their components.

Let's extend the query within this component to include the menu links, so it looks like so:

Expand Down
4 changes: 2 additions & 2 deletions docs/docs/static-vs-normal-queries.md
Expand Up @@ -10,7 +10,7 @@ Static Queries don't need to get run for each page. Just once

Started here because they're referenced in page-query-runner:findIdsWithDataDependencies.

The redux `staticQueryComponents` is a map fronm component jsonName to StaticQueryObject. E.g
The redux `staticQueryComponents` is a map from component jsonName to StaticQueryObject. E.g

```javascript
{
Expand All @@ -25,7 +25,7 @@ The redux `staticQueryComponents` is a map fronm component jsonName to StaticQue
}
```

The `staticQueryComponents` redux namespace is owned by the `static-query-components.js` reducer with reacts to `REPLACE_STATIC_QUERY` actinos.
The `staticQueryComponents` redux namespace is owned by the `static-query-components.js` reducer with reacts to `REPLACE_STATIC_QUERY` actions.

It is created in query-watcher. TODO: Check other usages

Expand Down

0 comments on commit e39d4c2

Please sign in to comment.