Skip to content

Commit

Permalink
chore: fix spelling, grammar, links, whitespace and end of files (#30063
Browse files Browse the repository at this point in the history
)
  • Loading branch information
jbampton authored Mar 8, 2021
1 parent 28956fe commit 542d945
Show file tree
Hide file tree
Showing 10 changed files with 20 additions and 21 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
Gatsby is a modern web framework for blazing fast websites.

- **Go Beyond Static Websites.** Get all the benefits of static websites with none of the
limitations. Gatsby sites are fully functional React apps so you can create high-quality,
limitations. Gatsby sites are fully functional React apps, so you can create high-quality,
dynamic web apps, from blogs to e-commerce sites to user dashboards.

- **Use a Modern Stack for Every Site.** No matter where the data comes from, Gatsby sites are
Expand All @@ -76,7 +76,7 @@ Gatsby is a modern web framework for blazing fast websites.
splitting, image optimization, inlining critical styles, lazy-loading, prefetching resources,
and more to ensure your site is fast — no manual tuning required.

- **Host at Scale for Pennies.** Gatsby sites don’t require servers so you can host your entire
- **Host at Scale for Pennies.** Gatsby sites don’t require servers, so you can host your entire
site on a CDN for a fraction of the cost of a server-rendered site. Many Gatsby sites can be
hosted entirely free on [Gatsby Cloud](https://www.gatsbyjs.com/cloud/) and other similar services.

Expand All @@ -99,7 +99,6 @@ You can get a new Gatsby site up and running on your local dev environment in 5

```shell
npm install -g gatsby-cli

```

2. **Create a Gatsby site from a Gatsby starter.**
Expand Down
10 changes: 5 additions & 5 deletions examples/ecommerce-tutorial-with-stripe/netlify.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Settings in the [build] context are global and are applied to all contexts
# unless otherwise overridden by more specific contexts.
# Settings in the [build] context are global and are applied to all contexts
# unless otherwise overridden by more specific contexts.
[build]
# Directory to change to before starting a build.
# Directory to change to before starting a build.
# This is where we will look for package.json/.nvmrc/etc.
base = "/"

# Directory (relative to root of your repo) that contains the deploy-ready
# Directory (relative to root of your repo) that contains the deploy-ready
# HTML files and assets generated by the build. If a base directory has
# been specified, include it in the publish directory path.
publish = "public/"
Expand All @@ -16,4 +16,4 @@
[template.environment]
GATSBY_STRIPE_PUBLISHABLE_KEY = "Add your Stripe publishable key here: pk_test_xxx"
GATSBY_BUTTON_PRICE_ID = "The price id for the one-time purchase product: price_xxx"
STRIPE_SECRET_KEY = "Add your Stripe secret key here: sk_test_xxx"
STRIPE_SECRET_KEY = "Add your Stripe secret key here: sk_test_xxx"
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import Layout from "../../components/layout"
/*
1. write a query for sourced images
2. be sure to query for the fixed field
3. adad a style prop to the Img component
3. add a style prop to the Img component
*/

export default () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import Img from "gatsby-image"
import Layout from "../../components/layout"

/*
1. write query
1. write query
2. pass data into img component
*/

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import Img from "gatsby-image"
import Layout from "../../components/layout"

/*
1. write query
1. write query
2. pass data into img component
*/

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ The examples on this page cover the basic Markdown syntax and are adapted from
---

This is intended as a quick reference and showcase. For more complete info, see
[John Gruber's original spec](http://daringfireball.net/projects/markdown/) and
[John Gruber's original spec](https://daringfireball.net/projects/markdown/) and
the
[GitHub-flavored Markdown info page](http://github.github.com/github-flavored-markdown/).
[GitHub-flavored Markdown info page](https://github.github.com/github-flavored-markdown/).

##### Table of Contents

Expand Down Expand Up @@ -173,8 +173,8 @@ example.com (but not on GitHub, for example).
Some text to show that the reference links can follow later.
[arbitrary case-insensitive reference text]: https://www.mozilla.org
[1]: http://slashdot.org
[link text itself]: http://www.reddit.com
[1]: https://slashdot.org
[link text itself]: https://www.reddit.com
```

[I'm an inline-style link](https://www.google.com)
Expand Down
2 changes: 1 addition & 1 deletion packages/gatsby-cli/src/handlers/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export default async (root: string, cmd: string | undefined): Promise<void> => {
- What You Don't Need Plugins For (https://www.gatsbyjs.com/docs/what-you-dont-need-plugins-for/)
- Loading Plugins from Your Local Plugins Folder (https://www.gatsbyjs.com/docs/loading-plugins-from-your-local-plugins-folder/)
- Plugin Library (https://www.gatsbyjs.com/plugins/)
Creating a plugin:
- Naming a Plugin (https://www.gatsbyjs.com/docs/naming-a-plugin/)
- Files Gatsby Looks for in a Plugin (https://www.gatsbyjs.com/docs/files-gatsby-looks-for-in-a-plugin/)
Expand Down
2 changes: 1 addition & 1 deletion packages/gatsby-source-contentful/src/extend-node-type.js
Original file line number Diff line number Diff line change
Expand Up @@ -788,7 +788,7 @@ exports.extendNodeType = ({ type, store }) => {
The image formats to generate. Valid values are AUTO (meaning the same format as the source image), JPG, PNG, and WEBP.
The default value is [AUTO, WEBP], and you should rarely need to change this. Take care if you specify JPG or PNG when you do
not know the formats of the source images, as this could lead to unwanted results such as converting JPEGs to PNGs. Specifying
both PNG and JPG is not supported and will be ignored.
both PNG and JPG is not supported and will be ignored.
`,
defaultValue: [``, `webp`],
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ exports.complex = {
ready: new Promise(),
nested: {
foo: `bar`,
callback: message => {
callback: message => {
return message.split(`,`)
}
}
}
}
}
4 changes: 2 additions & 2 deletions packages/gatsby-transformer-screenshot/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ property, and creates `Screenshot` child nodes with a `screenshotFile` field.
[Live demo](https://thatotherperson.github.io/gatsby-screenshot-demo/)
([source](https://github.com/ThatOtherPerson/gatsby-screenshot-demo))

Data should be in a yaml file named `sites.yml` and look like:
Data should be in a YAML file named `sites.yml` and look like:

```yaml
- url: https://reactjs.org/
Expand All @@ -31,7 +31,7 @@ module.exports = {
}
```

By default, the plugin will target nodes sourced from a yaml file named `sites.yml`.
By default, the plugin will target nodes sourced from a YAML file named `sites.yml`.

To source additional node types, supply an array of the types to a `nodeTypes` option on the plugin.

Expand Down

0 comments on commit 542d945

Please sign in to comment.