-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocusaurus.config.js
180 lines (177 loc) · 5.2 KB
/
docusaurus.config.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
// @ts-check
// Note: type annotations allow type checking and IDEs autocompletion
const lightCodeTheme = require("prism-react-renderer").themes.github;
const darkCodeTheme = require("prism-react-renderer").themes.palenight;
// Override code block theme
const customDarkTheme = {
...darkCodeTheme,
plain: { color: "#bfc7d5", backgroundColor: "#243D42" },
};
/** @type {import('@docusaurus/types').Config} */
const config = {
title: "GraphOps Docs",
tagline: "Documentation and resources for Graph Protocol",
url: "https://docs.graphops.xyz/",
baseUrl: "/",
onBrokenLinks: "throw",
onBrokenMarkdownLinks: "warn",
favicon: "img/favicon.ico",
organizationName: "graphops", // Usually your GitHub org/user name.
projectName: "docs", // Usually your repo name.
trailingSlash: false,
// Waiting for docusauras canary to be released for mermaid support: https://docusaurus.io/docs/next/markdown-features/diagrams
themes: ["@docusaurus/theme-mermaid",
[
"@easyops-cn/docusaurus-search-local",
/** @type {import("@easyops-cn/docusaurus-search-local")} */
({
hashed: true,
language: ['en'],
indexDocs: true,
indexBlog: false,
docsRouteBasePath: '/',
blogRouteBasePath: '/blog',
highlightSearchTermsOnTargetPage: true,
explicitSearchResultPath: true,
}),
],
],
markdown: {
mermaid: true,
},
presets: [
[
"@docusaurus/preset-classic",
/** @type {import('@docusaurus/preset-classic').Options} */
({
docs: {
sidebarPath: require.resolve("./sidebars.js"),
// Please change this to your repo.
editUrl: "https://github.com/graphops/docs/edit/main/",
routeBasePath: "/",
},
blog: {
showReadingTime: true,
// Please change this to your repo.
editUrl: "https://github.com/graphops/docs/edit/main/",
},
theme: {
customCss: require.resolve("./src/css/custom.css"),
},
}),
],
],
themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
colorMode: {
defaultMode: "dark",
disableSwitch: false,
respectPrefersColorScheme: true,
},
navbar: {
title: "Documentation",
logo: {
alt: "GraphOps Logo",
src: "/img/logo.svg",
srcDark: "/img/logo.svg",
},
items: [
{
type: 'doc',
docId: 'launchpad/docs-map',
position: 'left',
label: 'Launchpad',
},
{
type: "doc",
docId: "graphcast/intro",
position: "left",
label: "Graphcast",
},
// {to: 'blog', label: 'Blog', position: 'left'},
{
href: "https://github.com/graphops/docs",
label: "Docs on GitHub",
position: "right",
},
],
},
footer: {
style: "dark",
// logo: {
// alt: "GraphOps Logo",
// src: '/img/logo.svg',
// srcDark: '/img/logo.svg',
// width: "30px",
// height: "30px",
// href: "https://graphops.xyz/"
// },
links: [
{
title: "Graph Community",
items: [
{
label: "Discord",
href: "https://discord.com/invite/graphprotocol",
},
{
label: "Twitter",
href: "https://twitter.com/graphprotocol",
},
{
label: "GitHub",
href: "https://github.com/graphprotocol",
},
],
},
{
title: "Indexer Office Hours",
items: [
{
label: "Twitter",
href: "https://twitter.com/TheGraphIOH",
},
{
label: "YouTube Recordings",
href: "https://www.youtube.com/channel/UCQ7G_cCufIVUdUUUf-jdoVA",
},
{
label: "All Prior Calls & Agendas",
href: "https://graphops.notion.site/Indexer-Office-Hours-952e0b50a65144768aab922e2c9d102a",
},
],
},
{
title: "GraphOps",
items: [
{
label: "Twitter",
href: "https://twitter.com/graphopsxyz",
},
{
label: "GitHub",
href: "https://github.com/graphops",
},
{
label: "Website",
href: "https://graphops.xyz",
},
],
},
],
copyright: ` `,
},
prism: {
theme: lightCodeTheme,
darkTheme: customDarkTheme,
additionalLanguages: ["solidity", "json5", "toml", "bash"],
},
// metadata: [ // TODO: Take screenshot for rendering previews
// {property: "og:image", content: "/img/image.png"},
// {property: "og:image:width", content: "1200"},
// {property: "og:image:height", content: "630"}
// ]
}),
};
module.exports = config;