From 940bc227d68cc1178afa3dab6962100a4341f5a8 Mon Sep 17 00:00:00 2001 From: Wangdu Date: Thu, 27 Dec 2018 08:24:50 -0500 Subject: [PATCH] docs(tutorial): fix Highlight-line on wrong line for tutorial part seven (#10635) ## Description The hightlight-line comment is on the wrong line at line 77 and should be on line 76. Therefore, it is not showing the highlight of the new getNode function introduced as a parameter to the onCreateNode function. Screenshot from tutorial on part seven: screen shot 2018-12-23 at 12 49 14 pm ## Related Issues --- docs/tutorial/part-seven/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/tutorial/part-seven/index.md b/docs/tutorial/part-seven/index.md index 07d8859570a16..c62eb7a119eec 100644 --- a/docs/tutorial/part-seven/index.md +++ b/docs/tutorial/part-seven/index.md @@ -73,8 +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 +// highlight-next-line exports.onCreateNode = ({ node, getNode }) => { - // highlight-line if (node.internal.type === `MarkdownRemark`) { // highlight-start const fileNode = getNode(node.parent)