Skip to content

Commit 940bc22

Browse files
wduntakpieh
authored andcommitted
docs(tutorial): fix Highlight-line on wrong line for tutorial part seven (#10635)
<!-- Have any questions? Check out the contributing docs at https://gatsby.app/contribute, or ask in this Pull Request and a Gatsby maintainer will be happy to help :) --> ## 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: <img width="753" alt="screen shot 2018-12-23 at 12 49 14 pm" src="https://user-images.githubusercontent.com/9094342/50386304-1226f880-06b2-11e9-98f2-444bdc859db7.png"> ## Related Issues <!-- Link to the issue that is fixed by this PR (if there is one) e.g. Fixes #1234, Addresses #1234, Related to #1234, etc. -->
1 parent 494d23e commit 940bc22

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/tutorial/part-seven/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ the "node graph" to its _parent_ `File` node, as `File` nodes contain data you
7373
need about files on disk. To do that, modify your function again:
7474

7575
```javascript:title=gatsby-node.js
76+
// highlight-next-line
7677
exports.onCreateNode = ({ node, getNode }) => {
77-
// highlight-line
7878
if (node.internal.type === `MarkdownRemark`) {
7979
// highlight-start
8080
const fileNode = getNode(node.parent)

0 commit comments

Comments
 (0)