Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleAMathews committed Dec 13, 2017
1 parent 6d89117 commit 118e842
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 16 deletions.
19 changes: 14 additions & 5 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,28 +13,37 @@
-->

## Description

Describe the issue or the enhancement that you want to see.

### Environment
Gatsby version:
Node.js version:

Gatsby version:
Node.js version:
Operating System:

### File contents (if changed):

`gatsby-config.js`: <!-- code block or not changed -->
`package.json`: <!-- code block or not changed -->
`gatsby-node.js`: <!-- code block or not changed -->
`gatsby-browser.js`: <!-- code block or not changed -->
`gatsby-ssr.js`: <!-- code block or not changed -->

### Actual result

What happened.

### Expected behavior

What should happen?

### Steps to reproduce
1.
2.
3.

1\.

2\.

3\.

...
2 changes: 1 addition & 1 deletion packages/gatsby-source-drupal/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ plugins: [
resolve: `gatsby-source-drupal`,
options: {
baseUrl: `https://live-contentacms.pantheonsite.io/`,
apiBase: `api` // optional, defaults to `jsonapi`
apiBase: `api`, // optional, defaults to `jsonapi`
},
},
];
Expand Down
21 changes: 11 additions & 10 deletions packages/gatsby-transformer-yaml/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Both `.yaml` and `.yml` are treated in the same way. This document uses both of

`npm install --save gatsby-transformer-yaml`

__Note:__ You also need to have `gatsby-source-filesystem` installed and configured so it
**Note:** You also need to have `gatsby-source-filesystem` installed and configured so it
points to your files.

## How to use
Expand All @@ -24,11 +24,11 @@ module.exports = {
{
resolve: `gatsby-source-filesystem`,
options: {
path: `./src/data/`
}
}
],
}
path: `./src/data/`,
},
},
],
};
```

Where the _source folder_ `./src/data/` contains the `.yaml` files.
Expand All @@ -39,8 +39,9 @@ You can choose to structure your data as arrays of objects in individual files
or as single objects spread across multiple files.

The _source folder_ can contain either the following:
- __Array of Objects__: Where each file represents a collection. (_you probably want this one_)
- __Single Object__: Where each _subfolder_ represents a collection; each files represents one "record".

* **Array of Objects**: Where each file represents a collection. (_you probably want this one_)
* **Single Object**: Where each _subfolder_ represents a collection; each files represents one "record".

### Array of Objects

Expand All @@ -60,7 +61,7 @@ Then the following three nodes would be created.
```javascript
[
{
character: "a"
character: "a",
},
{
character: "b",
Expand Down Expand Up @@ -162,4 +163,4 @@ Which would return:
}
```

Please do __note__ that `allLettersYaml` __will not__ show up if you do not have any `.yaml` files.
Please do **note** that `allLettersYaml` **will not** show up if you do not have any `.yaml` files.

0 comments on commit 118e842

Please sign in to comment.