Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
m1k1o
GitHub Repository: m1k1o/neko
Path: blob/master/webpage/docusaurus.config.ts
1002 views
1
import {themes as prismThemes} from 'prism-react-renderer';
2
import type {Config} from '@docusaurus/types';
3
import type * as Preset from '@docusaurus/preset-classic';
4
import type * as Plugin from "@docusaurus/types/src/plugin";
5
import type * as OpenApiPlugin from "docusaurus-plugin-openapi-docs";
6
7
// This runs in Node.js - Don't use client-side code here (browser APIs, JSX...)
8
9
const config: Config = {
10
title: 'n.eko',
11
tagline: 'A self hosted virtual browser that runs in docker and uses WebRTC.',
12
favicon: 'img/favicon.ico',
13
14
// Set the production url of your site here
15
url: 'https://neko.m1k1o.net',
16
// Set the /<baseUrl>/ pathname under which your site is served
17
// For GitHub pages deployment, it is often '/<projectName>/'
18
baseUrl: '/',
19
20
// GitHub pages deployment config.
21
organizationName: 'm1k1o',
22
projectName: 'neko',
23
trailingSlash: false,
24
25
onBrokenLinks: 'throw',
26
onBrokenMarkdownLinks: 'warn',
27
28
i18n: {
29
defaultLocale: 'en',
30
locales: ['en'],
31
},
32
33
presets: [
34
[
35
'classic',
36
{
37
docs: {
38
sidebarPath: './sidebars.ts',
39
docItemComponent: "@theme/ApiItem", // Derived from docusaurus-theme-openapi
40
editUrl: 'https://github.com/m1k1o/neko/tree/main/webpage/',
41
lastVersion: 'current',
42
versions: {
43
current: {
44
label: 'v3',
45
path: 'v3',
46
},
47
},
48
},
49
//blog: {
50
// showReadingTime: true,
51
// feedOptions: {
52
// type: ['rss', 'atom'],
53
// xslt: true,
54
// },
55
// editUrl: 'https://github.com/m1k1o/neko/tree/main/docs/',
56
// // Useful options to enforce blogging best practices
57
// onInlineTags: 'warn',
58
// onInlineAuthors: 'warn',
59
// onUntruncatedBlogPosts: 'warn',
60
//},
61
theme: {
62
customCss: './src/css/custom.css',
63
},
64
} satisfies Preset.Options,
65
],
66
],
67
68
themeConfig: {
69
image: 'img/neko-social-card.jpg',
70
navbar: {
71
//title: 'n.eko',
72
logo: {
73
alt: 'n.eko',
74
src: 'img/logo.png',
75
},
76
items: [
77
{
78
type: 'docSidebar',
79
sidebarId: 'docsSidebar',
80
position: 'left',
81
label: 'Docs',
82
},
83
{
84
to: 'contributing',
85
label: 'Contributing',
86
position: 'left',
87
},
88
{
89
to: 'non-goals',
90
label: 'Non-Goals',
91
position: 'left',
92
},
93
{
94
to: 'contact',
95
label: 'Contact',
96
position: 'left',
97
},
98
{
99
href: 'https://github.com/sponsors/m1k1o',
100
label: 'Donate',
101
position: 'left',
102
},
103
{
104
type: 'docsVersionDropdown',
105
position: 'right',
106
},
107
{
108
href: 'https://discord.gg/3U6hWpC',
109
label: 'Discord',
110
position: 'right',
111
},
112
{
113
href: 'https://github.com/m1k1o/neko',
114
label: 'GitHub',
115
position: 'right',
116
},
117
],
118
},
119
footer: {
120
style: 'dark',
121
links: [
122
{
123
title: 'Other Projects',
124
items: [
125
{
126
label: 'Neko Rooms',
127
href: 'https://github.com/m1k1o/neko-rooms',
128
},
129
{
130
label: 'Neko Apps',
131
href: 'https://github.com/m1k1o/neko-apps',
132
},
133
{
134
label: 'Neko VPN',
135
href: 'https://github.com/m1k1o/neko-vpn',
136
},
137
],
138
},
139
{
140
title: 'Community',
141
items: [
142
{
143
label: 'Discord',
144
href: 'https://discord.gg/3U6hWpC',
145
},
146
{
147
label: 'Issues',
148
href: 'https://github.com/m1k1o/neko/issues',
149
},
150
],
151
},
152
{
153
title: 'More',
154
items: [
155
{
156
label: 'GitHub',
157
href: 'https://github.com/m1k1o/neko',
158
},
159
{
160
label: 'Sponsors',
161
href: 'https://github.com/sponsors/m1k1o',
162
},
163
],
164
},
165
],
166
copyright: `Copyright © ${new Date().getFullYear()} <a href="https://github.com/m1k1o">m1k1o</a>. Built with Docusaurus.`,
167
},
168
prism: {
169
theme: prismThemes.github,
170
darkTheme: prismThemes.dracula,
171
additionalLanguages: ['bash'],
172
},
173
} satisfies Preset.ThemeConfig,
174
175
plugins: [
176
[
177
"docusaurus-plugin-openapi-docs",
178
{
179
id: "openapi",
180
docsPluginId: "classic",
181
config: {
182
api: {
183
specPath: "../server/openapi.yaml",
184
outputDir: "docs/api",
185
downloadUrl: "https://raw.githubusercontent.com/m1k1o/neko/refs/heads/master/server/openapi.yaml",
186
baseUrl: "/docs/v3/api",
187
sidebarOptions: {
188
groupPathsBy: "tag",
189
categoryLinkSource: "tag",
190
sidebarCollapsed: false,
191
},
192
} satisfies OpenApiPlugin.Options,
193
} satisfies Plugin.PluginOptions,
194
},
195
],
196
],
197
198
themes: ["docusaurus-theme-openapi-docs"],
199
};
200
201
export default config;
202
203