Skip to content

Commit 63bfa09

Browse files
authored
chore: fix spelling, remove whitespace and fix link (#29846)
1 parent 440994b commit 63bfa09

File tree

12 files changed

+18
-18
lines changed

12 files changed

+18
-18
lines changed

docs/docs/conceptual/choosing-a-cms.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ In terms of popularity, you can see [top integrations listed by monthly download
2828

2929
- If you're working on a personal project or prototype, a few of these have a generous free tier (Contentful, DatoCMS, Prismic, Sanity, Strapi).
3030

31-
- If you're looking more at "Team", "Pro", or "Business" price points (eg $29, $99, or \$299 per month), the above CMSs are all good options, plus Drupal and WordPress.
31+
- If you're looking more at "Team", "Pro", or "Business" price points (e.g. $29, $99, or \$299 per month), the above CMSs are all good options, plus Drupal and WordPress.
3232

3333
- If you're looking more at an "enterprise" project in the four digits per month and up, your main options are Contentful, Contentstack, Sanity, and Strapi.
3434

docs/docs/conceptual/gatsby-for-ecommerce.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ The website functions because these front-end capabilities integrate with a wide
1010

1111
### Choosing a main e-commerce platform
1212

13-
Most businesses choose a central e-commerce platform as their source of truth for these functionality. Some businesses choose to run entirely on these platforms, which can be quicker to get started with but lock you in to their choices for website creation (eg Liquid Templates for Shopify).
13+
Most businesses choose a central e-commerce platform as their source of truth for these functionality. Some businesses choose to run entirely on these platforms, which can be quicker to get started with but lock you in to their choices for website creation (e.g. Liquid Templates for Shopify).
1414

1515
If you're using or considering Gatsby, your organization is likely optimizing for specific properties of your website (such as performance, development environment, design, user experience, and security) and are therefore considering a "JAMstack", "decoupled" or "content mesh" architecture.
1616

@@ -35,7 +35,7 @@ E-commerce tends to have a number of specific requirements. When building a Gats
3535
- **Persisting a cart across site pages and between sessions** (ie, if the user closes their browser and reopens it tomorrow, the items should still be there). This can be handled either through local-storage or through the shopify-buy JS library.
3636
- **Product search** can be done client-side if the SKU count is small enough to store all products in a global state. Alternatively, it can be handled through the e-commerce provider’s search features, or if those aren’t robust enough, a third-party search provider like Algolia.
3737
- **Surfacing price adjustments** like tax, shipping, discounts/promos to the user while browsing the site. Different e-commerce solutions provide different levels of API access to these objects.
38-
- **Handling checkout.** In order to comply with PCI regulations around storing credit card information, e-commerce providers typically exert strong control over the "buy" or "checkout" experience. Shopify requires all checkout flows using their platform to use their hosted checkout pages, though it's common to wrap them in a subdomain of the main site (eg the Gatsby/Shopify site [strivectin.com](strivectin.com] wraps a `myshopify.com` URL under a `shop.strivectin.com` URL for checkout).
38+
- **Handling checkout.** In order to comply with PCI regulations around storing credit card information, e-commerce providers typically exert strong control over the "buy" or "checkout" experience. Shopify requires all checkout flows using their platform to use their hosted checkout pages, though it's common to wrap them in a subdomain of the main site (e.g. the Gatsby/Shopify site [strivectin.com](strivectin.com] wraps a `myshopify.com` URL under a `shop.strivectin.com` URL for checkout).
3939
- **Handling account pages.** Again, many sites choose to wrap their e-commerce provider’s account pages under their own domain.
4040

4141
Additional resources:

docs/docs/glossary/npm.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ update libraries and frameworks (dependencies) for Node-based projects, and
1313
interact with the npm Registry. You'll use npm to install and upgrade Gatsby and
1414
its plugins.
1515

16-
npm is a [command line](/docs/glossary#command-line) tool. You'll need Terminal (Mac, Linux) or Command Prompt (Windows) in order to run its commands. To use one of npm's features, type `npm <command>` . For example, `npm help` displays a list of available features, including `install`, `uninstall`, `update`, and `search`.
16+
npm is a [command line](/docs/glossary#command-line) tool. You'll need Terminal (Mac, Linux) or Command Prompt (Windows) in order to run its commands. To use one of npm's features, type `npm <command>`. For example, `npm help` displays a list of available features, including `install`, `uninstall`, `update`, and `search`.
1717

1818
npm is installed alongside Node during the default [installation process](/docs/tutorial/part-zero/#install-nodejs-for-your-appropriate-operating-system). You don't need to take any additional steps to add it to your environment.
1919

docs/docs/how-to/performance/improving-site-performance.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ There are two options for this:
2626

2727
- Gatsby Cloud has Lighthouse performance reports built into its CI/CD. Every time someone opens a pull request or merges into master, a Lighthouse report will be run and the performance score displayed.
2828

29-
- Use a third-party service that offers performance monitoring. Different services offer different options -- schedule runs on a daily basis or CI/CD integration through Github (or your source control service).
29+
- Use a third-party service that offers performance monitoring. Different services offer different options -- schedule runs on a daily basis or CI/CD integration through GitHub (or your source control service).
3030

3131
For additional precision, run Lighthouse multiple times and take the median result.
3232

@@ -48,7 +48,7 @@ Performance work can be surprisingly nonlinear in impact.
4848
When you run a test in your testing tool of choice, it will give you a number of recommendations. While this can feel like a laundry list of issues, it can be helpful to understand the five core categories that these issues are bucketed into.
4949

5050
- Blocking calls & third-party scripts.
51-
- Javascript bundle size.
51+
- JavaScript bundle size.
5252
- Stylesheets and font files.
5353
- Images and other media.
5454
- Resource requests & CDN caching configuration.
@@ -79,9 +79,9 @@ Other options include:
7979

8080
- if you are using [html.js](https://www.gatsbyjs.org/docs/custom-html/) instead, you can modify that fileto include your snippet.
8181

82-
### Reduce your Javascript bundle cost
82+
### Reduce your JavaScript bundle cost
8383

84-
Among all assets, Javascript can be uniquely costly to your performance. This is due to three main reasons:
84+
Among all assets, JavaScript can be uniquely costly to your performance. This is due to three main reasons:
8585

8686
- Like other assets, it needs to be loaded into your browser.
8787

@@ -139,7 +139,7 @@ We recommend you use the [gatsby plugin to install `loadable-components`](https:
139139

140140
#### Step 6: Consider using the Preact plugin
141141

142-
[Preact](https://preactjs.com/) is a UI library that works similarly to React, but is much smaller (~3kb compressed as opposed to ~40kb). [Gatsby-plugin-preact](https://www.gatsbyjs.com/plugins/gatsby-plugin-preact/) is a drop-in plugin that will render your site in Preact instead of React, cutting 35-40kb of Javascript from your bundle.
142+
[Preact](https://preactjs.com/) is a UI library that works similarly to React, but is much smaller (~3kb compressed as opposed to ~40kb). [Gatsby-plugin-preact](https://www.gatsbyjs.com/plugins/gatsby-plugin-preact/) is a drop-in plugin that will render your site in Preact instead of React, cutting 35-40kb of JavaScript from your bundle.
143143

144144
This step can make sense if the `framework.js` bundle is a large part of your overall bundle size, and want to further optimize.
145145

packages/gatsby-plugin-schema-snapshot/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ All configuration options are optional.
2424
plugins: [],
2525
},
2626
// ensure all field types are included
27-
// dont't turn this off unless you have a very good reason to
27+
// don't turn this off unless you have a very good reason to
2828
withFieldTypes: true,
2929
// manually control if a saved schema snapshot should be replaced with an
3030
// updated version

packages/gatsby-plugin-sharp/src/gatsby-node.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ exports.onPostBootstrap = async ({ reporter, cache, store }) => {
9797
const job = await cache.get(contentDigest)
9898

9999
if (job) {
100-
// we dont have to await, gatsby does this for us
100+
// we don't have to await, gatsby does this for us
101101
_unstable_createJob(job, { reporter })
102102
}
103103
}

packages/gatsby-source-wordpress/docs/getting-started.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ If you've had previous experience with Gatsby or you like to move fast, you can
1111
- [WPGraphQL](https://wordpress.org/plugins/wp-graphql/)
1212
- [WPGatsby](https://wordpress.org/plugins/wp-gatsby/)
1313

14-
4. In the `gatsby-config.js` of the starter you just set up, update the plugin options for `gatsby-source-wordpress`. Change the `url` option so that it points to your WordPress instance GraphQL url. This should be the full url of your GraphQL endpoint. Eg `https://yoursite.com/graphql`
14+
4. In the `gatsby-config.js` of the starter you just set up, update the plugin options for `gatsby-source-wordpress`. Change the `url` option so that it points to your WordPress instance GraphQL url. This should be the full url of your GraphQL endpoint. E.g. `https://yoursite.com/graphql`
1515
5. Run `gatsby develop` and experience the magic :star2:
1616
6. Create your beautiful and accessible app :nail_care:
1717
7. Build with [Gatsby Cloud](https://www.gatsbyjs.com/) & deploy to [Netlify](https://www.gatsbyjs.com/guides/netlify/) for a fast, wonderful, _and_ affordable CI/CD experience :boom: :rocket:

packages/gatsby-source-wordpress/src/models/image-nodes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const imageNodes = {
1717

1818
pushNodeMeta(state, { id, sourceUrl, modifiedGmt }) {
1919
const nodeUrl = stripImageSizesFromUrl(sourceUrl)
20-
// dont overwrite the lookup table in case we have multiple
20+
// don't overwrite the lookup table in case we have multiple
2121
// sized urls for the same image
2222
if (!state.nodeMetaByUrl[nodeUrl]) {
2323
state.nodeMetaByUrl[nodeUrl] = {

packages/gatsby-source-wordpress/src/steps/source-nodes/create-nodes/create-remote-media-item-node.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ export const getFileNodeByMediaItemNode = async ({
167167
) {
168168
let node = await helpers.getNode(existingNodeMeta.id)
169169

170-
// some of the cached node metas dont necessarily need to be a File
170+
// some of the cached node metas don't necessarily need to be a File
171171
// so make sure we return a File node if what we get isn't one
172172
if (node && node.internal && node.internal.type !== `File`) {
173173
if (node.localFile && node.localFile.id) {

packages/gatsby-source-wordpress/src/steps/source-nodes/create-nodes/process-node.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -711,7 +711,7 @@ const replaceFileLinks = async ({
711711
}
712712

713713
if (node.__typename === `MediaItem`) {
714-
// we dont' want to replace file links on MediaItem nodes because they're processed specially from other node types.
714+
// we don't want to replace file links on MediaItem nodes because they're processed specially from other node types.
715715
// if we replace file links here then we wont be able to properly fetch the localFile node
716716
return nodeString
717717
}

rfcs/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ RFC merged into the RFC repo as a markdown file. At that point, the RFC is
5353
'active' and may be implemented with the goal of eventual inclusion into
5454
Gatsby.
5555

56-
- Fork the RFC repo http://github.com/gatsbyjs/rfcs
56+
- Fork the RFC repo https://github.com/gatsbyjs/rfcs
5757
- Copy `0000-template.md` to `text/0000-my-feature.md` (where
5858
'my-feature' is descriptive. Don't assign an RFC number yet).
5959
- Fill in the RFC. Put care into the details: **RFCs that do not

rfcs/text/0004-native-graphql-source.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,8 @@ This is a higher level plugin. Instead of just merging a schema, it allows a mor
126126
- `url: string?` - url of a third-party service
127127
- `headers: object?` - headers to add to the request
128128
- `fetchOptions: object?` - additional `node-fetch` options
129-
- `createLink: (options: object) => ApolloLink` - a callback that will create an ApolloLink instance that should query the third-party API. An escape hatch that overrides `url`, `headers` and `fetchOptions` parameters above and allows complex logic for eg authorization
130-
- `createSchema: (options: object) => GraphQLSchema` - callback that will create a GraphQLSchema of a third-party API. Resolvers are going to be ignored. This allows not using introspection (eg if it's disabled) or to customize third-party schema before passing it to stitching
129+
- `createLink: (options: object) => ApolloLink` - a callback that will create an ApolloLink instance that should query the third-party API. An escape hatch that overrides `url`, `headers` and `fetchOptions` parameters above and allows complex logic for e.g. authorization
130+
- `createSchema: (options: object) => GraphQLSchema` - callback that will create a GraphQLSchema of a third-party API. Resolvers are going to be ignored. This allows not using introspection (e.g. if it's disabled) or to customize third-party schema before passing it to stitching
131131
132132
Either `url` or `createLink` must be specified. If no `createSchema` is passed, third-party schema must support introspection.
133133

0 commit comments

Comments
 (0)