// @ts-check // Note: type annotations allow type checking and IDEs autocompletion import lightCodeTheme from 'prism-react-renderer/themes/github'; import darkCodeTheme from 'prism-react-renderer/themes/dracula'; /** @type {import('@docusaurus/types').Config} */ const config = { title: 'Rancher DevKit', tagline: 'Rancher development kit', url: 'https://bisht-richa.github.io', baseUrl: '/dashboard/', onBrokenLinks: 'throw', onBrokenMarkdownLinks: 'warn', favicon: 'img/favicon.ico', trailingSlash: false, // GitHub pages deployment config. // If you aren't using GitHub pages, you don't need these. organizationName: 'bisht-richa', // Usually your GitHub org/user name. projectName: 'dashboard', // Usually your repo name. // Even if you don't use internalization, you can use this field to set useful // metadata like html lang. For example, if your site is Chinese, you may want // to replace "en" with "zh-Hans". i18n: { defaultLocale: 'en', locales: ['en'], }, presets: [ [ 'classic', /** @type {import('@docusaurus/preset-classic').Options} */ ({ docs: { routeBasePath: '/', sidebarPath: require.resolve('./sidebars.js'), showLastUpdateTime: true, // Please change this to your repo. // Remove this to remove the "edit this page" links. }, blog: false, theme: { customCss: require.resolve('./src/css/custom.css') }, }), ], ], themeConfig: /** @type {import('@docusaurus/preset-classic').ThemeConfig} */ ({ navbar: { logo: { alt: 'Rancher Logo', src: 'img/rancher-logo.svg', }, items: [ { type: 'doc', docId: 'introduction', position: 'left', label: 'DevKit', }, ], }, footer: { style: 'dark', links: [], copyright: `Copyright © ${ new Date().getFullYear() } Rancher. All rights reserved. The Linux Foundation has registered trademarks and uses trademarks.`, }, prism: { theme: lightCodeTheme, darkTheme: darkCodeTheme, }, }), }; export default config;