-
Notifications
You must be signed in to change notification settings - Fork 25
/
docusaurus.config.js
154 lines (151 loc) · 4.05 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
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
module.exports = {
title: 'Polotno',
tagline: 'Customizable SDK for making your own canvas editor',
url: 'https://developer.polotno.com',
baseUrl: '/',
favicon: 'img/favicon.ico',
// organizationName: 'facebook', // Usually your GitHub org/user name.
projectName: 'polotno', // Usually your repo name.
themeConfig: {
image: 'img/twitter-card.jpg',
colorMode: {
disableSwitch: true,
},
navbar: {
title: 'Polotno',
logo: {
alt: 'Polotno logo',
src: 'img/logo.svg',
href: 'https://polotno.com',
},
items: [
{ to: '/docs/overview', label: 'Docs', position: 'left' },
{ to: '/changelog', label: 'Changelog', position: 'left' },
// { to: '/pricing', label: 'Price', position: 'left' },
// { to: '/showcase', label: 'Showcase', position: 'left' },
// { to: '/docs/demo-full-editor', label: 'Demo', position: 'left' },
// { to: 'https://studio.polotno.com', label: 'Studio', position: 'left' },
// { to: '/blog', label: 'Blog', position: 'left' },
{
to: 'https://polotno.com/login',
label: 'API keys',
position: 'right',
},
{
to: 'https://discord.gg/W2VeKgsr9J',
label: 'Discord chat',
position: 'right',
},
// { to: '/contact', label: 'Contact', position: 'right' },
],
},
footer: {
style: 'dark',
links: [
{
title: 'Resources',
items: [
{
label: 'Getting Started',
to: 'docs/overview',
},
{
label: 'Roadmap and bugs reports',
href: 'https://github.com/polotno-project/polotno-board/projects/1',
},
{
label: 'Changelog',
to: 'changelog',
},
{
label: 'Blog',
to: '/blog',
},
// {
// label: 'Second Doc',
// to: 'docs/doc2'
// }
],
},
// {
// title: 'Community',
// items: [
// {
// label: 'Stack Overflow',
// href: 'https://stackoverflow.com/questions/tagged/docusaurus',
// },
// {
// label: 'Discord',
// href: 'https://discordapp.com/invite/docusaurus',
// },
// ],
// },
{
title: 'Company',
items: [
{
label: 'Status',
href: 'https://status.polotno.com',
},
{
label: 'License',
href: '/license',
},
{
label: 'Privacy',
href: '/privacy',
},
{
label: 'Twitter',
href: 'https://twitter.com/lavrton',
},
],
},
],
copyright: `Copyright © ${new Date().getFullYear()} Polotno. Built with Docusaurus.`,
},
algolia: {
appId: 'TB0G132RK2',
apiKey: '181b9799f5fd62aa2e2ea1aae75de020',
indexName: 'polotno',
// Optional: see doc section bellow
contextualSearch: false,
// Optional: Algolia search parameters
searchParameters: {},
//... other Algolia params
},
},
scripts: [
{
src: 'https://plausible.io/js/plausible.js',
async: true,
defer: true,
'data-domain': 'developer.polotno.com',
},
{
src: 'https://cdn.paddle.com/paddle/paddle.js',
},
{
src: '/chat.js',
},
{
src: '/profitwell.js',
id: 'profitwell-js',
'data-pw-auth': '681cc5f913ddbdb6e41718906c7dbaa9',
},
],
presets: [
[
'@docusaurus/preset-classic',
{
docs: {
sidebarPath: require.resolve('./sidebars.js'),
// routeBasePath: '/docs/overview', // Serve the docs at the site's root
},
theme: {
customCss: require.resolve('./src/css/custom.css'),
},
},
],
],
};