Skip to content

Commit

Permalink
fix(docs) Remove backticks es6 import example (#9191)
Browse files Browse the repository at this point in the history
  • Loading branch information
c0b41 authored and DSchau committed Oct 17, 2018
1 parent 779274c commit 34e72bf
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions packages/gatsby-plugin-netlify-cms/README.md
Expand Up @@ -73,24 +73,24 @@ The js module might look like this:
* extension registration methods, such as `registerWidget` and
* `registerPreviewTemplate`.
*/
import CMS from `netlify-cms`
import CMS from 'netlify-cms'

/**
* Any imported styles will automatically be applied to the editor preview
* pane, there is no need to use `registerPreviewStyle` for imported styles.
* All of the example imports below would result in styles being applied to the
* preview pane.
*/
import `module-that-imports-styles.js`
import `styles.scss`
import `../other-styles.css`
import 'module-that-imports-styles.js'
import 'styles.scss'
import '../other-styles.css'

/**
* Let's say you've created widget and preview components for a custom image
* gallery widget in separate files:
*/
import ImageGalleryWidget from `./image-gallery-widget.js`
import ImageGalleryPreview from `./image-gallery-preview.js`
import ImageGalleryWidget from './image-gallery-widget.js'
import ImageGalleryPreview from './image-gallery-preview.js'

/**
* Register the imported widget:
Expand Down Expand Up @@ -118,7 +118,7 @@ plugins: [
The js module might look like this:

```javascript
import CMS, { init } from `netlify-cms`
import CMS, { init } from 'netlify-cms'

/**
* Optionally pass in a config object. This object will be merged into `config.yml` if it exists
Expand Down Expand Up @@ -179,7 +179,7 @@ plugins: [
options: {
modulePath: `path/to/custom/script.js`, // default: undefined
stylesPath: `path/to/styles.sass`, // default: undefined
enableIdentityWidget: `true`,
enableIdentityWidget: true,
publicPath: `admin`,
htmlTitle: `Content Manager`,
},
Expand Down

0 comments on commit 34e72bf

Please sign in to comment.