Skip to content

Commit

Permalink
docs(tutorial): fix Highlight-line on wrong line for tutorial part se…
Browse files Browse the repository at this point in the history
…ven (#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.
-->
  • Loading branch information
wduntak authored and pieh committed Dec 27, 2018
1 parent 494d23e commit 940bc22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/tutorial/part-seven/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 940bc22

Please sign in to comment.