-
Notifications
You must be signed in to change notification settings - Fork 42
Expand file tree
/
Copy pathdocusaurus.config.ts
More file actions
178 lines (164 loc) · 4.93 KB
/
docusaurus.config.ts
File metadata and controls
178 lines (164 loc) · 4.93 KB
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
import type * as Preset from '@docusaurus/preset-classic'
import type { Config } from '@docusaurus/types'
import rehypeKatex from 'rehype-katex'
import remarkMath from 'remark-math'
// This runs in Node.js - Don't use client-side code here (browser APIs, JSX...)
const config: Config = {
title: 'OptimAI Network Docs',
tagline: 'Mine Data. Fuel AI. Get Rewards.',
favicon: 'img/favicon.svg',
// Set the production url of your site here
url: 'https:/docs.optimai.network/',
// Set the /<baseUrl>/ pathname under which your site is served
// For GitHub pages deployment, it is often '/<projectName>/'
baseUrl: '/',
// GitHub pages deployment config.
// If you aren't using GitHub pages, you don't need these.
organizationName: 'OptimaiNetwork', // Usually your GitHub org/user name.
projectName: 'OptimAI Network Docs', // Usually your repo name.
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn',
// Even if you don't use internationalization, you can use this field to set
// useful metadata like html lang. For example, if your site is Chinese, you
// may want to replace "en" with "zh-Hans".
i18n: {
defaultLocale: 'en',
locales: ['en'],
},
markdown: {
mermaid: true,
},
themes: ['@docusaurus/theme-mermaid'],
plugins: [
'docusaurus-plugin-sass',
[
'@docusaurus/plugin-google-analytics',
{
trackingID: 'G-E46T1HJVX5',
},
],
[
'@docusaurus/plugin-google-tag-manager',
{
containerId: 'GTM-WZVXXH7L',
},
],
],
presets: [
[
'classic',
{
docs: {
// routeBasePath: '/',
sidebarPath: './sidebars.ts',
remarkPlugins: [remarkMath],
rehypePlugins: [rehypeKatex],
// Please change this to your repo.
// Remove this to remove the "edit this page" links.
editUrl: 'https://github.com/optimainetwork/docs/tree/main/',
},
theme: {
customCss: './src/styles/index.scss',
},
} satisfies Preset.Options,
],
],
themeConfig: {
image: 'img/social-card.png',
algolia: {
appId: '21H8NIK27E',
apiKey: '2764b00b42701493a032fe50aab6c8f4',
indexName: 'optimai',
contextualSearch: true,
externalUrlRegex: 'external\\.com|domain\\.com',
// replaceSearchResultPathname: {
// from: '/docs/', // or as RegExp: /\/docs\//
// to: '/',
// },
// Optional: Algolia search parameters
searchParameters: {},
searchPagePath: 'search',
insights: false,
},
colorMode: {
defaultMode: 'dark',
disableSwitch: true,
respectPrefersColorScheme: false,
},
navbar: {
logo: {
alt: 'OptimAI Network Logo',
src: 'img/branding/optimai-documentation-logo.svg',
},
items: [
{
href: 'https://github.com/optimainetwork/docs',
label: 'GitHub',
position: 'right',
className: 'navbar__item--github',
},
],
},
footer: {
style: 'dark',
logo: {
src: 'img/branding/optimai-documentation-logo.svg',
alt: 'OptimAI Network Logo',
href: 'https://optimai.network',
},
links: [
{
title: 'OptimAI Network',
items: [
{
label: 'Website',
href: 'https://optimai.network/',
},
{
label: 'Whitepaper',
href: 'https://optimai.network/files/OptimAI-Whitepaper-v1.pdf',
},
],
},
{
title: 'Community',
items: [
{
label: 'Telegram',
href: 'https://t.me/OptimAINetwork',
},
{
label: 'X',
href: 'https://x.com/OptimaiNetwork',
},
],
},
{
title: 'More',
items: [
{
label: 'Blog',
href: 'https://optimai.network/blog',
},
{
label: 'GitHub',
href: 'https://github.com/optimainetwork/',
},
],
},
],
copyright: `Copyright © ${new Date().getFullYear()} OptimAI Network.`,
},
metadata: [
{ name: 'twitter:card', content: 'summary_large_image' },
{ name: 'twitter:title', content: 'OptimAI Network Docs' },
{ name: 'twitter:description', content: 'Official documentation for the OptimAI Network.' },
{ name: 'twitter:image', content: 'https://docs.optimai.network/img/social-card.png' },
{ property: 'og:title', content: 'OptimAI Network Docs' },
{ property: 'og:description', content: 'Official documentation for the OptimAI Network.' },
{ property: 'og:image', content: 'https://docs.optimai.network/img/social-card.png' },
{ property: 'og:url', content: 'https://docs.optimai.network' },
],
} satisfies Preset.ThemeConfig,
}
export default config