From 240d9c3eb925718c32c1ab79daa56f97c1d8239c Mon Sep 17 00:00:00 2001 From: wduntak Date: Sun, 23 Dec 2018 12:45:41 -0500 Subject: [PATCH 1/2] Fix position of highlight-line from line 77 to line 76 --- docs/tutorial/part-seven/index.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/tutorial/part-seven/index.md b/docs/tutorial/part-seven/index.md index 07d8859570a16..8da60c0c46138 100644 --- a/docs/tutorial/part-seven/index.md +++ b/docs/tutorial/part-seven/index.md @@ -73,8 +73,7 @@ the "node graph" to its _parent_ `File` node, as `File` nodes contain data you need about files on disk. To do that, modify your function again: ```javascript:title=gatsby-node.js -exports.onCreateNode = ({ node, getNode }) => { - // highlight-line +exports.onCreateNode = ({ node, getNode }) => { // highlight-line if (node.internal.type === `MarkdownRemark`) { // highlight-start const fileNode = getNode(node.parent) From 9c7e3ceaed5cff82ea6ec096eb88618b2e931b34 Mon Sep 17 00:00:00 2001 From: Michal Piechowiak Date: Thu, 27 Dec 2018 14:02:59 +0100 Subject: [PATCH 2/2] fix linting --- docs/tutorial/part-seven/index.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/tutorial/part-seven/index.md b/docs/tutorial/part-seven/index.md index 8da60c0c46138..c62eb7a119eec 100644 --- a/docs/tutorial/part-seven/index.md +++ b/docs/tutorial/part-seven/index.md @@ -73,7 +73,8 @@ the "node graph" to its _parent_ `File` node, as `File` nodes contain data you need about files on disk. To do that, modify your function again: ```javascript:title=gatsby-node.js -exports.onCreateNode = ({ node, getNode }) => { // highlight-line +// highlight-next-line +exports.onCreateNode = ({ node, getNode }) => { if (node.internal.type === `MarkdownRemark`) { // highlight-start const fileNode = getNode(node.parent)