Skip to content

admin/dorfarchiv

PublicMirror

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

154 lines · 4.4 KB
1import type * as Preset from '@docusaurus/preset-classic'
2import type { Config } from '@docusaurus/types'
3import { themes as prismThemes } from 'prism-react-renderer'
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:
56 'https://github.com/Dorfpflege-Rossing/dorfarchiv/edit/main/',
57 },
58 blog: {
59 path: 'berichte',
60 routeBasePath: 'berichte',
61 showReadingTime: true,
62 feedOptions: {
63 type: ['rss', 'atom'],
64 xslt: true,
65 },
66 editUrl:
67 'https://github.com/Dorfpflege-Rossing/dorfarchiv/edit/main/',
68 blogTitle: 'Berichte',
69 blogDescription: 'Berichte und Geschichten aus Rössing',
70 blogSidebarTitle: 'Alle Berichte',
71 blogSidebarCount: 'ALL',
72 },
73 theme: {
74 customCss: './src/css/custom.css',
75 },
76 } satisfies Preset.Options,
77 ],
78 ],
79
80 themeConfig: {
81 // Replace with your project's social card
82 image: 'img/docusaurus-social-card.jpg',
83 navbar: {
84 title: 'Dorfarchiv Rössing',
85 logo: {
86 alt: 'Dorfarchiv Rössing Logo',
87 src: 'img/logo.svg',
88 },
89 items: [
90 {
91 type: 'docSidebar',
92 sidebarId: 'tutorialSidebar',
93 position: 'left',
94 label: 'Unterlagen',
95 },
96 { to: '/berichte', label: 'Berichte', position: 'left' },
97 { to: '/unterlagen/faq', label: 'FAQ', position: 'left' },
98 { to: '/changelog', label: 'Changelog', position: 'left' },
99 {
100 href: 'https://github.com/Dorfpflege-Rossing/dorfarchiv',
101 label: 'GitHub',
102 position: 'right',
103 },
104 ],
105 },
106 footer: {
107 style: 'dark',
108 links: [
109 {
110 title: 'Archiv',
111 items: [
112 {
113 label: 'Unterlagen',
114 to: '/unterlagen/intro',
115 },
116 {
117 label: 'Berichte',
118 to: '/berichte',
119 },
120 ],
121 },
122 {
123 title: 'Rechtliches',
124 items: [
125 {
126 label: 'Impressum',
127 to: '/impressum',
128 },
129 {
130 label: 'FAQ',
131 to: '/unterlagen/faq',
132 },
133 ],
134 },
135 {
136 title: 'Mehr',
137 items: [
138 {
139 label: 'GitHub',
140 href: 'https://github.com/Dorfpflege-Rossing/dorfarchiv',
141 },
142 ],
143 },
144 ],
145 copyright: `Copyright © ${new Date().getFullYear()} Levin Keller. Erstellt mit Docusaurus.<br/>Inhalte: <a href="https://creativecommons.org/publicdomain/zero/1.0/deed.de" target="_blank" rel="noopener noreferrer">CC0</a> (falls nicht anders geregelt) · Code: <a href="https://github.com/Dorfpflege-Rossing/dorfarchiv/blob/main/LICENSE" target="_blank" rel="noopener noreferrer">MIT</a>`,
146 },
147 prism: {
148 theme: prismThemes.github,
149 darkTheme: prismThemes.dracula,
150 },
151 } satisfies Preset.ThemeConfig,
152}
153
154export default config