Skip to content

Commit 23104a4

Browse files
committed
refactor: update GraphQL page titles
refactor: update GraphQL reference
1 parent 8df3be1 commit 23104a4

File tree

1,233 files changed

+50725
-1911
lines changed

Some content is hidden

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

1,233 files changed

+50725
-1911
lines changed

.vscode/settings.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
".docusaurus": true,
1111
"build": true,
1212
"node_modules": true,
13-
"repos": true
13+
"repos": true,
14+
"docs/api/**/graphql": true
1415
},
1516
"[css][javascript][javascriptreact][typescript][typescriptreact]": {
1617
"editor.defaultFormatter": "biomejs.biome"

cli/commands/autogen/graphql.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,8 @@ const COLLAPSED = {
8686

8787
const THE_GRAPH_CATEGORY: Category = { ...COLLAPSED, label: "The Graph", position: 2 };
8888
const ENVIO_CATEGORY: Category = { ...COLLAPSED, label: "Envio", position: 3 };
89-
const QUERIES_CATEGORY: Category = { ...COLLAPSED, label: "Queries", position: 2 }; // first is the overview
90-
const OBJECTS_CATEGORY: Category = { ...COLLAPSED, label: "Objects", position: 3 };
89+
const OBJECTS_CATEGORY: Category = { ...COLLAPSED, label: "Objects", position: 2 };
90+
const QUERIES_CATEGORY: Category = { ...COLLAPSED, label: "Query Syntax", position: 3 }; // first is the overview
9191
const ENUMS_CATEGORY: Category = { ...COLLAPSED, className: "hidden", label: "Enums", position: 4 };
9292
const INPUTS_CATEGORY: Category = { ...COLLAPSED, className: "hidden", label: "Inputs", position: 5 };
9393
const SCALARS_CATEGORY: Category = { ...COLLAPSED, className: "hidden", label: "Scalars", position: 6 };
@@ -98,17 +98,17 @@ function cleanupDocs(docsPaths: string[]): void {
9898
fs.rmSync(join(docsPath, "subscriptions"), { force: true, recursive: true });
9999

100100
// Delete all _category_.yml files
101-
fs.unlinkSync(join(docsPath, "queries", "_category_.yml"));
102101
fs.unlinkSync(join(docsPath, "enums", "_category_.yml"));
103102
fs.unlinkSync(join(docsPath, "inputs", "_category_.yml"));
104103
fs.unlinkSync(join(docsPath, "objects", "_category_.yml"));
104+
fs.unlinkSync(join(docsPath, "queries", "_category_.yml"));
105105
fs.unlinkSync(join(docsPath, "scalars", "_category_.yml"));
106106

107107
// Rewrite _category_.yml files
108-
fs.writeFileSync(join(docsPath, "queries", "_category_.yml"), yaml.dump(QUERIES_CATEGORY));
109-
fs.writeFileSync(join(docsPath, "objects", "_category_.yml"), yaml.dump(OBJECTS_CATEGORY));
110108
fs.writeFileSync(join(docsPath, "enums", "_category_.yml"), yaml.dump(ENUMS_CATEGORY));
111109
fs.writeFileSync(join(docsPath, "inputs", "_category_.yml"), yaml.dump(INPUTS_CATEGORY));
110+
fs.writeFileSync(join(docsPath, "objects", "_category_.yml"), yaml.dump(OBJECTS_CATEGORY));
111+
fs.writeFileSync(join(docsPath, "queries", "_category_.yml"), yaml.dump(QUERIES_CATEGORY));
112112
fs.writeFileSync(join(docsPath, "scalars", "_category_.yml"), yaml.dump(SCALARS_CATEGORY));
113113

114114
// Write vendor category file at base path
@@ -131,7 +131,7 @@ async function generateEnvio(protocol: Indexer.Protocol): Promise<string> {
131131

132132
async function generateGraph(protocol: Indexer.Protocol): Promise<string> {
133133
const docsPath = `./docs/api/${protocol}/graphql/the-graph`;
134-
const schemaURL = getIndexerGraph({ chainId: CHAIN_ID_SEPOLIA, protocol }).endpoint.url;
134+
const schemaURL = getIndexerGraph({ chainId: CHAIN_ID_SEPOLIA, protocol }).testingURL;
135135

136136
await runGenerator(docsPath, schemaURL);
137137
console.log(`✔️ Generated GraphQL docs for The Graph vendor and ${_.capitalize(protocol)} protocol\n`);

docs/api/airdrops/graphql/envio/enums/action-select-column.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export const SpecifiedBy = (props) => (
2222
<a
2323
className="link"
2424
style={{ fontSize: "1.5em", paddingLeft: "4px" }}
25-
target="\_blank"
25+
target="_blank"
2626
href={props.url}
2727
title={"Specified by " + props.url}
2828
>

docs/api/airdrops/graphql/envio/enums/activity-select-column.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export const SpecifiedBy = (props) => (
2222
<a
2323
className="link"
2424
style={{ fontSize: "1.5em", paddingLeft: "4px" }}
25-
target="\_blank"
25+
target="_blank"
2626
href={props.url}
2727
title={"Specified by " + props.url}
2828
>

docs/api/airdrops/graphql/envio/enums/asset-select-column.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export const SpecifiedBy = (props) => (
2222
<a
2323
className="link"
2424
style={{ fontSize: "1.5em", paddingLeft: "4px" }}
25-
target="\_blank"
25+
target="_blank"
2626
href={props.url}
2727
title={"Specified by " + props.url}
2828
>
Lines changed: 101 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
---
2+
id: campaign-select-column-campaign-aggregate-bool-exp-bool-and-arguments-columns
3+
title: Campaign_select_column_Campaign_aggregate_bool_exp_bool_and_arguments_columns
4+
---
5+
6+
<head>
7+
<meta content="noindex" name="robots" />
8+
<meta charset="utf-8" />
9+
</head>
10+
11+
export const Bullet = () => (
12+
<>
13+
<span style={{ fontWeight: "normal", fontSize: ".5em", color: "var(--ifm-color-secondary-darkest)" }}>
14+
&nbsp;&nbsp;
15+
</span>
16+
</>
17+
);
18+
19+
export const SpecifiedBy = (props) => (
20+
<>
21+
Specification
22+
<a
23+
className="link"
24+
style={{ fontSize: "1.5em", paddingLeft: "4px" }}
25+
target="_blank"
26+
href={props.url}
27+
title={"Specified by " + props.url}
28+
>
29+
30+
</a>
31+
</>
32+
);
33+
34+
export const Badge = (props) => (
35+
<>
36+
<span className={props.class}>{props.text}</span>
37+
</>
38+
);
39+
40+
import { useState } from "react";
41+
42+
export const Details = ({ dataOpen, dataClose, children, startOpen = false }) => {
43+
const [open, setOpen] = useState(startOpen);
44+
return (
45+
<details
46+
{...(open ? { open: true } : {})}
47+
className="details"
48+
style={{ border: "none", boxShadow: "none", background: "var(--ifm-background-color)" }}
49+
>
50+
<summary
51+
onClick={(e) => {
52+
e.preventDefault();
53+
setOpen((open) => !open);
54+
}}
55+
style={{ listStyle: "none" }}
56+
>
57+
{open ? dataOpen : dataClose}
58+
</summary>
59+
{open && children}
60+
</details>
61+
);
62+
};
63+
64+
select "Campaign_aggregate_bool_exp_bool_and_arguments_columns" columns of table "Campaign"
65+
66+
```graphql
67+
enum Campaign_select_column_Campaign_aggregate_bool_exp_bool_and_arguments_columns {
68+
expires
69+
streamCancelable
70+
streamCliff
71+
streamInitial
72+
streamStart
73+
streamTransferable
74+
}
75+
```
76+
77+
### Values
78+
79+
#### [<code style={{ fontWeight: 'normal' }}>Campaign_select_column_Campaign_aggregate_bool_exp_bool_and_arguments_columns.<b>expires</b></code>](#)
80+
81+
column name
82+
83+
#### [<code style={{ fontWeight: 'normal' }}>Campaign_select_column_Campaign_aggregate_bool_exp_bool_and_arguments_columns.<b>streamCancelable</b></code>](#)
84+
85+
column name
86+
87+
#### [<code style={{ fontWeight: 'normal' }}>Campaign_select_column_Campaign_aggregate_bool_exp_bool_and_arguments_columns.<b>streamCliff</b></code>](#)
88+
89+
column name
90+
91+
#### [<code style={{ fontWeight: 'normal' }}>Campaign_select_column_Campaign_aggregate_bool_exp_bool_and_arguments_columns.<b>streamInitial</b></code>](#)
92+
93+
column name
94+
95+
#### [<code style={{ fontWeight: 'normal' }}>Campaign_select_column_Campaign_aggregate_bool_exp_bool_and_arguments_columns.<b>streamStart</b></code>](#)
96+
97+
column name
98+
99+
#### [<code style={{ fontWeight: 'normal' }}>Campaign_select_column_Campaign_aggregate_bool_exp_bool_and_arguments_columns.<b>streamTransferable</b></code>](#)
100+
101+
column name
Lines changed: 101 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
---
2+
id: campaign-select-column-campaign-aggregate-bool-exp-bool-or-arguments-columns
3+
title: Campaign_select_column_Campaign_aggregate_bool_exp_bool_or_arguments_columns
4+
---
5+
6+
<head>
7+
<meta content="noindex" name="robots" />
8+
<meta charset="utf-8" />
9+
</head>
10+
11+
export const Bullet = () => (
12+
<>
13+
<span style={{ fontWeight: "normal", fontSize: ".5em", color: "var(--ifm-color-secondary-darkest)" }}>
14+
&nbsp;&nbsp;
15+
</span>
16+
</>
17+
);
18+
19+
export const SpecifiedBy = (props) => (
20+
<>
21+
Specification
22+
<a
23+
className="link"
24+
style={{ fontSize: "1.5em", paddingLeft: "4px" }}
25+
target="_blank"
26+
href={props.url}
27+
title={"Specified by " + props.url}
28+
>
29+
30+
</a>
31+
</>
32+
);
33+
34+
export const Badge = (props) => (
35+
<>
36+
<span className={props.class}>{props.text}</span>
37+
</>
38+
);
39+
40+
import { useState } from "react";
41+
42+
export const Details = ({ dataOpen, dataClose, children, startOpen = false }) => {
43+
const [open, setOpen] = useState(startOpen);
44+
return (
45+
<details
46+
{...(open ? { open: true } : {})}
47+
className="details"
48+
style={{ border: "none", boxShadow: "none", background: "var(--ifm-background-color)" }}
49+
>
50+
<summary
51+
onClick={(e) => {
52+
e.preventDefault();
53+
setOpen((open) => !open);
54+
}}
55+
style={{ listStyle: "none" }}
56+
>
57+
{open ? dataOpen : dataClose}
58+
</summary>
59+
{open && children}
60+
</details>
61+
);
62+
};
63+
64+
select "Campaign_aggregate_bool_exp_bool_or_arguments_columns" columns of table "Campaign"
65+
66+
```graphql
67+
enum Campaign_select_column_Campaign_aggregate_bool_exp_bool_or_arguments_columns {
68+
expires
69+
streamCancelable
70+
streamCliff
71+
streamInitial
72+
streamStart
73+
streamTransferable
74+
}
75+
```
76+
77+
### Values
78+
79+
#### [<code style={{ fontWeight: 'normal' }}>Campaign_select_column_Campaign_aggregate_bool_exp_bool_or_arguments_columns.<b>expires</b></code>](#)
80+
81+
column name
82+
83+
#### [<code style={{ fontWeight: 'normal' }}>Campaign_select_column_Campaign_aggregate_bool_exp_bool_or_arguments_columns.<b>streamCancelable</b></code>](#)
84+
85+
column name
86+
87+
#### [<code style={{ fontWeight: 'normal' }}>Campaign_select_column_Campaign_aggregate_bool_exp_bool_or_arguments_columns.<b>streamCliff</b></code>](#)
88+
89+
column name
90+
91+
#### [<code style={{ fontWeight: 'normal' }}>Campaign_select_column_Campaign_aggregate_bool_exp_bool_or_arguments_columns.<b>streamInitial</b></code>](#)
92+
93+
column name
94+
95+
#### [<code style={{ fontWeight: 'normal' }}>Campaign_select_column_Campaign_aggregate_bool_exp_bool_or_arguments_columns.<b>streamStart</b></code>](#)
96+
97+
column name
98+
99+
#### [<code style={{ fontWeight: 'normal' }}>Campaign_select_column_Campaign_aggregate_bool_exp_bool_or_arguments_columns.<b>streamTransferable</b></code>](#)
100+
101+
column name

docs/api/airdrops/graphql/envio/enums/campaign-select-column.mdx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export const SpecifiedBy = (props) => (
2222
<a
2323
className="link"
2424
style={{ fontSize: "1.5em", paddingLeft: "4px" }}
25-
target="\_blank"
25+
target="_blank"
2626
href={props.url}
2727
title={"Specified by " + props.url}
2828
>
@@ -86,6 +86,7 @@ enum Campaign_select_column {
8686
lockup
8787
name
8888
nickname
89+
position
8990
root
9091
streamCancelable
9192
streamCliff
@@ -191,6 +192,10 @@ column name
191192

192193
column name
193194

195+
#### [<code style={{ fontWeight: 'normal' }}>Campaign_select_column.<b>position</b></code>](#)
196+
197+
column name
198+
194199
#### [<code style={{ fontWeight: 'normal' }}>Campaign_select_column.<b>root</b></code>](#)
195200

196201
column name

docs/api/airdrops/graphql/envio/enums/chain-metadata-select-column.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export const SpecifiedBy = (props) => (
2222
<a
2323
className="link"
2424
style={{ fontSize: "1.5em", paddingLeft: "4px" }}
25-
target="\_blank"
25+
target="_blank"
2626
href={props.url}
2727
title={"Specified by " + props.url}
2828
>

docs/api/airdrops/graphql/envio/enums/cursor-ordering.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export const SpecifiedBy = (props) => (
2222
<a
2323
className="link"
2424
style={{ fontSize: "1.5em", paddingLeft: "4px" }}
25-
target="\_blank"
25+
target="_blank"
2626
href={props.url}
2727
title={"Specified by " + props.url}
2828
>

0 commit comments

Comments
 (0)