Skip to content

Commit

Permalink
chore(docs): Update formatting (#22845)
Browse files Browse the repository at this point in the history
* Fix formatting, add commas

* chore: format

Co-authored-by: gatsbybot <mathews.kyle+gatsbybot@gmail.com>
  • Loading branch information
tstreamDOTh and gatsbybot authored Apr 6, 2020
1 parent 6d35453 commit 22b3033
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions docs/docs/creating-a-generic-plugin.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,16 @@ In `gatsby-node.js` you can carry out functions with these APIs, such as:
[sourceNodes](/docs/node-apis/#sourceNodes) is a life-cycle API that a plugin can use to create Nodes. An example of how to implement a function using `sourceNodes` is shown below:

```javascript:title=gatsby-node.js
exports.sourceNodes = ({ actions, createNodeId, createContentDigest })=>{
exports.sourceNodes = ({ actions, createNodeId, createContentDigest }) => {
const nodeData = {
title : "Test Node",
description:"Testing the node "
title: "Test Node",
description: "Testing the node ",
}
const newNode = {
...nodeData,
id: createNodeId("TestNode-testid")
internal :{
type: "TestNode"
id: createNodeId("TestNode-testid"),
internal: {
type: "TestNode",
contentDigest: createContentDigest(nodeData),
},
}
Expand Down

0 comments on commit 22b3033

Please sign in to comment.