Skip to content

Commit 850e18c

Browse files
albertodm-allanson
authored andcommitted
docs(gatsby-remark-prismjs): Use Gatsby V2 project structure (#10059)
From the guide "Migrating from v1 to v2" (https://www.gatsbyjs.org/docs/migrating-from-v1-to-v2/#2-move-layoutsindexjs-to-srccomponentslayoutjs-optional-but-recommended). The project structure has the layout file now on "src/components/layout.js" instead of "layouts/index.js" <!-- Q. Which branch should I use for my pull request? A. Use `master` branch (probably). Q. Which branch if my change is a bug fix for Gatsby v1? A. In this case, you should use the `v1` branch Q. Which branch if I'm still not sure? A. Use `master` branch. Ask in the PR if you're not sure and a Gatsby maintainer will be happy to help :) Note: We will only accept bug fixes for Gatsby v1. New features should be added to Gatsby v2. Learn more about contributing: https://www.gatsbyjs.org/docs/how-to-contribute/ -->
1 parent 7ad166e commit 850e18c

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
@@ -137,10 +137,10 @@ CSS along your PrismJS theme and the styles for `.gatsby-highlight-code-line`:
137137

138138
If you want to add line numbering alongside your code, you need to
139139
import the corresponding CSS file from PrismJS, right after importing your
140-
colorscheme in `layout/index.js`:
140+
colorscheme in `src/components/layout.js`:
141141

142142
```javascript
143-
// layouts/index.js
143+
// src/components/layout.js
144144
require("prismjs/plugins/line-numbers/prism-line-numbers.css")
145145
```
146146

0 commit comments

Comments
 (0)