-
Notifications
You must be signed in to change notification settings - Fork 58
/
Copy pathdocusaurus.config.js
140 lines (139 loc) · 3.39 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
const CORE_REPO_URL = "https://github.com/neon-bindings/neon";
module.exports = {
customFields: {
coreRepoUrl: CORE_REPO_URL,
},
title: "Neon",
tagline: "Electrify Node.js with the power of Rust!",
url: "https://neon-rs.dev",
baseUrl: "/",
favicon: "logo/letter-logo.png",
organizationName: "neon-bindings",
projectName: "website",
scripts: ["/asciinema/asciinema-player.js"],
stylesheets: [
"/asciinema/asciinema-player.css",
"/asciinema/asciinema-theme.css",
],
themeConfig: {
colorMode: {
defaultMode: "light",
disableSwitch: true,
respectPrefersColorScheme: true,
},
hideOnScroll: true,
navbar: {
title: "Neon",
logo: {
alt: "Neon Logo",
src: "logo/letter-logo-alpha.png",
},
items: [
{ position: "left", to: "docs/introduction", label: "Docs" },
{
position: "left",
label: "API Reference",
href: "https://docs.rs/neon",
},
{
position: "left",
items: [
{ label: "GitHub", href: CORE_REPO_URL },
{
label: "Slack",
href: "https://join.slack.com/t/rust-bindings/shared_invite/zt-1pl5s83xe-ZvXyrzL8vuUmijU~7yiEcg",
},
{
label: "Twitter",
href: "https://twitter.com/rustneon",
},
],
label: "Community",
},
{ position: "left", to: "blog", label: "Blog" },
],
},
footer: {
style: "dark",
links: [
{
title: "Docs",
items: [
{
label: "Introduction",
to: "docs/introduction",
},
{
label: "Examples",
to: "https://github.com/neon-bindings/examples/tree/main#table-of-contents",
},
{
label: "API Reference",
to: "https://docs.rs/neon",
},
],
},
{
title: "Community",
items: [
// @TODO
// {
// label: 'User Showcase',
// to: 'user-showcase'
// },
{
label: "GitHub",
to: CORE_REPO_URL,
},
{
label: "Help",
to: "https://join.slack.com/t/rust-bindings/shared_invite/zt-1pl5s83xe-ZvXyrzL8vuUmijU~7yiEcg",
},
{
label: "Twitter",
to: "https://twitter.com/rustneon",
},
],
},
{
title: "More",
items: [
{
label: "Blog",
to: "blog",
},
],
},
],
logo: {
alt: "Neon Logo",
src: "logo/text-logo.svg",
},
copyright: `Copyright © ${new Date().getFullYear()} The Neon Contributors`,
},
prism: {
additionalLanguages: ["rust", "toml"],
},
algolia: {
// "Search only api key". Safe to keep this public
apiKey: "bfa6bb4b57d4fa853c0358ee9b195146",
indexName: "amilajack_neon",
},
googleAnalytics: {
trackingID: "UA-130626950-1",
},
gtag: {
trackingID: "UA-130626950-1",
},
},
presets: [
[
"@docusaurus/preset-classic",
{
docs: {
sidebarPath: require.resolve("./sidebars.js"),
},
},
],
],
};