Skip to content

Commit 6061831

Browse files
dcgoodwin2112pieh
authored andcommitted
docs: Update Reference to src/layouts/index.js (#19241)
In the the code comments for "showLineNumbers: false", the instruction reference src/layouts/index.js which appears to be left over from Gatsby version 1. The line number instructions further down the page reference gatsby-browser.js instead of src/layouts/index.js. This PR updates the instructions in the code comments to point to gatsby-browser.js.
1 parent fc3572a commit 6061831

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/gatsby-remark-prismjs/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ plugins: [
4040
// bash highlighter.
4141
aliases: {},
4242
// This toggles the display of line numbers globally alongside the code.
43-
// To use it, add the following line in src/layouts/index.js
43+
// To use it, add the following line in gatsby-browser.js
4444
// right after importing the prism color scheme:
45-
// `require("prismjs/plugins/line-numbers/prism-line-numbers.css");`
45+
// require("prismjs/plugins/line-numbers/prism-line-numbers.css")
4646
// Defaults to false.
4747
// If you wish to only show line numbers on certain code blocks,
4848
// leave false and use the {numberLines: true} syntax below

0 commit comments

Comments
 (0)