-
Notifications
You must be signed in to change notification settings - Fork 2
/
docusaurus.config.js
110 lines (109 loc) · 3.33 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
/* eslint-disable @typescript-eslint/no-var-requires */
const darkCodeTheme = require('prism-react-renderer/themes/dracula');
const lightCodeTheme = require('prism-react-renderer/themes/github');
// With JSDoc @type annotations, IDEs can provide config autocompletion
/** @type {import('@docusaurus/types').DocusaurusConfig} */
(
module.exports = {
title:
'Solidity framework for extending smart contracts with counterfactual revocable-delegation',
tagline:
'Solidity framework for extending smart contracts with counterfactual revocable-delegation',
url: 'https://delegatable.org',
baseUrl: '/',
favicon: 'img/favicon.ico',
organizationName: 'Delegatable',
projectName: 'Delegatable',
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'throw',
presets: [
[
'@docusaurus/preset-classic',
/** @type {import('@docusaurus/preset-classic').Options} */
({
docs: {
path: 'docs',
sidebarPath: 'sidebars.js',
editUrl:
'https://github.com/delegatable/docs/edit/main/packages/website/',
versions: {
current: {
label: 'v1.0.0',
},
},
lastVersion: 'v0.0.0',
showLastUpdateAuthor: true,
showLastUpdateTime: true,
},
theme: {
customCss: require.resolve('./src/css/custom.css'),
},
}),
],
],
plugins: ['my-loaders', 'tailwind-loader'],
themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
algolia: {
appId: 'R2IYF7ETH7',
apiKey: '599cec31baffa4868cae4e79f180729b',
indexName: 'docsearch',
contextualSearch: true,
},
navbar: {
hideOnScroll: true,
logo: {
alt: 'Delegatable',
src: 'img/logo-simple-dark.png',
srcDark: 'img/logo-simple-light.png',
},
items: [
// left
{
label: 'Why',
to: 'docs/why',
position: 'left',
},
{
label: 'How',
to: 'docs/counterfactual-delegation',
position: 'left',
},
{
label: 'Documentation',
to: 'docs/getting-started',
position: 'left',
},
// right
{
type: 'docsVersionDropdown',
position: 'right',
},
{
href: 'https://github.com/delegatable/delegatable-sol',
position: 'right',
className: 'header-github-link',
},
],
},
colorMode: {
defaultMode: 'light',
disableSwitch: false,
respectPrefersColorScheme: true,
},
announcementBar: {
content:
'⭐️ If you like Delegatable, give it a star on <a target="_blank" rel="noopener noreferrer" href="https://github.com/delegatable/delegatable-sol">GitHub</a>! ⭐️',
},
footer: {
copyright: 'Delegatable Framework - Open Source MIT License',
},
image: 'img/og_image.png',
prism: {
theme: lightCodeTheme,
darkTheme: darkCodeTheme,
},
}),
}
);