-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdocusaurus.config.ts
123 lines (120 loc) · 2.99 KB
/
docusaurus.config.ts
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
import type * as Preset from '@docusaurus/preset-classic';
// @ts-check
// Note: type annotations allow type checking and IDEs autocompletion
import type { Config } from '@docusaurus/types';
import { themes as prismThemes } from 'prism-react-renderer';
const config = {
title: 'Build onchain products with limitless data, powered by our interpretation protocol.',
plugins: [
'docusaurus2-dotenv',
'docusaurus-plugin-sass',
async function myPlugin(context, options) {
return {
name: 'docusaurus-tailwindcss',
configurePostCss(postcssOptions) {
postcssOptions.plugins.push(require('tailwindcss'));
postcssOptions.plugins.push(require('autoprefixer'));
return postcssOptions;
},
};
},
],
tagline: 'The Ultimate Onchain Data API',
headTags: [
{
tagName: 'meta',
attributes: {
property: 'og:image',
content: 'https://protocol.zapper.xyz/img/logo.png',
},
},
],
url: 'https://protocol.zapper.xyz',
baseUrl: '/',
onBrokenMarkdownLinks: 'warn',
favicon: 'img/favicon.ico',
organizationName: 'Zapper Protocol',
projectName: 'Zapper Protocol Website',
presets: [
[
'classic',
{
docs: {
sidebarPath: require.resolve('./sidebars.js'),
editUrl: 'https://github.com/Zapper-fi/protocol/tree/main/',
},
theme: {
customCss: require.resolve('./src/css/custom.scss'),
},
gtag: {
trackingID: 'G-29H7B9TNKR',
anonymizeIP: true,
},
} satisfies Preset.Options,
],
],
themeConfig: {
colorMode: {
defaultMode: 'dark',
},
footer: {
copyright: 'Zapper Protocol',
links: [
{
position: 'left',
label: 'X',
href: 'https://x.com/zapper_fi',
},
{
position: 'left',
label: 'Warpcast',
href: 'https://warpcast.com/~/channel/zapper',
},
{
position: 'left',
label: 'Discord',
href: 'https://zapper.xyz/discord',
},
{
position: 'left',
label: 'API Support',
href: '/support',
},
],
},
navbar: {
title: 'Zapper Protocol',
logo: {
alt: 'Zapper Logo',
src: 'img/logo.png',
},
items: [
{
position: 'left',
label: 'API',
to: '/docs/api/',
},
{
position: 'left',
label: 'Interpretation',
to: '/docs/interpretation/overview',
},
{
type: 'custom-NavbarItem',
position: 'right',
},
],
},
algolia: {
appId: 'MAIGR0NEB5',
apiKey: 'b13a9ebe7be5d19ebb034f4d4572688b',
indexName: 'protocol-zapper',
contextualSearch: true,
},
prism: {
theme: prismThemes.github,
darkTheme: prismThemes.dracula,
},
} satisfies Preset.ThemeConfig,
} satisfies Config;
export default config;