Skip to content

Commit

Permalink
docs: add example for yaml configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
KaneFreeman committed Nov 8, 2023
1 parent 8096bde commit 1a76d03
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions packages/docs/content/docs/configuration-options.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -317,3 +317,20 @@ The YAML format parsing and stringifing can be customized via the `yaml` setting
| createNodeOptions | https://eemeli.org/yaml/#createnode-options |
| toJsOptions | https://eemeli.org/yaml/#tojs-options |
| toStringOptions | https://eemeli.org/yaml/#tostring-options |

**Example**

<CodeTabs>
```yaml
yaml:
toStringOptions:
indentSeq: false
```

```js
yaml: {
toStringOptions: { indentSeq: false },
},
```

</CodeTabs>

0 comments on commit 1a76d03

Please sign in to comment.