This repository has been archived by the owner on Sep 15, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdocusaurus.config.js
168 lines (165 loc) · 4.94 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
/** @type {import('@docusaurus/types').Config} */
const config = {
baseUrl: "/",
favicon: "img/favicon.ico",
onBrokenLinks: "throw",
onBrokenMarkdownLinks: "warn",
organizationName: "sablierhq",
projectName: "sablier-docs",
tagline: "Documentation and Guides for Sablier",
title: "Sablier Docs",
url: "https://docs.sablier.finance",
presets: [
[
"classic",
/** @type {import('@docusaurus/preset-classic').Options} */
({
docs: {
editUrl: "https://github.com/sablierhq/docs/tree/main/",
includeCurrentVersion: true,
path: "protocol",
routeBasePath: "protocol/",
sidebarPath: require.resolve("./sidebars.js"),
},
theme: {
customCss: require.resolve("./src/css/custom.css"),
},
}),
],
],
themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
algolia: {
appId: "KF9W3YD3YG",
apiKey: "02ccece2d4178d2816db18726d6d9ba8",
indexName: "sablier",
},
announcementBar: {
backgroundColor: "#E77B3B",
content:
'Please note that a stream creation transaction MUST be processed by the blockchain before the start time of the stream, otherwise it will fail. Learn more about this <a target="_blank" rel="noopener noreferrer" href="/protocol/faq/known-issues">here</a>, or reach out on <a target="_blank" rel="noopener noreferrer" href="https://discord.gg/bSwRCwWRsT">Discord</a>.',
isCloseable: true,
id: "start_time_banner",
textColor: "#fff",
},
colorMode: {
// "light" | "dark"
defaultMode: "light",
// Hides the switch in the navbar. Useful if you want to support a single color mode.
disableSwitch: false,
// Whether we should use the `prefers-color-scheme media-query` using user system preferences, instead of the
// hardcoded `defaultMode`.
respectPrefersColorScheme: true,
},
footer: {
links: [
{
title: "Company",
items: [
{
label: "About",
href: "https://sablierlabs.co.uk",
},
{
label: "Risk Notice",
href: "https://sablier.finance/risk-notice",
},
{
label: "Terms of Service",
href: "https://sablier.finance/terms-of-service",
},
{
label: "Privacy Policy",
href: "https://docs.google.com/document/d/10OgbKJkoLnZ_pJtF6SAfcP7ufOC18K3N39MH538XeiI",
},
],
},
{
title: "Community",
items: [
{
label: "Twitter",
href: "https://twitter.com/sablier",
},
{
label: "Discord",
href: "https://discord.gg/bSwRCwWRsT",
},
{
label: "Blog",
href: "https://medium.com/sablier",
},
{
label: "Branding",
href: "https://github.com/sablierhq/branding",
},
],
},
{
title: "Developers",
items: [
{
label: "Core Protocol",
href: "https://github.com/sablierhq/sablier",
},
{
label: "Deployments",
href: "https://docs.sablier.finance/protocol/guides/chains",
},
{
label: "Subgraph",
href: "https://github.com/sablierhq/subgraph",
},
],
},
],
style: "dark",
},
navbar: {
items: [
{
label: "Guides",
position: "left",
to: "/protocol/guides/getting-started",
},
{
label: "Contracts",
position: "left",
to: "/protocol/contracts/non-constant-functions",
},
{
label: "Subgraphs",
position: "left",
to: "/protocol/subgraphs/endpoints",
},
{
label: "FAQ",
position: "left",
to: "/protocol/faq/basics",
},
{
label: "Discord",
position: "right",
to: "https://discord.gg/bSwRCwWRsT",
},
{
label: "GitHub",
position: "right",
to: "https://github.com/sablierhq",
},
],
logo: {
alt: "Sablier Logo",
src: "img/logo.svg",
},
title: "Sablier Docs",
},
prism: {
additionalLanguages: ["solidity"],
darkTheme: require("prism-react-renderer/themes/dracula"),
theme: require("prism-react-renderer/themes/github"),
},
}),
};
module.exports = config;