-
Notifications
You must be signed in to change notification settings - Fork 10.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(gatsby-plugin-manifest): don't output
theme-color
meta tag if …
…it's not defiened (#10069) Not really sure how I go about submitting a PR here. This addition references issue #9977 Any guidance would be greatly appreciated.
- Loading branch information
Showing
4 changed files
with
88 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,37 @@ | ||
## gatsby-source-faker | ||
|
||
This is a plugin that allows you to use [faker.js](https://github.com/marak/Faker.js/) to generate fake data for gatsby sites. This could come in handy for creating example sites, documentation, or just to experiment with Gatsby.js | ||
|
||
### To use it | ||
|
||
Install `gatsby-source-faker` | ||
|
||
``` | ||
npm install --save gatsby-source-faker | ||
``` | ||
|
||
or | ||
|
||
``` | ||
npm install gatsby-source-faker | ||
``` | ||
|
||
Add `gatsby-source-faker` to the `gatsby-config.js` as follows | ||
|
||
```javascript | ||
plugins: [ | ||
{ | ||
resolve: `gatsby-source-faker`, | ||
// derive schema from faker's options | ||
options: { | ||
schema: { | ||
name: ["firstName", "lastName"], | ||
}, | ||
count: 3, // how many fake objects you need | ||
type: "NameData", // Name of the graphql query node | ||
}, | ||
}, | ||
] | ||
``` | ||
|
||
Example: [Using Faker](https://github.com/gatsbyjs/gatsby/tree/master/examples/using-faker) | ||
## gatsby-source-faker | ||
|
||
This is a plugin that allows you to use [faker.js](https://github.com/marak/Faker.js/) to generate fake data for gatsby sites. This could come in handy for creating example sites, documentation, or just to experiment with Gatsby.js | ||
|
||
### To use it | ||
|
||
Install `gatsby-source-faker` | ||
|
||
``` | ||
npm install --save gatsby-source-faker | ||
``` | ||
|
||
or | ||
|
||
``` | ||
npm install gatsby-source-faker | ||
``` | ||
|
||
Add `gatsby-source-faker` to the `gatsby-config.js` as follows | ||
|
||
```javascript | ||
plugins: [ | ||
{ | ||
resolve: `gatsby-source-faker`, | ||
// derive schema from faker's options | ||
options: { | ||
schema: { | ||
name: ["firstName", "lastName"], | ||
}, | ||
count: 3, // how many fake objects you need | ||
type: "NameData", // Name of the graphql query node | ||
}, | ||
}, | ||
] | ||
``` | ||
|
||
Example: [Using Faker](https://github.com/gatsbyjs/gatsby/tree/master/examples/using-faker) |