This repository has been archived by the owner on Aug 8, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docusaurus.config.js
111 lines (110 loc) · 2.58 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
const darkCodeTheme = require('prism-react-renderer/themes/dracula')
const math = require('remark-math')
const katex = require('rehype-katex')
/** @type {import('@docusaurus/types').DocusaurusConfig} */
module.exports = {
title: 'Enso Docs',
url: 'https://enso.finance',
baseUrl: `/`,
onBrokenLinks: 'ignore',
onBrokenMarkdownLinks: 'warn',
favicon: 'img/Enso.svg',
organizationName: 'EnsoFinance',
projectName: 'Enso Docs',
themeConfig: {
navbar: {
logo: {
alt: 'Enso Docs Logo',
src: 'img/logo.png',
},
items: [
{
type: 'doc',
docId: 'intro',
position: 'left',
label: 'Docs',
},
{
position: 'left',
label: 'Guides',
to: '/docs/guides/vampire-attack',
},
],
},
colorMode: {
defaultMode: 'dark',
disableSwitch: true,
},
prism: {
theme: darkCodeTheme,
additionalLanguages: ['solidity', 'graphql'],
},
algolia: {
apiKey: '871f510e3e88ecf952004c124abc5630',
indexName: 'Prod_Enso_Docs',
appId: 'LLW3KM67QU',
},
footer: {
style: 'dark',
},
image: 'img/previewImage.png',
...(process.env.GTAG_ID && {
gtag: {
trackingID: process.env.GTAG_ID || '',
anonymizeIP: true,
},
}),
metadatas: [
{
name: 'title',
content: 'Enso Docs',
},
{
name: 'description',
content:
'Enso makes DeFi social trading, and collaboratively investing with your friends easy. All in one place.',
},
],
},
presets: [
[
'@docusaurus/preset-classic',
{
docs: {
sidebarPath: require.resolve('./sidebars.js'),
editUrl: 'https://github.com/EnsoFinance/Enso-docs',
remarkPlugins: [math],
rehypePlugins: [katex],
},
theme: {
customCss: require.resolve('./src/css/custom.css'),
},
guides: {
sidebarPath: require.resolve('./sidebars.js'),
},
},
],
],
stylesheets: [
{
href: 'https://cdn.jsdelivr.net/npm/[email protected]/dist/katex.min.css',
integrity:
'sha384-Um5gpz1odJg5Z4HAmzPtgZKdTBHZdw8S29IecapCSB31ligYPhHQZMIlWLYQGVoc',
crossorigin: 'anonymous',
},
],
plugins: [
[
'docusaurus2-dotenv',
{
safe: false,
systemvars: true,
silent: false,
expand: false,
defaults: false,
RPC_ENDPOINT: process.env.RPC_ENDPOINT,
GTAG_ID: process.env.GTAG_ID,
},
],
],
}