0.4.0 • Published 7 months ago

@content-island/gatsby-source-plugin v0.4.0

Weekly downloads
-
License
MIT
Repository
-
Last release
7 months ago

@content-island/gatsby-source-plugin

Installation

npm install @content-island/gatsby-source-plugin

Usage

// In your gatsby-config.js

module.exports = {
  plugins: [
    {
      resolve: '@content-island/gatsby-source-plugin',
      options: {
        accessToken: process.env.CONTENT_ISLAND_ACCESS_TOKEN,
      },
    },
  ],
};

Using with different environments

// In your gatsby-config.js

module.exports = {
  plugins: [
    {
      resolve: '@content-island/gatsby-source-plugin',
      options: {
        accessToken: process.env.CONTENT_ISLAND_ACCESS_TOKEN,
        domain: process.env.CONTENT_ISLAND_DOMAIN, // Default: api.contentisland.net
        apiVersion: process.env.CONTENT_ISLAND_API_VERSION, // Default: 1.0
      },
    },
  ],
};

Using with images transformer plugin

// In your gatsby-config.js

module.exports = {
  plugins: [
    {
      resolve: '@content-island/gatsby-source-plugin',
      options: {
        accessToken: process.env.CONTENT_ISLAND_ACCESS_TOKEN,
      },
    },
    'gatsby-plugin-sharp',
    'gatsby-transformer-sharp',
    'gatsby-plugin-image',
  ],
};

Using with markdown transformer plugin

// In your gatsby-config.js

module.exports = {
  plugins: [
    {
      resolve: '@content-island/gatsby-source-plugin',
      options: {
        accessToken: process.env.CONTENT_ISLAND_ACCESS_TOKEN,
      },
    },

    'gatsby-transformer-remark',
  ],
};

NOTE: You can combine images and markdown transformer together.

0.4.0

7 months ago

0.3.1

7 months ago

0.3.0

7 months ago

0.2.1

8 months ago

0.2.0

8 months ago

0.1.4

8 months ago

0.1.3

8 months ago

0.1.2

8 months ago

0.1.1

8 months ago

0.1.0

8 months ago