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: 'NestJS tRPC — @nest-native/trpc', tagline: 'Decorator-first tRPC integration for NestJS with full Nest lifecycle support', favicon: 'img/favicon.ico', future: { v4: true, }, url: 'https://nest-native.github.io', baseUrl: '/trpc/', organizationName: 'nest-native', projectName: 'trpc', onBrokenLinks: 'throw', i18n: { defaultLocale: 'en', locales: ['en'], }, presets: [ [ 'classic', { docs: { sidebarPath: './sidebars.ts', editUrl: 'https://github.com/nest-native/trpc/tree/main/website/', }, blog: false, theme: { customCss: './src/css/custom.css', }, } satisfies Preset.Options, ], ], themeConfig: { image: 'img/social-card.png', colorMode: { respectPrefersColorScheme: true, }, navbar: { title: 'NestJS tRPC', items: [ { type: 'docSidebar', sidebarId: 'docsSidebar', position: 'left', label: 'Docs', }, { href: 'https://www.npmjs.com/package/@nest-native/trpc', label: 'npm', position: 'right', }, { href: 'https://github.com/nest-native/trpc', label: 'GitHub', position: 'right', }, ], }, footer: { style: 'dark', links: [ { title: 'Docs', items: [ {label: 'Getting Started', to: '/docs/introduction'}, {label: 'Quick Start', to: '/docs/quick-start'}, {label: 'Decorators', to: '/docs/decorators/router'}, ], }, { title: 'More', items: [ { label: 'GitHub', href: 'https://github.com/nest-native/trpc', }, { label: 'npm', href: 'https://www.npmjs.com/package/@nest-native/trpc', }, ], }, ], copyright: `Copyright © ${new Date().getFullYear()} @nest-native/trpc contributors. Built with Docusaurus.`, }, prism: { theme: prismThemes.github, darkTheme: prismThemes.dracula, additionalLanguages: ['bash', 'json'], }, } satisfies Preset.ThemeConfig, }; export default config;