This repository has been archived by the owner on Sep 19, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 95
/
docusaurus.config.js
123 lines (122 loc) · 2.79 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
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: 'Zora Docs',
url: 'https://docs.zora.co',
baseUrl: '/',
onBrokenLinks: 'ignore',
onBrokenMarkdownLinks: 'warn',
favicon: 'img/zoraOrb.svg',
organizationName: 'ourzora',
projectName: 'Zora Docs',
themeConfig: {
navbar: {
logo: {
alt: 'Zora Docs Logo',
src: 'img/zoraOrb.svg',
},
items: [
{
type: 'doc',
docId: 'intro',
position: 'left',
label: 'Intro',
},
{
position: 'left',
label: 'Contracts',
to: '/docs/smart-contracts/creator-tools/intro',
},
{
position: 'left',
label: 'Zora Network',
to: '/docs/zora-network/intro',
},
{
position: 'left',
label: 'API',
to: '/docs/zora-api/intro',
},
],
},
colorMode: {
defaultMode: 'dark',
disableSwitch: true,
},
prism: {
theme: darkCodeTheme,
additionalLanguages: ['solidity', 'graphql'],
},
algolia: {
apiKey: 'ea9711802399936fa4d55c3033c4cfc5',
indexName: 'zora',
appId: 'BH4D9OD16A',
},
footer: {
style: 'dark',
},
image: 'img/og-image.png',
...(process.env.GTAG_ID && {
gtag: {
trackingID: process.env.GTAG_ID,
anonymizeIP: true,
},
}),
metadatas: [
{
name: 'title',
content: 'Zora Docs',
},
{
name: 'og:description',
content: 'Bringing imagination onchain.'
},
{
name: 'description',
content:
'Zora makes it easy for developers to get started building with NFTs. ',
},
],
},
presets: [
[
'@docusaurus/preset-classic',
{
docs: {
sidebarPath: require.resolve('./sidebars.js'),
editUrl: 'https://github.com/ourzora/zora-docs/blob/main',
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: true,
},
],
],
}