-
Notifications
You must be signed in to change notification settings - Fork 4
/
docusaurus.config.js
151 lines (151 loc) · 4.08 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
module.exports = {
title: 'SquirrellyJS',
tagline: 'Lightweight, Blazing-Fast, and Powerful Template Engine',
url: 'https://squirrelly.js.org',
baseUrl: '/',
onBrokenLinks: 'throw',
favicon: 'icons/favicon.ico',
organizationName: 'squirrellyjs', // Usually your GitHub org/user name.
projectName: 'squirrelly-docs', // Usually your repo name.
scripts: [
// String format.
// 'https://docusaurus.io/script.js',
// Object format.
{
src: 'https://embed.runkit.com/',
// async: true,
// defer: true, // this seems to create problems when deployed
},
],
themeConfig: {
announcementBar: {
id: 'v8-stable',
content:
'<a target="_blank" rel="noopener noreferrer" href="https://github.com/squirrellyjs/squirrelly">Squirrelly version 8</a> has been released!',
backgroundColor: 'var(--ifm-color-primary)',
textColor: 'var(--docsearch-text-color)',
},
prism: {
additionalLanguages: ['ejs'],
theme: require('prism-react-renderer/themes/vsDark'),
},
googleAnalytics: {
trackingID: 'UA-122013092-2',
},
algolia: {
apiKey: '9f59e33223929116fc07fce007dd6d2f',
appId: 'BH4D9OD16A',
indexName: 'squirrelly',
algoliaOptions: {}, // Optional, if provided by Algolia
},
navbar: {
title: 'Squirrelly',
logo: {
alt: 'Squirrelly Logo',
src: 'img/logo/fit-noacorn.svg',
},
items: [
{
label: 'Docs (v8)',
to: 'docs',
position: 'left',
activeBasePath: 'docs',
},
{
to: 'docs/about/introduction',
label: 'About',
position: 'left',
activeBasePath: 'docs/about',
},
{
to: 'docs/learn/async',
label: 'Learn',
position: 'left',
activeBasePath: 'docs/learn', // TODO: use activeBaseTest once merged
},
{ to: 'playground', label: 'REPL', position: 'left' },
{ to: 'blog', label: 'Blog', position: 'right' },
{
href: 'https://v7--squirrellyjs.netlify.app',
label: 'Docs (v7)',
position: 'right',
},
{
href: 'https://gitter.im/squirrellyjs/Lobby',
label: 'Community',
position: 'right',
},
{
href: 'https://github.com/squirrellyjs/squirrelly',
label: 'GitHub',
position: 'right',
},
],
},
footer: {
style: 'dark',
logo: {
alt: 'Squirrelly Logo',
src: 'img/logo/fit-acorn.svg',
},
links: [
{
title: 'Docs',
items: [
{
label: 'Docs',
to: 'docs/',
},
],
},
{
title: 'Community',
items: [
{
label: 'Gitter',
href: 'https://gitter.im/squirrellyjs/Lobby',
},
],
},
{
title: 'Social',
items: [
{
label: 'Blog',
to: 'blog',
},
{
label: 'Facebook',
to: 'https://www.facebook.com/squirrellyjs/',
},
],
},
],
copyright: `Copyright © ${new Date().getFullYear()} SquirrellyJS. Built with Docusaurus. Theme inspired by <a href="https://www.benthos.dev">benthos.dev</a>`,
},
},
presets: [
[
'@docusaurus/preset-classic',
{
docs: {
sidebarPath: require.resolve('./sidebars.js'),
// Please change this to your repo.
editUrl:
'https://github.com/squirrellyjs/squirrelly-docs/edit/master/website/',
showLastUpdateAuthor: true,
showLastUpdateTime: true,
},
blog: {
showReadingTime: true,
// Please change this to your repo.
editUrl:
'https://github.com/squirrellyjs/squirrelly-docs/edit/master/website/blog/',
},
theme: {
customCss: require.resolve('./src/css/custom.css'),
},
},
],
],
}