|
| 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 | +// This runs in Node.js - Don't use client-side code here (browser APIs, JSX...) |
| 6 | + |
| 7 | +const config: Config = { |
| 8 | + title: 'S3 Streamer', |
| 9 | + tagline: 'Stream your videos hosted on a S3-compatible Bucket', |
| 10 | + favicon: 'img/favicon.ico', |
| 11 | + |
| 12 | + // Set the production url of your site here |
| 13 | + url: 'https://germainlefebvre4.github.com', |
| 14 | + // Set the /<baseUrl>/ pathname under which your site is served |
| 15 | + // For GitHub pages deployment, it is often '/<projectName>/' |
| 16 | + baseUrl: '/S3Streamer/', |
| 17 | + |
| 18 | + // GitHub pages deployment config. |
| 19 | + // If you aren't using GitHub pages, you don't need these. |
| 20 | + organizationName: 'germainlefebvre4', // Usually your GitHub org/user name. |
| 21 | + projectName: 'S3Streamer', // Usually your repo name. |
| 22 | + |
| 23 | + onBrokenLinks: 'throw', |
| 24 | + onBrokenMarkdownLinks: 'warn', |
| 25 | + |
| 26 | + // Even if you don't use internationalization, you can use this field to set |
| 27 | + // useful metadata like html lang. For example, if your site is Chinese, you |
| 28 | + // may want to replace "en" with "zh-Hans". |
| 29 | + i18n: { |
| 30 | + defaultLocale: 'en', |
| 31 | + locales: ['en'], |
| 32 | + }, |
| 33 | + |
| 34 | + presets: [ |
| 35 | + [ |
| 36 | + 'classic', |
| 37 | + { |
| 38 | + docs: { |
| 39 | + sidebarPath: './sidebars.ts', |
| 40 | + // Please change this to your repo. |
| 41 | + editUrl: |
| 42 | + 'https://github.com/germainlefebvre4/S3Streamer/tree/main/s3streamer-docs-v2', |
| 43 | + }, |
| 44 | + theme: { |
| 45 | + customCss: './src/css/custom.css', |
| 46 | + }, |
| 47 | + } satisfies Preset.Options, |
| 48 | + ], |
| 49 | + ], |
| 50 | + |
| 51 | + themeConfig: { |
| 52 | + // Replace with your project's social card |
| 53 | + image: 'img/docusaurus-social-card.jpg', |
| 54 | + navbar: { |
| 55 | + title: 'S3 Streamer', |
| 56 | + logo: { |
| 57 | + alt: 'S3 Streamer Logo', |
| 58 | + src: 'img/logo.svg', |
| 59 | + }, |
| 60 | + items: [ |
| 61 | + { |
| 62 | + type: 'docSidebar', |
| 63 | + sidebarId: 'tutorialSidebar', |
| 64 | + position: 'right', |
| 65 | + label: 'Documentation', |
| 66 | + }, |
| 67 | + { |
| 68 | + href: 'https://github.com/germainlefebvre4/S3Streamer', |
| 69 | + label: 'GitHub', |
| 70 | + position: 'right', |
| 71 | + }, |
| 72 | + ], |
| 73 | + }, |
| 74 | + footer: { |
| 75 | + style: 'dark', |
| 76 | + links: [ |
| 77 | + { |
| 78 | + title: 'Links', |
| 79 | + items: [ |
| 80 | + { |
| 81 | + label: 'GitHub', |
| 82 | + href: 'https://github.com/germainlefebvre4/S3Streamer', |
| 83 | + }, |
| 84 | + { |
| 85 | + label: 'Documentation', |
| 86 | + to: '/docs/presentation', |
| 87 | + }, |
| 88 | + ], |
| 89 | + }, |
| 90 | + { |
| 91 | + title: 'Community', |
| 92 | + items: [ |
| 93 | + { |
| 94 | + label: 'GitHub Discussions', |
| 95 | + href: 'https://github.com/germainlefebvre4/S3Streamer/discussions', |
| 96 | + }, |
| 97 | + { |
| 98 | + label: 'Issues', |
| 99 | + href: 'https://github.com/germainlefebvre4/S3Streamer/issues', |
| 100 | + }, |
| 101 | + ], |
| 102 | + }, |
| 103 | + ], |
| 104 | + copyright: `Copyright © ${new Date().getFullYear()} S3 Streamer. Built with Docusaurus.`, |
| 105 | + }, |
| 106 | + prism: { |
| 107 | + theme: prismThemes.github, |
| 108 | + darkTheme: prismThemes.dracula, |
| 109 | + }, |
| 110 | + } satisfies Preset.ThemeConfig, |
| 111 | +}; |
| 112 | + |
| 113 | +export default config; |
0 commit comments