From abeab149f90f253d39bd27477d1c5479d08823f2 Mon Sep 17 00:00:00 2001 From: ayhankuru Date: Wed, 17 Oct 2018 21:07:33 +0300 Subject: [PATCH] fix(docs) Remove backticks es6 import example --- packages/gatsby-plugin-netlify-cms/README.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/packages/gatsby-plugin-netlify-cms/README.md b/packages/gatsby-plugin-netlify-cms/README.md index 165e5fb027efd..d8c45056f3a0e 100644 --- a/packages/gatsby-plugin-netlify-cms/README.md +++ b/packages/gatsby-plugin-netlify-cms/README.md @@ -73,7 +73,7 @@ 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 @@ -81,16 +81,16 @@ import CMS from `netlify-cms` * 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: @@ -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 @@ -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`, },