// @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: 'Example Site', tagline: 'Self-hosting Wolfram Notebooks', url: 'https://gvarnavi.github.io', baseUrl: '/self-hosting-wl-notebooks/', onBrokenLinks: 'throw', onBrokenMarkdownLinks: 'warn', favicon: 'img/favicon.ico', organizationName: 'gvarnavi', // Usually your GitHub org/user name. projectName: 'self-hosting-wl-notebooks', // Usually your repo name. trailingSlash: false, presets: [ [ '@docusaurus/preset-classic', /** @type {import('@docusaurus/preset-classic').Options} */ ({ docs: { sidebarPath: require.resolve('./sidebars.js'), // Please change this to your repo. editUrl: 'https://github.com/gvarnavi/self-hosting-wl-notebooks/edit/main/website/docs/', routeBasePath: '/', }, blog: false, theme: { customCss: require.resolve('./src/css/custom.css'), }, }), ], ], themeConfig: /** @type {import('@docusaurus/preset-classic').ThemeConfig} */ ({ navbar: { title: 'Example Site', logo: { alt: 'My Site Logo', src: 'img/logo.svg', }, items: [ { type: 'doc', docId: 'landing-page', position: 'left', label: 'Docs', }, { href: 'https://github.com/gvarnavi/self-hosting-wl-notebooks', label: 'GitHub', position: 'right', }, ], }, footer: { style: 'dark', links: [ { title: 'Docs', items: [ { label: 'Documentation', to: '/', }, ], }, ], copyright: `Copyright © ${new Date().getFullYear()} Example Site, Built with Docusaurus and the Wolfram Language.`, }, prism: { theme: lightCodeTheme, darkTheme: darkCodeTheme, }, }), }; module.exports = config;