Skip to content

Commit 415702e

Browse files
dandvLBMarcy Suttongatsbybot
authored
docs: improve style in Creating & Modifying pages (#24987)
Co-authored-by: LB <[email protected]> Co-authored-by: Marcy Sutton <[email protected]> Co-authored-by: gatsbybot <[email protected]>
1 parent da68914 commit 415702e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/docs/creating-and-modifying-pages.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Pages can be created in three ways:
88

99
- In your site's gatsby-node.js by implementing the API
1010
[`createPages`](/docs/node-apis/#createPages)
11-
- Gatsby core automatically turns React components in `src/pages` into pages
11+
- Gatsby core automatically turns React components in `src/pages/*` into pages. Note that you must make the component the [default export](https://developer.mozilla.org/en-US/docs/web/javascript/reference/statements/export)
1212
- Plugins can also implement `createPages` and create pages for you
1313

1414
You can also implement the API [`onCreatePage`](/docs/node-apis/#onCreatePage)
@@ -17,8 +17,8 @@ to modify pages created in core or plugins or to create [client-only routes](/do
1717
## Debugging help
1818

1919
To see what pages are being created by your code or plugins, you can query for
20-
page information while developing in Graph_i_QL. Paste the following query in
21-
the Graph_i_QL IDE for your site. The Graph_i_QL IDE is available when running
20+
page information while developing in Graph<em>i</em>QL. Paste the following query in
21+
the Graph<em>i</em>QL IDE for your site. The Graph<em>i</em>QL IDE is available when running
2222
your sites development server at `HOST:PORT/___graphql` e.g.
2323
`http://localhost:8000/___graphql`.
2424

@@ -39,7 +39,7 @@ your sites development server at `HOST:PORT/___graphql` e.g.
3939
}
4040
```
4141

42-
The `context` property accepts an object, and we can pass in any data we want the page to be able to access.
42+
The `context` property accepts an object, and you can pass in any data you want the page to be able to access.
4343

4444
You can also query for any `context` data you or plugins added to pages.
4545

0 commit comments

Comments
 (0)