// @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: 'Doc', tagline: 'Dinosaurs are cool', url: 'https://strapi.github.io/strapi', baseUrl: '/', onBrokenLinks: 'throw', onBrokenMarkdownLinks: 'warn', favicon: 'img/favicon.png', organizationName: 'strapi', projectName: 'strapi', trailingSlash: false, // 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'], }, plugins: [], presets: [ [ 'classic', /** @type {import('@docusaurus/preset-classic').Options} */ { docs: { routeBasePath: '/', sidebarPath: require.resolve('./sidebars.js'), editUrl: 'https://github.com/strapi/strapi/tree/main/docs/', }, blog: false, }, ], ], themeConfig: /** @type {import('@docusaurus/preset-classic').ThemeConfig} */ { navbar: { title: 'Contributor documentation', hideOnScroll: true, logo: { alt: 'Doc', src: 'img/logo.svg', srcDark: 'img/logo_dark.svg', width: 100, }, items: [ { type: 'doc', position: 'left', docId: 'index', label: 'Docs', }, { type: 'docSidebar', position: 'left', sidebarId: 'api', label: 'API', }, ], }, prism: { theme: lightCodeTheme, darkTheme: darkCodeTheme, }, }, }; module.exports = config;