|
| 1 | +// @ts-check |
| 2 | +// `@type` JSDoc annotations allow editor autocompletion and type checking |
| 3 | +// (when paired with `@ts-check`). |
| 4 | +// There are various equivalent ways to declare your Docusaurus config. |
| 5 | +// See: https://docusaurus.io/docs/api/docusaurus-config |
| 6 | + |
| 7 | +import { themes as prismThemes } from 'prism-react-renderer'; |
| 8 | + |
| 9 | +/** @type {import('@docusaurus/types').Config} */ |
| 10 | +const config = { |
| 11 | + title: 'Godot Whisper', |
| 12 | + tagline: '(On Device) Whisper (audio to text) plugin for Godot', |
| 13 | + favicon: 'img/whisper_logo.png', |
| 14 | + |
| 15 | + // Set the production url of your site here |
| 16 | + url: 'https://whisper.appsinacup.com', |
| 17 | + // Set the /<baseUrl>/ pathname under which your site is served |
| 18 | + // For GitHub pages deployment, it is often '/<projectName>/' |
| 19 | + baseUrl: '/', |
| 20 | + |
| 21 | + // GitHub pages deployment config. |
| 22 | + // If you aren't using GitHub pages, you don't need these. |
| 23 | + organizationName: 'appsinacup', // Usually your GitHub org/user name. |
| 24 | + projectName: 'godot-whisper', // Usually your repo name. |
| 25 | + |
| 26 | + onBrokenLinks: 'throw', |
| 27 | + onBrokenMarkdownLinks: 'warn', |
| 28 | + |
| 29 | + // Even if you don't use internationalization, you can use this field to set |
| 30 | + // useful metadata like html lang. For example, if your site is Chinese, you |
| 31 | + // may want to replace "en" with "zh-Hans". |
| 32 | + i18n: { |
| 33 | + defaultLocale: 'en', |
| 34 | + locales: ['en'], |
| 35 | + }, |
| 36 | + |
| 37 | + presets: [ |
| 38 | + [ |
| 39 | + 'classic', |
| 40 | + /** @type {import('@docusaurus/preset-classic').Options} */ |
| 41 | + ({ |
| 42 | + docs: { |
| 43 | + sidebarPath: './sidebars.js', |
| 44 | + }, |
| 45 | + theme: { |
| 46 | + customCss: './src/css/custom.css', |
| 47 | + }, |
| 48 | + }), |
| 49 | + ], |
| 50 | + ], |
| 51 | + |
| 52 | + themeConfig: |
| 53 | + /** @type {import('@docusaurus/preset-classic').ThemeConfig} */ |
| 54 | + ({ |
| 55 | + image: 'img/banner_godot_whisper.jpg', |
| 56 | + navbar: { |
| 57 | + title: 'Godot Whisper', |
| 58 | + logo: { |
| 59 | + alt: 'Godot Whisper Logo', |
| 60 | + src: 'img/whisper_logo.png', |
| 61 | + }, |
| 62 | + items: [ |
| 63 | + { |
| 64 | + type: 'docSidebar', |
| 65 | + sidebarId: 'tutorialSidebar', |
| 66 | + position: 'left', |
| 67 | + label: 'Documentation', |
| 68 | + }, |
| 69 | + { |
| 70 | + href: 'https://github.com/sponsors/appsinacup', |
| 71 | + label: 'Donate', |
| 72 | + position: 'right', |
| 73 | + className: 'header-button-donate' |
| 74 | + }, |
| 75 | + { |
| 76 | + href: 'https://discord.gg/v649emcpAu', |
| 77 | + label: 'Discord', |
| 78 | + position: 'right', |
| 79 | + className: 'header-button-donate' |
| 80 | + }, |
| 81 | + { |
| 82 | + href: 'https://appsinacup.com', |
| 83 | + label: 'Apps In A Cup', |
| 84 | + position: 'right', |
| 85 | + }, |
| 86 | + { |
| 87 | + href: 'https://github.com/appsinacup/godot-whisper', |
| 88 | + label: 'GitHub', |
| 89 | + position: 'right', |
| 90 | + }, |
| 91 | + ], |
| 92 | + }, |
| 93 | + footer: { |
| 94 | + style: 'dark', |
| 95 | + links: [ |
| 96 | + { |
| 97 | + title: 'Docs', |
| 98 | + items: [ |
| 99 | + { |
| 100 | + label: 'Tutorial', |
| 101 | + to: '/docs/intro', |
| 102 | + }, |
| 103 | + ], |
| 104 | + }, |
| 105 | + { |
| 106 | + title: 'Community', |
| 107 | + items: [ |
| 108 | + { |
| 109 | + label: 'Discord', |
| 110 | + href: 'https://discord.gg/v649emcpAu', |
| 111 | + }, |
| 112 | + ], |
| 113 | + }, |
| 114 | + { |
| 115 | + title: 'More', |
| 116 | + items: [ |
| 117 | + { |
| 118 | + label: 'Apps In A Cup', |
| 119 | + href: 'https://appsinacup.com', |
| 120 | + }, |
| 121 | + { |
| 122 | + label: 'GitHub', |
| 123 | + href: 'https://github.com/appsinacup/godot-whisper', |
| 124 | + }, |
| 125 | + ], |
| 126 | + }, |
| 127 | + ], |
| 128 | + copyright: `Copyright © ${new Date().getFullYear()} Appsinacup, Inc. Built with Docusaurus.`, |
| 129 | + }, |
| 130 | + prism: { |
| 131 | + theme: prismThemes.github, |
| 132 | + darkTheme: prismThemes.dracula, |
| 133 | + }, |
| 134 | + |
| 135 | + //algolia: { |
| 136 | + // appId: 'HDL5GAYP0P', |
| 137 | + // apiKey: 'f538b5cd448ab287cbf26ecf0b2901c4', |
| 138 | + // indexName: '', |
| 139 | + //}, |
| 140 | + }), |
| 141 | +}; |
| 142 | + |
| 143 | +export default config; |
0 commit comments