This repository was archived by the owner on Oct 17, 2024. It is now read-only.
Repository navigation
Expand file tree
/
Copy pathdocusaurus.config.js
More file actions
163 lines (151 loc) · 4.3 KB
/
Copy pathdocusaurus.config.js
File metadata and controls
163 lines (151 loc) · 4.3 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
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
// @ts-check
// `@type` JSDoc annotations allow editor autocompletion and type checking
// (when paired with `@ts-check`).
// There are various equivalent ways to declare your Docusaurus config.
// See: https://docusaurus.io/docs/api/docusaurus-config
import { themes as prismThemes } from 'prism-react-renderer';
/** @type {import('@docusaurus/types').Config} */
const config = {
title: 'Noten-App',
tagline: 'Academic Data Management made easy',
favicon: 'https://noten-app.de/favicon.ico',
url: 'https://blog.noten-app.de',
baseUrl: '/',
organizationName: 'noten-app',
projectName: 'blog',
onBrokenLinks: 'warn', // Has to be warn because it throws error when linking to page in another language
onBrokenMarkdownLinks: 'warn',
onDuplicateRoutes: "warn",
titleDelimiter: "·",
baseUrlIssueBanner: false,
trailingSlash: true,
i18n: {
defaultLocale: 'en',
locales: ['de', 'en'],
},
presets: [
[
'classic',
/** @type {import('@docusaurus/preset-classic').Options} */
({
docs: false,
blog: {
showReadingTime: true,
routeBasePath: '/',
feedOptions: {
type: 'all',
copyright: `Copyright © 2024 Konstantin Protzen.`,
},
},
theme: {
customCss: './src/css/custom.css',
},
sitemap: {
changefreq: "weekly",
priority: 0.5,
ignorePatterns: ["/tags/**"],
filename: "sitemap.xml",
},
}),
],
],
themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
// Replace with your project's social card
image: 'https://assets.noten-app.de/images/banners/bannerAppLogoLandscape.png',
navbar: {
title: 'Noten-App',
logo: {
alt: 'Noten-App Logo',
src: 'https://noten-app.de/src/images/logo-108p.webp',
},
items: [
{
type: 'localeDropdown',
position: 'left',
},
{ to: 'https://docs.noten-app.de', label: 'Docs', position: 'right' },
{
href: 'https://github.com/noten-app/blog',
label: 'GitHub',
position: 'right',
},
],
},
tableOfContents: {
minHeadingLevel: 2,
maxHeadingLevel: 4,
},
footer: {
style: 'dark',
links: [
{
title: 'More about Noten-App',
items: [
{
label: 'Docs',
to: 'https://docs.noten-app.de',
},
{
label: 'Homepage',
to: 'https://noten-app.de',
},
],
},
{
title: 'Community',
items: [
{
label: 'Stack Overflow',
href: 'https://stackoverflow.com/questions/tagged/docusaurus',
},
{
label: 'Discord',
href: 'https://discordapp.com/invite/docusaurus',
},
{
label: 'Twitter',
href: 'https://twitter.com/docusaurus',
},
],
},
{
title: "More",
items: [
{
label: "GitHub",
href: "https://github.com/noten-app",
},
{
label: "Impressum",
href: "https://noten-app.de/legal/impressum",
},
{
label: "Datenschutzerklärung",
href: "https://noten-app.de/legal/datenschutz",
},
],
},
],
copyright: `Copyright © 2024 Konstantin Protzen. Built with Docusaurus.`,
},
colorMode: {
defaultMode: 'dark',
respectPrefersColorScheme: true
},
announcementBar: {
id: 'eol-announcement',
content:
'Noten-App will be <b>discontinued on 31.12.2024</b>. Please read more about this <a href="https://blog.noten-app.de/noten-app-eol">here</a>.',
backgroundColor: '#f75d4e',
textColor: '#000000',
isCloseable: false,
},
prism: {
theme: prismThemes.github,
darkTheme: prismThemes.dracula,
},
}),
};
export default config;