Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(docs) Remove backticks es6 import example #9191

Merged
merged 1 commit into from
Oct 17, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions packages/gatsby-plugin-netlify-cms/README.md
Original file line number Diff line number Diff line change
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