Skip to content

Commit 215e723

Browse files
authored
Bump Docusaurus (#537)
1 parent 29ad98c commit 215e723

3 files changed

Lines changed: 43 additions & 18 deletions

File tree

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
---
2+
id: create-config
3+
title: Creating Config
4+
sidebar_label: Creating Config
5+
---
6+
7+
## createConfig
8+
9+
This function is one of the starting points for using GraphQL Config. It's different than `loadConfig` because it doesn't look for a config file, it's you who needs to provide an object instead.
10+
11+
A basic usage example:
12+
13+
```typescript
14+
import {createConfig} from 'graphql-config';
15+
16+
function main() {
17+
const config = createConfig({
18+
config: {
19+
schema: 'schema.graphql',
20+
},
21+
extensions: [
22+
/* ... */
23+
],
24+
}); // an instance of GraphQLConfig
25+
}
26+
```
27+
28+
## Options
29+
30+
### `config`
31+
32+
_type: `IGraphQLConfig`_
33+
34+
Raw GraphQL Config object.
35+
36+
37+
### `extensions`
38+
39+
_type: `GraphQLExtensionDeclaration[]`_
40+
41+
An array of `GraphQLExtensionDeclaration` objects, place to register extensions.

website/package.json

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,13 @@
11
{
22
"scripts": {
3-
"postinstall": "patch-package",
43
"start": "docusaurus start",
54
"build": "docusaurus build",
65
"swizzle": "docusaurus swizzle",
76
"deploy": "docusaurus deploy"
87
},
98
"dependencies": {
10-
"@docusaurus/core": "2.0.0-alpha.50",
11-
"@docusaurus/preset-classic": "2.0.0-alpha.50",
12-
"classnames": "2.2.6",
13-
"patch-package": "6.2.2",
9+
"@docusaurus/core": "2.0.0-alpha.54",
10+
"@docusaurus/preset-classic": "2.0.0-alpha.54",
1411
"react": "16.13.1",
1512
"react-dom": "16.13.1"
1613
},

website/patches/@docusaurus+plugin-sitemap+2.0.0-alpha.50.patch

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)