Skip to content

Commit

Permalink
Syntax highlighting for README
Browse files Browse the repository at this point in the history
  • Loading branch information
rphillips-nz committed Jul 1, 2021
1 parent fb270bb commit e265ee8
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ disable this if you want to maintain the plugin versioning yourself or you exper
Disabling the automatic injection prevents the templates being copied. In order to retain this,
you may wish to add the following to your `_cloudcannon-prebuild.sh`:

```
```sh
rm -rf cloudcannon
cp -R node_modules/eleventy-plugin-cloudcannon/cloudcannon .
```

If you use custom paths for your site, pass them to the plugin in the `cloudcannonOptions` key
within your `.eleventy.js` file:

```
```javascript
module.exports = function (eleventyConfig) {
const config = {
pathPrefix: '/',
Expand All @@ -44,13 +44,13 @@ module.exports = function (eleventyConfig) {

Available on [npm](https://www.npmjs.com/package/eleventy-plugin-cloudcannon).

```
```sh
npm install eleventy-plugin-cloudcannon --save
```

Add the following `addPlugin` call to the `module.exports` function in your `.eleventy.js` file:

```
```javascript
const pluginCloudCannon = require('eleventy-plugin-cloudcannon');

module.exports = function (eleventyConfig) {
Expand All @@ -60,7 +60,7 @@ module.exports = function (eleventyConfig) {

If you use custom paths for your site, pass them to the plugin as well:

```
```javascript
const pluginCloudCannon = require('eleventy-plugin-cloudcannon');

module.exports = function (eleventyConfig) {
Expand Down Expand Up @@ -104,7 +104,7 @@ Details on each property here are listed in the relevant parts of the

The following is an empty template as an example.

```
```json
{
"timezone": "",
"collections": {
Expand Down

0 comments on commit e265ee8

Please sign in to comment.