Skip to content

admin/dorfarchiv

PublicMirror

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

142 lines · 3.8 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 presets: [
40 [
41 'classic',
42 {
43 docs: {
44 path: 'unterlagen',
45 routeBasePath: 'unterlagen',
46 sidebarPath: './sidebars.ts',
47 editUrl: 'https://github.com/Dorfpflege-Rossing/dorfarchiv/edit/main/',
48 },
49 blog: {
50 path: 'berichte',
51 routeBasePath: 'berichte',
52 showReadingTime: true,
53 feedOptions: {
54 type: ['rss', 'atom'],
55 xslt: true,
56 },
57 editUrl: 'https://github.com/Dorfpflege-Rossing/dorfarchiv/edit/main/',
58 blogTitle: 'Berichte',
59 blogDescription: 'Berichte und Geschichten aus Rössing',
60 blogSidebarTitle: 'Alle Berichte',
61 blogSidebarCount: 'ALL',
62 },
63 theme: {
64 customCss: './src/css/custom.css',
65 },
66 } satisfies Preset.Options,
67 ],
68 ],
69
70 themeConfig: {
71 // Replace with your project's social card
72 image: 'img/docusaurus-social-card.jpg',
73 navbar: {
74 title: 'Dorfarchiv Rössing',
75 logo: {
76 alt: 'Dorfarchiv Rössing Logo',
77 src: 'img/logo.svg',
78 },
79 items: [
80 {
81 type: 'docSidebar',
82 sidebarId: 'tutorialSidebar',
83 position: 'left',
84 label: 'Unterlagen',
85 },
86 {to: '/berichte', label: 'Berichte', position: 'left'},
87 {
88 href: 'https://github.com/Dorfpflege-Rossing/dorfarchiv',
89 label: 'GitHub',
90 position: 'right',
91 },
92 ],
93 },
94 footer: {
95 style: 'dark',
96 links: [
97 {
98 title: 'Archiv',
99 items: [
100 {
101 label: 'Unterlagen',
102 to: '/unterlagen/intro',
103 },
104 {
105 label: 'Berichte',
106 to: '/berichte',
107 },
108 ],
109 },
110 {
111 title: 'Rechtliches',
112 items: [
113 {
114 label: 'Impressum',
115 to: '/impressum',
116 },
117 {
118 label: 'Datenschutz',
119 to: '/datenschutz',
120 },
121 ],
122 },
123 {
124 title: 'Mehr',
125 items: [
126 {
127 label: 'GitHub',
128 href: 'https://github.com/Dorfpflege-Rossing/dorfarchiv',
129 },
130 ],
131 },
132 ],
133 copyright: `Copyright © ${new Date().getFullYear()} Levin Keller. Erstellt mit Docusaurus.`,
134 },
135 prism: {
136 theme: prismThemes.github,
137 darkTheme: prismThemes.dracula,
138 },
139 } satisfies Preset.ThemeConfig,
140};
141
142export default config;