Mirror of https://forge.levinkeller.de/levin/dorfarchiv.git
decc95050c76ee0cadff34f3957ea88456634637
149 lines · 4.2 KB
| 1 | import type * as Preset from '@docusaurus/preset-classic' |
| 2 | import type { Config } from '@docusaurus/types' |
| 3 | import { 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 | |
| 7 | const 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: '/changelog', label: 'Changelog', position: 'left' }, |
| 98 | { |
| 99 | href: 'https://github.com/Dorfpflege-Rossing/dorfarchiv', |
| 100 | label: 'GitHub', |
| 101 | position: 'right', |
| 102 | }, |
| 103 | ], |
| 104 | }, |
| 105 | footer: { |
| 106 | style: 'dark', |
| 107 | links: [ |
| 108 | { |
| 109 | title: 'Archiv', |
| 110 | items: [ |
| 111 | { |
| 112 | label: 'Unterlagen', |
| 113 | to: '/unterlagen/intro', |
| 114 | }, |
| 115 | { |
| 116 | label: 'Berichte', |
| 117 | to: '/berichte', |
| 118 | }, |
| 119 | ], |
| 120 | }, |
| 121 | { |
| 122 | title: 'Rechtliches', |
| 123 | items: [ |
| 124 | { |
| 125 | label: 'Impressum', |
| 126 | to: '/impressum', |
| 127 | }, |
| 128 | ], |
| 129 | }, |
| 130 | { |
| 131 | title: 'Mehr', |
| 132 | items: [ |
| 133 | { |
| 134 | label: 'GitHub', |
| 135 | href: 'https://github.com/Dorfpflege-Rossing/dorfarchiv', |
| 136 | }, |
| 137 | ], |
| 138 | }, |
| 139 | ], |
| 140 | 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>`, |
| 141 | }, |
| 142 | prism: { |
| 143 | theme: prismThemes.github, |
| 144 | darkTheme: prismThemes.dracula, |
| 145 | }, |
| 146 | } satisfies Preset.ThemeConfig, |
| 147 | } |
| 148 | |
| 149 | export default config |