// @ts-check // Note: type annotations allow type checking and IDEs autocompletion const lightCodeTheme = require('prism-react-renderer/themes/github'); const darkCodeTheme = require('prism-react-renderer/themes/dracula'); /** @type {import('@docusaurus/types').Config} */ const config = { title: 'unifi-cam-proxy', tagline: 'Dinosaurs are cool', url: 'https://unifi-cam-proxy.com', baseUrl: '/', onBrokenLinks: 'throw', onBrokenMarkdownLinks: 'warn', favicon: 'img/favicon.ico', organizationName: 'keshavdv', // Usually your GitHub org/user name. projectName: 'unifi-cam-proxy', // Usually your repo name. trailingSlash: false, presets: [ [ 'classic', /** @type {import('@docusaurus/preset-classic').Options} */ ({ docs: { routeBasePath: '/', sidebarPath: require.resolve('./sidebars.js'), // Please change this to your repo. editUrl: 'https://github.com/keshavdv/unifi-cam-proxy/tree/main/docs/', }, theme: { customCss: require.resolve('./src/css/custom.css'), }, }), ], ], themeConfig: /** @type {import('@docusaurus/preset-classic').ThemeConfig} */ ({ navbar: { title: 'unifi-cam-proxy', items: [ { type: 'doc', docId: 'intro', position: 'left', label: 'Docs', }, { href: 'https://github.com/keshavdv/unifi-cam-proxy', label: 'GitHub', position: 'right', }, ], }, footer: { style: 'dark', links: [ { title: 'More', items: [ { label: 'GitHub', href: 'https://github.com/keshavdv/unifi-cam-proxy', }, ], }, ], copyright: `Copyright © ${new Date().getFullYear()} Keshav Varma. Built with Docusaurus.`, }, prism: { theme: lightCodeTheme, darkTheme: darkCodeTheme, }, }), }; module.exports = config;