forked from blitz-js/blitzjs.com
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docusaurus.config.js
139 lines (139 loc) · 3.76 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
module.exports = {
title: "Blitz.js ⚡️",
tagline:
"Blitz is a Rails-like framework for monolithic, full-stack React apps — built on Next.js",
url: "https://blitzjs.com",
baseUrl: "/",
favicon: "img/favicons/128x128-Favicon-Purple.png",
organizationName: "blitz-js", // Usually your GitHub org/user name.
projectName: "blitz", // Usually your repo name.
themeConfig: {
sidebarCollapsible: false,
// Disable docusaurus dark mode because we use our own theme-ui dark mode
disableDarkMode: true,
algolia: {
apiKey: "c4db860ae4162be48d4c867e33edcaa2",
indexName: "blitzjs",
},
image: "img/logo-bg-purple.png",
announcementBar: {
id: "progress",
content:
"Black Lives Matter. <a target='_blank' href='https://support.eji.org/give/153413/#!/donation/checkout'> Support the Equal Justice Initiative.</a>",
textColor: "#ffffff",
},
navbar: {
title: "Blitz.js",
logo: {
alt: "Blitz.js",
src: "https://github.com/blitz-js/art/blob/master/square-logo-600.png?raw=true",
},
links: [
{
to: "docs/getting-started",
label: "Docs",
position: "left",
},
{
href: "https://github.com/blitz-js/blitz",
label: "GitHub",
position: "left",
},
{
href: "https://github.com/blitz-js/blitz/releases",
label: "Releases",
position: "left",
},
{
href: "https://slack.blitzjs.com",
label: "Slack",
position: "left",
},
{
href: "https://github.com/blitz-js/blitz/discussions",
label: "Forum",
position: "left",
},
{
href: "https://github.com/blitz-js/blitz/wiki",
label: "Wiki",
position: "left",
},
{
href: "https://github.com/sponsors/blitz-js",
label: "♥ Donate/Sponsor",
position: "right",
},
],
},
footer: {
style: "dark",
links: [
{
title: "Docs",
items: [
{
label: "Getting Started",
to: "docs/getting-started",
},
{
label: "Contributing",
to: "docs/contributing",
},
{
href: "https://github.com/blitz-js/blitz/wiki",
label: "Wiki",
},
],
},
{
title: "Community",
items: [
{
label: "Slack",
href: "https://slack.blitzjs.com",
},
{
label: "Forum Discussions",
href: "https://github.com/blitz-js/blitz/discussions",
},
{
href: "https://github.com/sponsors/blitz-js",
label: "♥ Donate/Sponsor",
},
],
},
{
title: "Social",
items: [
{
label: "Twitter",
href: "https://twitter.com/blitz_js",
},
],
},
],
copyright: `Copyright © ${new Date().getFullYear()} Brandon Bayer and Blitz.js contributors`,
},
},
plugins: [
[
require.resolve("./plugin"),
{
customCss: require.resolve("./src/css/custom.css"),
},
],
[
"@docusaurus/plugin-content-docs",
{
sidebarPath: require.resolve("./sidebars.js"),
editUrl: "https://github.com/blitz-js/blitzjs.com/edit/main/",
},
],
["@docusaurus/plugin-content-blog"],
["@docusaurus/plugin-content-pages"],
...(process.env.NODE_ENV === "production"
? [/*"@docusaurus/plugin-google-analytics",*/ "@docusaurus/plugin-sitemap"]
: []),
],
}