Skip to content

admin/dorfarchiv

PublicMirror

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

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