forked from apollographql/gatsby-theme-apollo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy paththeme-options.js
221 lines (218 loc) · 6.35 KB
/
theme-options.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
const navConfig = {
'Apollo Basics': {
category: 'Core',
url: 'https://www.apollographql.com/docs',
description:
'Learn about each part of the Apollo platform and how they all work together.',
omitLandingPage: true
},
'Apollo Client (React)': {
docset: 'react',
category: 'Apollo Client',
shortName: 'React / JS',
url: 'https://www.apollographql.com/docs/react',
description:
"Manage your React app's state and seamlessly execute GraphQL operations.",
topArticles: [
{
title: 'Get started',
url: 'https://www.apollographql.com/docs/react/get-started/'
},
{
title: 'Queries',
url: 'https://www.apollographql.com/docs/react/data/queries/'
},
{
title: 'Caching overview',
url: 'https://www.apollographql.com/docs/react/caching/overview/'
}
]
},
'Apollo Client (iOS)': {
docset: 'ios',
category: 'Apollo Client',
shortName: 'iOS',
url: 'https://www.apollographql.com/docs/ios',
description:
"Manage your iOS app's state and seamlessly execute GraphQL operations.",
topArticles: [
{
title: 'Tutorial',
url: 'https://www.apollographql.com/docs/ios/tutorial/tutorial-introduction/'
},
{
title: 'Downloading a schema',
url: 'https://www.apollographql.com/docs/ios/downloading-schema/'
},
{
title: 'Fetching queries',
url: 'https://www.apollographql.com/docs/ios/fetching-queries/'
}
]
},
'Apollo Client (Android)': {
docset: 'android',
category: 'Apollo Client',
shortName: 'Android',
url: 'https://www.apollographql.com/docs/android',
description:
"Manage your Android app's state and seamlessly execute GraphQL operations.",
topArticles: [
{
title: 'Tutorial',
url: 'https://www.apollographql.com/docs/android/tutorial/00-introduction/'
},
{
title: 'Queries',
url: 'https://www.apollographql.com/docs/android/essentials/queries/'
},
{
title: 'Normalized cache',
url: 'https://www.apollographql.com/docs/android/essentials/normalized-cache/'
}
]
},
'Apollo Server': {
docset: 'apollo-server',
category: 'Backend',
url: 'https://www.apollographql.com/docs/apollo-server',
description:
'Configure a production-ready GraphQL server to fetch and combine data from multiple sources.',
topArticles: [
{
title: 'Get started',
url: 'https://www.apollographql.com/docs/apollo-server/getting-started/'
},
{
title: 'Schema basics',
url: 'https://www.apollographql.com/docs/apollo-server/schema/schema/'
},
{
title: 'Resolvers',
url: 'https://www.apollographql.com/docs/apollo-server/data/resolvers/'
}
]
},
'Apollo Federation': {
docset: 'federation',
category: 'Backend',
url: 'https://www.apollographql.com/docs/federation',
description: 'Implement a single unified graph across multiple subgraphs.',
topArticles: [
{
title: 'Introduction',
url: 'https://www.apollographql.com/docs/federation/'
},
{
title: 'Quickstart',
url: 'https://www.apollographql.com/docs/federation/quickstart/'
},
{
title: 'Enterprise guide',
url: 'https://www.apollographql.com/docs/federation/enterprise-guide/introduction/'
}
]
},
'Apollo Router (alpha)': {
docset: 'router',
category: 'Backend',
url: 'https://www.apollographql.com/docs/router',
description: 'Optimize your federated graph with a high-performance graph router written in Rust.',
omitLandingPage: true
},
'Apollo Studio': {
docset: 'studio',
category: 'Tools',
url: 'https://www.apollographql.com/docs/graph-manager',
description:
'Build your graph with your team, evolve it safely, and keep it running smoothly.',
topArticles: [
{
title: 'Get started',
url: 'https://www.apollographql.com/docs/studio/getting-started/'
},
{
title: 'Metrics reporting',
url: 'https://www.apollographql.com/docs/studio/setup-analytics/'
},
{
title: 'Schema checks',
url: 'https://www.apollographql.com/docs/studio/schema-checks/'
}
]
},
'Rover CLI': {
docset: 'rover',
category: 'Tools',
url: 'https://www.apollographql.com/docs/rover',
description: 'Manage your Studio graphs and schemas from the command line.',
topArticles: [
{
title: 'Install',
url: 'https://www.apollographql.com/docs/rover/getting-started'
},
{
title: 'Configure',
url: 'https://www.apollographql.com/docs/rover/configuring/'
},
{
title: 'Working with graphs',
url: 'https://www.apollographql.com/docs/rover/graphs/'
}
]
}
};
const footerNavConfig = {
Forums: {
href: 'https://community.apollographql.com/',
target: '_blank',
rel: 'noopener noreferrer'
},
Blog: {
href: 'https://blog.apollographql.com/',
target: '_blank',
rel: 'noopener noreferrer'
},
Contribute: {
href: 'https://www.apollographql.com/docs/community/'
},
Summit: {
href: 'https://summit.graphql.com/',
target: '_blank',
rel: 'noopener noreferrer'
}
};
const titleFont = encodeURIComponent('Source Sans Pro');
const shareImageConfig = {
titleFont,
titleFontSize: 80,
titleExtraConfig: '_bold',
taglineFont: titleFont,
textColor: 'FFFFFF',
textLeftOffset: 80,
textAreaWidth: 1120,
cloudName: 'apollographql',
imagePublicID: 'apollo-docs-template2_dohzxt'
};
module.exports = {
siteName: 'Apollo Docs',
pageTitle: 'Apollo GraphQL Docs',
menuTitle: 'Apollo Platform',
gaTrackingId: ['UA-74643563-13', 'G-0BGG5V2W2K'],
gtmContainerId: 'GTM-M964NS9',
baseUrl: 'https://www.apollographql.com',
twitterHandle: 'apollographql',
algoliaAppId: process.env.ALGOLIA_APP_ID,
algoliaWriteKey: process.env.ALGOLIA_WRITE_KEY,
algoliaSearchKey: process.env.ALGOLIA_SEARCH_KEY,
gaViewId: '163147389',
youtubeUrl: 'https://www.youtube.com/channel/UC0pEW_GOrMJ23l8QcrGdKSw',
logoLink: 'https://www.apollographql.com/docs/',
baseDir: 'docs',
contentDir: 'source',
navConfig,
footerNavConfig,
ffWidgetId: '3131c43c-bfb5-44e6-9a72-b4094f7ec028',
shareImageConfig,
oneTrust: true
};