|  | 
|  | 1 | +// @ts-check | 
|  | 2 | +// Note: type annotations allow type checking and IDEs autocompletion | 
|  | 3 | + | 
|  | 4 | +import { themes } from 'prism-react-renderer'; | 
|  | 5 | +const lightCodeTheme = themes.github; | 
|  | 6 | +const darkCodeTheme = themes.dracula; | 
|  | 7 | + | 
|  | 8 | +/** @type {import('@docusaurus/types').Config} */ | 
|  | 9 | +const config = { | 
|  | 10 | +  title: 'Relic', | 
|  | 11 | +  tagline: 'Strictly typed HTTP server with incredible performance.', | 
|  | 12 | +  url: 'https://docs.relic.dev', | 
|  | 13 | +  baseUrl: '/', | 
|  | 14 | +  onBrokenLinks: 'throw', | 
|  | 15 | +  onBrokenMarkdownLinks: 'warn', | 
|  | 16 | +  favicon: 'img/favicon.png', | 
|  | 17 | +  organizationName: 'serverpod', // Usually your GitHub org/user name. | 
|  | 18 | +  projectName: 'relic', // Usually your repo name. | 
|  | 19 | +  trailingSlash: false, | 
|  | 20 | +  presets: [ | 
|  | 21 | +    [ | 
|  | 22 | +      'classic', | 
|  | 23 | +      /** @type {import('@docusaurus/preset-classic').Options} */ | 
|  | 24 | +      ({ | 
|  | 25 | +        docs: { | 
|  | 26 | +          routeBasePath: '/', | 
|  | 27 | +          sidebarPath: require.resolve('./sidebars.js'), | 
|  | 28 | +          // Please change this to your repo. | 
|  | 29 | +          editUrl: | 
|  | 30 | +            'https://github.com/serverpod/relic/tree/main/doc/site/', | 
|  | 31 | +          breadcrumbs: false, | 
|  | 32 | +        }, | 
|  | 33 | +        blog: false, | 
|  | 34 | +        theme: { | 
|  | 35 | +          customCss: require.resolve('./src/css/custom.css'), | 
|  | 36 | +        }, | 
|  | 37 | +        gtag: { | 
|  | 38 | +          trackingID: 'G-0EYLJMP04H', | 
|  | 39 | +          anonymizeIP: true, | 
|  | 40 | +        }, | 
|  | 41 | +      }), | 
|  | 42 | +    ], | 
|  | 43 | +  ], | 
|  | 44 | + | 
|  | 45 | +  themeConfig: | 
|  | 46 | +    /** @type {import('@docusaurus/preset-classic').ThemeConfig} */ | 
|  | 47 | +    ({ | 
|  | 48 | +      colorMode: { | 
|  | 49 | +        respectPrefersColorScheme: true, | 
|  | 50 | +        disableSwitch: false, | 
|  | 51 | +      }, | 
|  | 52 | +      navbar: { | 
|  | 53 | +        // title: 'My Site', | 
|  | 54 | +        logo: { | 
|  | 55 | +          alt: 'Serverpod Logo', | 
|  | 56 | +          src: 'img/logo-horizontal.svg', | 
|  | 57 | +          srcDark: 'img/logo-horizontal-dark.svg', | 
|  | 58 | +          href: 'https://serverpod.dev', | 
|  | 59 | +        }, | 
|  | 60 | +        items: [ | 
|  | 61 | +          { | 
|  | 62 | +            type: 'docsVersionDropdown', | 
|  | 63 | +            position: 'left', | 
|  | 64 | +          }, | 
|  | 65 | +          { | 
|  | 66 | +            href: 'https://careers.serverpod.dev/', | 
|  | 67 | +            label: 'Career', | 
|  | 68 | +            position: 'right', | 
|  | 69 | +          }, | 
|  | 70 | +          { | 
|  | 71 | +            href: 'https://twitter.com/ServerpodDev', | 
|  | 72 | +            label: 'Twitter', | 
|  | 73 | +            position: 'right', | 
|  | 74 | +          }, | 
|  | 75 | +          { | 
|  | 76 | +            href: 'https://github.com/serverpod/serverpod', | 
|  | 77 | +            label: 'GitHub', | 
|  | 78 | +            position: 'right', | 
|  | 79 | +          }, | 
|  | 80 | +          { | 
|  | 81 | +            type: 'search', | 
|  | 82 | +            position: 'right', | 
|  | 83 | +          }, | 
|  | 84 | +        ], | 
|  | 85 | +      }, | 
|  | 86 | +      footer: { | 
|  | 87 | +        style: 'dark', | 
|  | 88 | +        copyright: `Copyright © ${new Date().getFullYear()} Serverpod authors.`, | 
|  | 89 | +      }, | 
|  | 90 | +      prism: { | 
|  | 91 | +        theme: lightCodeTheme, | 
|  | 92 | +        darkTheme: darkCodeTheme, | 
|  | 93 | +        additionalLanguages: ['dart', 'bash'], | 
|  | 94 | +      }, | 
|  | 95 | +    }), | 
|  | 96 | +  plugins: [ | 
|  | 97 | +    [ | 
|  | 98 | +      '@docusaurus/plugin-client-redirects', | 
|  | 99 | +      { | 
|  | 100 | +        redirects: [], | 
|  | 101 | +      }, | 
|  | 102 | +    ], | 
|  | 103 | +  ], | 
|  | 104 | +}; | 
|  | 105 | + | 
|  | 106 | +module.exports = config; | 
0 commit comments