Skip to content

Commit

Permalink
docs(gatsby-remark-prismjs): Use Gatsby V2 project structure (#10059)
Browse files Browse the repository at this point in the history
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/
-->
  • Loading branch information
albertod authored and m-allanson committed Dec 6, 2018
1 parent 7ad166e commit 850e18c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/gatsby-remark-prismjs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,10 +137,10 @@ CSS along your PrismJS theme and the styles for `.gatsby-highlight-code-line`:

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

```javascript
// layouts/index.js
// src/components/layout.js
require("prismjs/plugins/line-numbers/prism-line-numbers.css")
```

Expand Down

0 comments on commit 850e18c

Please sign in to comment.