|
| 1 | +// @ts-check |
| 2 | +// `@type` JSDoc annotations allow editor autocompletion and type checking |
| 3 | +// (when paired with `@ts-check`). |
| 4 | +// There are various equivalent ways to declare your Docusaurus config. |
| 5 | +// See: https://docusaurus.io/docs/api/docusaurus-config |
| 6 | + |
| 7 | +import {themes as prismThemes} from 'prism-react-renderer'; |
| 8 | + |
| 9 | +// This runs in Node.js - Don't use client-side code here (browser APIs, JSX...) |
| 10 | + |
| 11 | +/** @type {import('@docusaurus/types').Config} */ |
| 12 | +const config = { |
| 13 | + title: 'My Site', |
| 14 | + tagline: 'Dinosaurs are cool', |
| 15 | + favicon: 'img/favicon.ico', |
| 16 | + |
| 17 | + // Future flags, see https://docusaurus.io/docs/api/docusaurus-config#future |
| 18 | + future: { |
| 19 | + v4: true, // Improve compatibility with the upcoming Docusaurus v4 |
| 20 | + }, |
| 21 | + |
| 22 | + // Set the production url of your site here |
| 23 | + url: 'https://on-the-edge-cloud.github.io/', |
| 24 | + // Set the /<baseUrl>/ pathname under which your site is served |
| 25 | + // For GitHub pages deployment, it is often '/<projectName>/' |
| 26 | + baseUrl: '/react-circle-flags/', |
| 27 | + |
| 28 | + // GitHub pages deployment config. |
| 29 | + // If you aren't using GitHub pages, you don't need these. |
| 30 | + organizationName: 'on-the-edge-cloud', // Usually your GitHub org/user name. |
| 31 | + projectName: 'react-circle-flags', // Usually your repo name. |
| 32 | + |
| 33 | + onBrokenLinks: 'throw', |
| 34 | + |
| 35 | + // Even if you don't use internationalization, you can use this field to set |
| 36 | + // useful metadata like html lang. For example, if your site is Chinese, you |
| 37 | + // may want to replace "en" with "zh-Hans". |
| 38 | + i18n: { |
| 39 | + defaultLocale: 'en', |
| 40 | + locales: ['en'], |
| 41 | + }, |
| 42 | + |
| 43 | + presets: [ |
| 44 | + [ |
| 45 | + 'classic', |
| 46 | + /** @type {import('@docusaurus/preset-classic').Options} */ |
| 47 | + ({ |
| 48 | + docs: { |
| 49 | + sidebarPath: './sidebars.js', |
| 50 | + // Please change this to your repo. |
| 51 | + // Remove this to remove the "edit this page" links. |
| 52 | + editUrl: |
| 53 | + 'https://github.com/on-the-edge-cloud/react-circle-flags/tree/master/documentation/', |
| 54 | + }, |
| 55 | + blog: false, |
| 56 | + theme: { |
| 57 | + customCss: './src/css/custom.css', |
| 58 | + }, |
| 59 | + }), |
| 60 | + ], |
| 61 | + ], |
| 62 | + |
| 63 | + themeConfig: |
| 64 | + /** @type {import('@docusaurus/preset-classic').ThemeConfig} */ |
| 65 | + ({ |
| 66 | + // Replace with your project's social card |
| 67 | + image: 'img/docusaurus-social-card.jpg', |
| 68 | + colorMode: { |
| 69 | + respectPrefersColorScheme: true, |
| 70 | + }, |
| 71 | + navbar: { |
| 72 | + title: 'react-circle-flags', |
| 73 | + logo: { |
| 74 | + alt: 'react-circle-flags Logo', |
| 75 | + src: 'img/logo.svg', |
| 76 | + }, |
| 77 | + items: [ |
| 78 | + { |
| 79 | + href: 'https://github.com/on-the-edge-cloud/react-circle-flags', |
| 80 | + label: 'GitHub', |
| 81 | + position: 'right', |
| 82 | + }, |
| 83 | + ], |
| 84 | + }, |
| 85 | + footer: { |
| 86 | + style: 'dark', |
| 87 | + links: [ |
| 88 | + { |
| 89 | + title: 'More', |
| 90 | + items: [ |
| 91 | + { |
| 92 | + label: 'GitHub', |
| 93 | + href: 'https://github.com/on-the-edge-cloud/react-circle-flags', |
| 94 | + }, |
| 95 | + ], |
| 96 | + }, |
| 97 | + ], |
| 98 | + copyright: `Copyright © ${new Date().getFullYear()} react-circle-flags. Built with Docusaurus.`, |
| 99 | + }, |
| 100 | + prism: { |
| 101 | + theme: prismThemes.github, |
| 102 | + darkTheme: prismThemes.dracula, |
| 103 | + }, |
| 104 | + }), |
| 105 | +}; |
| 106 | + |
| 107 | +export default config; |
0 commit comments