|
| 1 | +import {themes as prismThemes} from 'prism-react-renderer'; |
| 2 | +import type {Config} from '@docusaurus/types'; |
| 3 | +import type * as Preset from '@docusaurus/preset-classic'; |
| 4 | + |
| 5 | +const config: Config = { |
| 6 | + title: 'Mathematik', |
| 7 | + tagline: 'Math Tools', |
| 8 | + favicon: 'img/favicon.ico', |
| 9 | + |
| 10 | + // Set the production url of your site here |
| 11 | + url: 'https://bh0fer.github.io', |
| 12 | + // Set the /<baseUrl>/ pathname under which your site is served |
| 13 | + // For GitHub pages deployment, it is often '/<projectName>/' |
| 14 | + baseUrl: '/math/', |
| 15 | + |
| 16 | + // GitHub pages deployment config. |
| 17 | + // If you aren't using GitHub pages, you don't need these. |
| 18 | + organizationName: 'bh0fer', // Usually your GitHub org/user name. |
| 19 | + projectName: 'math', // Usually your repo name. |
| 20 | + |
| 21 | + onBrokenLinks: 'throw', |
| 22 | + onBrokenMarkdownLinks: 'warn', |
| 23 | + |
| 24 | + // Even if you don't use internationalization, you can use this field to set |
| 25 | + // useful metadata like html lang. For example, if your site is Chinese, you |
| 26 | + // may want to replace "en" with "zh-Hans". |
| 27 | + i18n: { |
| 28 | + defaultLocale: 'de', |
| 29 | + locales: ['de'], |
| 30 | + }, |
| 31 | + |
| 32 | + presets: [ |
| 33 | + [ |
| 34 | + 'classic', |
| 35 | + { |
| 36 | + docs: { |
| 37 | + sidebarPath: './sidebars.ts', |
| 38 | + routeBasePath: '/', |
| 39 | + // Please change this to your repo. |
| 40 | + // Remove this to remove the "edit this page" links. |
| 41 | + editUrl: |
| 42 | + 'https://github.com/bh0fer/math/tree/main/', |
| 43 | + }, |
| 44 | + blog: false, |
| 45 | + theme: { |
| 46 | + customCss: './src/css/custom.scss', |
| 47 | + }, |
| 48 | + } satisfies Preset.Options, |
| 49 | + ], |
| 50 | + ], |
| 51 | + |
| 52 | + themeConfig: { |
| 53 | + // Replace with your project's social card |
| 54 | + image: 'img/math-social-card.jpg', |
| 55 | + navbar: { |
| 56 | + logo: { |
| 57 | + alt: 'Math Logo', |
| 58 | + src: 'img/logo.svg', |
| 59 | + }, |
| 60 | + items: [ |
| 61 | + { |
| 62 | + href: 'https://github.com/bh0fer/math', |
| 63 | + label: 'GitHub', |
| 64 | + position: 'right', |
| 65 | + }, |
| 66 | + ], |
| 67 | + }, |
| 68 | + footer: { |
| 69 | + style: 'dark', |
| 70 | + links: [], |
| 71 | + copyright: `Copyright © ${new Date().getFullYear()} hfr. Built with Docusaurus.`, |
| 72 | + }, |
| 73 | + prism: { |
| 74 | + theme: prismThemes.github, |
| 75 | + darkTheme: prismThemes.dracula, |
| 76 | + }, |
| 77 | + } satisfies Preset.ThemeConfig, |
| 78 | + plugins: ['docusaurus-plugin-sass'], |
| 79 | +}; |
| 80 | + |
| 81 | +export default config; |
0 commit comments