Skip to content

admin/dorfarchiv

PublicMirror

Mirror of https://forge.levinkeller.de/levin/dorfarchiv.git

147 lines · 3.9 KB
1import {themes as prismThemes} from 'prism-react-renderer';
2import type {Config} from '@docusaurus/types';
3import type * as Preset from '@docusaurus/preset-classic';
4
5// This runs in Node.js - Don't use client-side code here (browser APIs, JSX...)
6
7const config: Config = {
8 title: 'Digitales Dorfarchiv Rössing',
9 tagline: 'Geschichte und Geschichten aus Rössing bewahren',
10 favicon: 'img/favicon.ico',
11
12 // Future flags, see https://docusaurus.io/docs/api/docusaurus-config#future
13 future: {
14 experimental_faster: true,
15 v4: true, // Improve compatibility with the upcoming Docusaurus v4
16 },
17
18 // Set the production url of your site here
19 url: 'https://dorfarchiv-roessing.de',
20 // Set the /<baseUrl>/ pathname under which your site is served
21 // For GitHub pages deployment, it is often '/<projectName>/'
22 baseUrl: '/',
23
24 // GitHub pages deployment config.
25 // If you aren't using GitHub pages, you don't need these.
26 organizationName: 'Dorfpflege-Rossing',
27 projectName: 'dorfarchiv',
28
29 onBrokenLinks: 'throw',
30
31 // Even if you don't use internationalization, you can use this field to set
32 // useful metadata like html lang. For example, if your site is Chinese, you
33 // may want to replace "en" with "zh-Hans".
34 i18n: {
35 defaultLocale: 'de',
36 locales: ['de'],
37 },
38
39 scripts: [
40 {
41 src: 'https://analytics.levinkeller.de/js/script.js',
42 defer: true,
43 'data-domain': 'archiv.xn--rssing-wxa.de',
44 },
45 ],
46
47 presets: [
48 [
49 'classic',
50 {
51 docs: {
52 path: 'unterlagen',
53 routeBasePath: 'unterlagen',
54 sidebarPath: './sidebars.ts',
55 editUrl: 'https://github.com/Dorfpflege-Rossing/dorfarchiv/edit/main/',
56 },
57 blog: {
58 path: 'berichte',
59 routeBasePath: 'berichte',
60 showReadingTime: true,
61 feedOptions: {
62 type: ['rss', 'atom'],
63 xslt: true,
64 },
65 editUrl: 'https://github.com/Dorfpflege-Rossing/dorfarchiv/edit/main/',
66 blogTitle: 'Berichte',
67 blogDescription: 'Berichte und Geschichten aus Rössing',
68 blogSidebarTitle: 'Alle Berichte',
69 blogSidebarCount: 'ALL',
70 },
71 theme: {
72 customCss: './src/css/custom.css',
73 },
74 } satisfies Preset.Options,
75 ],
76 ],
77
78 themeConfig: {
79 // Replace with your project's social card
80 image: 'img/docusaurus-social-card.jpg',
81 navbar: {
82 title: 'Dorfarchiv Rössing',
83 logo: {
84 alt: 'Dorfarchiv Rössing Logo',
85 src: 'img/logo.svg',
86 },
87 items: [
88 {
89 type: 'docSidebar',
90 sidebarId: 'tutorialSidebar',
91 position: 'left',
92 label: 'Unterlagen',
93 },
94 {to: '/berichte', label: 'Berichte', position: 'left'},
95 {to: '/changelog', label: 'Changelog', position: 'left'},
96 {
97 href: 'https://github.com/Dorfpflege-Rossing/dorfarchiv',
98 label: 'GitHub',
99 position: 'right',
100 },
101 ],
102 },
103 footer: {
104 style: 'dark',
105 links: [
106 {
107 title: 'Archiv',
108 items: [
109 {
110 label: 'Unterlagen',
111 to: '/unterlagen/intro',
112 },
113 {
114 label: 'Berichte',
115 to: '/berichte',
116 },
117 ],
118 },
119 {
120 title: 'Rechtliches',
121 items: [
122 {
123 label: 'Impressum',
124 to: '/impressum',
125 },
126 ],
127 },
128 {
129 title: 'Mehr',
130 items: [
131 {
132 label: 'GitHub',
133 href: 'https://github.com/Dorfpflege-Rossing/dorfarchiv',
134 },
135 ],
136 },
137 ],
138 copyright: `Copyright © ${new Date().getFullYear()} Levin Keller. Erstellt mit Docusaurus.`,
139 },
140 prism: {
141 theme: prismThemes.github,
142 darkTheme: prismThemes.dracula,
143 },
144 } satisfies Preset.ThemeConfig,
145};
146
147export default config;