Skip to content

Commit aa0b906

Browse files
authored
New docs and website based on Nextra (dotansimha#7981)
This reverts commit ed07ffb.
1 parent db58604 commit aa0b906

File tree

179 files changed

+7573
-3566
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

179 files changed

+7573
-3566
lines changed

.gitignore

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,14 @@
1-
.idea
1+
.idea/
22
.npmrc
33
.yarnclean
44
.DS_Store
55
coverage
6-
npm-debug.log
7-
lerna-debug.log
8-
yarn-error.log
9-
node_modules
10-
website/build
11-
website/functions
12-
website/i18n
13-
website/static/live-demo
6+
*.log
7+
node_modules/
148
temp
15-
test-results/
169
junit.xml
17-
dist
18-
.bob
10+
dist/
11+
.bob/
1912
out.txt
2013
.cache
2114
tsconfig.tsbuildinfo

.prettierignore

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,13 @@ CHANGELOG.md
99
.husky/_/
1010
.changeset/*.md
1111

12-
# temporarly ignore follow files because prettier-ignore comments don't work in mdx2
12+
# temporarily ignore follow files because prettier-ignore comments don't work in mdx2
1313
# see https://github.com/prettier/prettier/pull/12208
14-
website/docs/advanced/how-does-it-work.mdx
15-
website/docs/getting-started/development-workflow.mdx
14+
website/src/pages/docs/advanced/generated-files-colocation.mdx
15+
website/src/pages/docs/advanced/how-does-it-work.mdx
16+
website/src/pages/docs/config-reference/schema-field.mdx
17+
website/src/pages/docs/getting-started/index.mdx
18+
website/src/pages/docs/guides/graphql-server-apollo-yoga.mdx
19+
website/src/pages/docs/guides/react.mdx
20+
website/src/pages/plugins/index.mdx
21+
website/src/pages/plugins/presets/near-operation-file-preset.mdx

package.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,7 @@
100100
"packages/**/src/**/*.{ts,tsx}": [
101101
"eslint --fix"
102102
],
103-
"**/*.{ts,tsx,graphql,yml}": [
104-
"prettier --write"
105-
],
106-
"**/*.json": [
103+
"**/*.{js,jsx,cjs,mjs,ts,tsx,graphql,gql,yml,yaml,json,md}": [
107104
"prettier --write"
108105
],
109106
"yarn.lock": [

packages/plugins/flow/operations/src/config.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export interface FlowDocumentsPluginConfig extends RawDocumentsConfig {
1313
* @default true
1414
*
1515
* @exampleMarkdown
16-
* ```yaml
16+
* ```yaml {6}
1717
* generates:
1818
* path/to/file.ts:
1919
* plugins:
@@ -28,7 +28,7 @@ export interface FlowDocumentsPluginConfig extends RawDocumentsConfig {
2828
* @default false
2929
*
3030
* @exampleMarkdown
31-
* ```yaml
31+
* ```yaml {6}
3232
* generates:
3333
* path/to/file.ts:
3434
* plugins:
@@ -43,7 +43,7 @@ export interface FlowDocumentsPluginConfig extends RawDocumentsConfig {
4343
* @default false
4444
*
4545
* @exampleMarkdown
46-
* ```yaml
46+
* ```yaml {7}
4747
* generates:
4848
* path/to/file.ts:
4949
* plugins:

packages/plugins/other/fragment-matcher/src/index.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ interface PossibleTypesResultData {
2828
*
2929
* If you are using `apollo-client` and your schema contains `interface` or `union` declaration, it's recommended to use Apollo's Fragment Matcher and the result generated by the plugin.
3030
*
31-
* You can read more about it in `apollo-client` documentation: https://www.apollographql.com/docs/react/data/fragments/#fragments-on-unions-and-interfaces.
31+
* You can read more about it in [`apollo-client` documentation](https://apollographql.com/docs/react/data/fragments/#fragments-on-unions-and-interfaces).
3232
*
3333
* Fragment Matcher plugin accepts a TypeScript / JavaScript or a JSON file as an output _(`.ts, .tsx, .js, .jsx, .json`)_.
3434
*
@@ -42,7 +42,7 @@ export interface FragmentMatcherConfig {
4242
* @default es2015
4343
*
4444
* @exampleMarkdown
45-
* ```yaml
45+
* ```yaml {6}
4646
* generates:
4747
* path/to/file.json:
4848
* plugins:
@@ -57,7 +57,7 @@ export interface FragmentMatcherConfig {
5757
* @default 3
5858
*
5959
* @exampleMarkdown
60-
* ```yaml
60+
* ```yaml {6}
6161
* generates:
6262
* path/to/file.ts:
6363
* plugins:
@@ -72,7 +72,7 @@ export interface FragmentMatcherConfig {
7272
* @default false
7373
*
7474
* @exampleMarkdown
75-
* ```yaml
75+
* ```yaml {6}
7676
* generates:
7777
* path/to/file.ts:
7878
* plugins:

packages/plugins/other/introspection/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export interface IntrospectionPluginConfig {
1212
* @default false
1313
*
1414
* @exampleMarkdown
15-
* ```yaml
15+
* ```yaml {6}
1616
* generates:
1717
* introspection.json:
1818
* plugins:

packages/plugins/other/schema-ast/src/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export interface SchemaASTConfig {
2626
* @default false
2727
*
2828
* @exampleMarkdown
29-
* ```yaml
29+
* ```yaml {8}
3030
* schema:
3131
* - './src/schema.graphql'
3232
* generates:
@@ -43,7 +43,7 @@ export interface SchemaASTConfig {
4343
* @default false
4444
*
4545
* @exampleMarkdown
46-
* ```yaml
46+
* ```yaml {8}
4747
* schema:
4848
* - './src/schema.graphql'
4949
* generates:
@@ -60,7 +60,7 @@ export interface SchemaASTConfig {
6060
* @default false
6161
*
6262
* @exampleMarkdown
63-
* ```yaml
63+
* ```yaml {7}
6464
* schema: http://localhost:3000/graphql
6565
* generates:
6666
* schema.graphql:

packages/plugins/other/time/src/config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export interface TimePluginConfig {
44
* @default YYYY-MM-DDTHH:mm:ssZ
55
*
66
* @exampleMarkdown
7-
* ```yaml
7+
* ```yaml {4-5}
88
* generates:
99
* path/to/file.ts:
1010
* plugins:
@@ -18,7 +18,7 @@ export interface TimePluginConfig {
1818
* @default 'Generated on'
1919
*
2020
* @exampleMarkdown
21-
* ```yaml
21+
* ```yaml {4-5}
2222
* generates:
2323
* path/to/file.ts:
2424
* plugins:

packages/plugins/other/urql-introspection/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export interface UrqlIntrospectionConfig {
2121
* @default es2015
2222
*
2323
* @exampleMarkdown
24-
* ```yaml
24+
* ```yaml {6}
2525
* generates:
2626
* path/to/file.json:
2727
* plugins:

packages/plugins/other/visitor-plugin-common/src/base-resolvers-visitor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ export interface RawResolversConfig extends RawConfig {
8181
* @description Adds `_` to generated `Args` types in order to avoid duplicate identifiers.
8282
*
8383
* @exampleMarkdown
84-
* ```yaml
84+
* ```yaml {2}
8585
* config:
8686
* addUnderscoreToArgsType: true
8787
* ```

0 commit comments

Comments
 (0)