-
Notifications
You must be signed in to change notification settings - Fork 0
/
docusaurus.config.js
191 lines (183 loc) · 7.13 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
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
// @ts-check
// Note: type annotations allow type checking and IDEs autocompletion
const lightCodeTheme = require("prism-react-renderer/themes/github");
const darkCodeTheme = require("prism-react-renderer/themes/dracula");
/** @type {import('@docusaurus/types').Config} */
const config = {
title: "AirLyft Documentation",
tagline:
"Welcome to AirLyft! This documentation website is for Projects as well as Community members.",
url: "https://docs.airlyft.one",
baseUrl: "/",
onBrokenLinks: "throw",
onBrokenMarkdownLinks: "warn",
favicon: "img/favicon.ico",
// GitHub pages deployment config.
// If you aren't using GitHub pages, you don't need these.
organizationName: "kyteone", // Usually your GitHub org/user name.
projectName: "airlyft-docs", // Usually your repo name.
// Even if you don't use internalization, you can use this field to set useful
// metadata like html lang. For example, if your site is Chinese, you may want
// to replace "en" with "zh-Hans".
i18n: {
defaultLocale: "en",
locales: ["en"],
},
presets: [
[
"classic",
/** @type {import('@docusaurus/preset-classic').Options} */
({
docs: {
sidebarPath: require.resolve("./sidebars.js"),
// Please change this to your repo.
// Remove this to remove the "edit this page" links.
editUrl: "https://github.com/kyte-one/airlyftone-docs/tree/main/",
routeBasePath: "/",
},
theme: {
customCss: require.resolve("./src/css/custom.css"),
},
gtag: {
trackingID: "G-BDVRPXL5C7",
anonymizeIP: true,
},
}),
],
],
plugins: [
async function myPlugin(context, options) {
return {
name: "docusaurus-tailwindcss",
configurePostCss(postcssOptions) {
// Appends TailwindCSS and AutoPrefixer.
postcssOptions.plugins.push(require("tailwindcss"));
postcssOptions.plugins.push(require("autoprefixer"));
return postcssOptions;
},
};
},
[
"@docusaurus/plugin-ideal-image",
{
quality: 70,
max: 1030, // max resized image's size.
min: 640, // min resized image's size. if original is lower, use that size.
steps: 2, // the max number of images generated between min and max (inclusive)
disableInDev: false,
},
],
],
themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
colorMode: {
defaultMode: "light",
disableSwitch: true,
respectPrefersColorScheme: false,
},
navbar: {
title: "AirLyft Docs",
logo: {
alt: "AirLyft",
src: "img/logo.svg",
},
items: [
{
type: "doc",
to: "docs",
docId: "community",
position: "left",
label: "Documentation",
},
{
to: "templates",
position: "left",
label: "Templates",
},
{
type: "html",
position: "right",
value:
'<a target="_blank" href="https://app.airlyft.one" class="link-button">Go App <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="#eef2ff" viewBox="0 0 256 256"><rect width="256" height="256" fill="none"></rect><rect x="40" y="72" width="144" height="144" rx="8" opacity="0.2"></rect><polyline points="216 100 216 40 156 40" fill="none" stroke="#eef2ff" stroke-linecap="round" stroke-linejoin="round" stroke-width="16"></polyline><line x1="144" y1="112" x2="216" y2="40" fill="none" stroke="#eef2ff" stroke-linecap="round" stroke-linejoin="round" stroke-width="16"></line><path d="M184,144v64a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V80a8,8,0,0,1,8-8h64" fill="none" stroke="#eef2ff" stroke-linecap="round" stroke-linejoin="round" stroke-width="16"></path></svg></a>',
},
{
type: "html",
position: "right",
value:
'<a target="_blank" href="https://github.com/kyte-one/airlyftone-docs" class="link-button">Github <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="#eef2ff" viewBox="0 0 256 256"><rect width="256" height="256" fill="none"></rect><path d="M111.8,64A52,52,0,0,0,68,40a52,52,0,0,0-3.5,44.7A49.3,49.3,0,0,0,56,112v8a48,48,0,0,0,48,48h48a48,48,0,0,0,48-48v-8a49.3,49.3,0,0,0-8.5-27.3A52,52,0,0,0,188,40a52,52,0,0,0-43.8,24Z" opacity="0.2"></path><path d="M84,240a23.9,23.9,0,0,0,24-24V168" fill="none" stroke="#eef2ff" stroke-linecap="round" stroke-linejoin="round" stroke-width="16"></path><path d="M172,240a23.9,23.9,0,0,1-24-24V168" fill="none" stroke="#eef2ff" stroke-linecap="round" stroke-linejoin="round" stroke-width="16"></path><path d="M152,168h16a23.9,23.9,0,0,1,24,24v8a23.9,23.9,0,0,0,24,24" fill="none" stroke="#eef2ff" stroke-linecap="round" stroke-linejoin="round" stroke-width="16"></path><path d="M104,168H88a23.9,23.9,0,0,0-24,24v8a23.9,23.9,0,0,1-24,24" fill="none" stroke="#eef2ff" stroke-linecap="round" stroke-linejoin="round" stroke-width="16"></path><path d="M111.8,64A52,52,0,0,0,68,40a52,52,0,0,0-3.5,44.7A49.3,49.3,0,0,0,56,112v8a48,48,0,0,0,48,48h48a48,48,0,0,0,48-48v-8a49.3,49.3,0,0,0-8.5-27.3A52,52,0,0,0,188,40a52,52,0,0,0-43.8,24Z" fill="none" stroke="#eef2ff" stroke-linecap="round" stroke-linejoin="round" stroke-width="16"></path></svg></a>',
},
],
},
footer: {
links: [
{
title: "Docs",
items: [
{
label: "Tutorial",
to: "/community",
},
],
},
{
title: "Community",
items: [
{
label: "Telegram",
href: "https://t.me/kyteone",
},
{
label: "Twitter",
href: "https://twitter.com/airlyftone",
},
{
label: "Discord",
href: "https://discord.gg/5F3R45FMca",
},
],
},
{
title: "More",
items: [
{
label: "Home Page",
to: "https://www.airlyft.one",
},
{
label: "AirLyft App",
to: "https://app.airlyft.one",
},
{
label: "Project Dashboard",
to: "https://account.airlyft.one",
},
{
label: "GitHub",
href: "https://github.com/kyte-one",
},
],
},
],
copyright: `Copyright © ${new Date().getFullYear()} KyteOne`,
logo: {
alt: "Meta Open Source Logo",
src: "img/logo.svg",
href: "https://opensource.fb.com",
width: 160,
height: 51,
},
},
prism: {
theme: lightCodeTheme,
darkTheme: darkCodeTheme,
},
algolia: {
appId: 'V854NCB4A4',
apiKey: '63c6590d20fe5c6e70f93de62e324d2e',
indexName: 'airlyft',
debug: false
}
}),
};
module.exports = config;