-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocusaurus.config.js
More file actions
89 lines (84 loc) · 2.34 KB
/
Copy pathdocusaurus.config.js
File metadata and controls
89 lines (84 loc) · 2.34 KB
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
// @ts-check
/** @type {import('@docusaurus/types').Config} */
const config = {
title: 'TimeSync Docs',
tagline: 'Developer documentation for the TimeSync real-time contest timer platform',
favicon: 'img/favicon.ico',
url: 'https://timesync.dev',
baseUrl: '/',
organizationName: 'timesync',
projectName: 'timesync',
onBrokenLinks: 'warn',
i18n: {
defaultLocale: 'en',
locales: ['en'],
},
presets: [
[
'classic',
/** @type {import('@docusaurus/preset-classic').Options} */
({
docs: {
sidebarPath: './sidebars.js',
routeBasePath: '/',
editUrl: 'https://github.com/your-username/TimeSync/tree/main/docs/',
},
blog: false,
theme: {
customCss: './src/css/custom.css',
},
}),
],
],
themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
image: 'img/timesync-social-card.png',
navbar: {
title: '⏱️ TimeSync',
items: [
{
type: 'docSidebar',
sidebarId: 'docsSidebar',
position: 'left',
label: 'Docs',
},
{
href: 'https://github.com/your-username/TimeSync',
label: 'GitHub',
position: 'right',
},
],
},
footer: {
style: 'dark',
links: [
{
title: 'Documentation',
items: [
{ label: 'Getting Started', to: '/' },
{ label: 'Architecture', to: '/architecture' },
{ label: 'API Reference', to: '/api/rest-endpoints' },
],
},
{
title: 'Community',
items: [
{ label: 'GitHub Issues', href: 'https://github.com/your-username/TimeSync/issues' },
{ label: 'Discussions', href: 'https://github.com/your-username/TimeSync/discussions' },
],
},
],
copyright: `Copyright © ${new Date().getFullYear()} TimeSync Contributors. Built with Docusaurus.`,
},
prism: {
theme: require('prism-react-renderer').themes.github,
darkTheme: require('prism-react-renderer').themes.dracula,
},
colorMode: {
defaultMode: 'dark',
respectPrefersColorScheme: true,
},
}),
};
module.exports = config;