| import {themes as prismThemes} from 'prism-react-renderer'; |
| import type {Config} from '@docusaurus/types'; |
| import type * as Preset from '@docusaurus/preset-classic'; |
| |
| const config: Config = { |
| title: 'Apache Fluss Clients', |
| tagline: 'Rust, Python, and C++ clients for Apache Fluss', |
| favicon: 'img/logo/fluss_favicon.svg', |
| |
| url: 'https://clients.fluss.apache.org', |
| baseUrl: '/', |
| |
| organizationName: 'apache', |
| projectName: 'fluss-rust', |
| |
| onBrokenLinks: 'throw', |
| |
| i18n: { |
| defaultLocale: 'en', |
| locales: ['en'], |
| }, |
| |
| plugins: [ |
| [ |
| '@docusaurus/plugin-pwa', |
| { |
| debug: false, |
| offlineModeActivationStrategies: [ |
| 'appInstalled', |
| 'standalone', |
| 'queryString', |
| ], |
| pwaHead: [ |
| { tagName: 'link', rel: 'icon', href: '/img/logo/fluss_favicon.svg' }, |
| { tagName: 'link', rel: 'manifest', href: '/manifest.json' }, |
| { tagName: 'meta', name: 'theme-color', content: '#0071e3' }, |
| ], |
| }, |
| ], |
| ], |
| |
| presets: [ |
| [ |
| 'classic', |
| { |
| docs: { |
| routeBasePath: '/', |
| sidebarPath: './sidebars.ts', |
| editUrl: 'https://github.com/apache/fluss-rust/edit/main/website/', |
| }, |
| blog: false, |
| theme: { |
| customCss: './src/css/custom.css', |
| }, |
| } satisfies Preset.Options, |
| ], |
| ], |
| |
| themeConfig: { |
| image: 'img/logo/png/colored_logo.png', |
| colorMode: { |
| defaultMode: 'light', |
| disableSwitch: true, |
| }, |
| navbar: { |
| title: '', |
| logo: { |
| alt: 'Fluss', |
| src: 'img/logo/svg/colored_logo.svg', |
| }, |
| items: [ |
| { |
| type: 'docSidebar', |
| sidebarId: 'docsSidebar', |
| position: 'left', |
| label: 'Client Docs', |
| }, |
| { |
| href: 'https://fluss.apache.org/', |
| label: 'Fluss', |
| position: 'left', |
| }, |
| { |
| href: 'https://github.com/apache/fluss-rust', |
| position: 'right', |
| className: 'header-github-link', |
| 'aria-label': 'GitHub repository', |
| }, |
| ], |
| }, |
| footer: { |
| style: 'dark', |
| copyright: `Copyright © ${new Date().getFullYear()} The Apache Software Foundation, Licensed under the Apache License, Version 2.0.`, |
| }, |
| prism: { |
| theme: prismThemes.vsDark, |
| darkTheme: prismThemes.dracula, |
| additionalLanguages: ['rust', 'toml', 'bash', 'cmake'], |
| }, |
| } satisfies Preset.ThemeConfig, |
| }; |
| |
| export default config; |