|
| 1 | +// @ts-check |
| 2 | +// Note: type annotations allow type checking and IDEs autocompletion |
| 3 | + |
| 4 | +const lightCodeTheme = require('prism-react-renderer/themes/github'); |
| 5 | +const darkCodeTheme = require('prism-react-renderer/themes/dracula'); |
| 6 | + |
| 7 | +/** @type {import('@docusaurus/types').Config} */ |
| 8 | +const config = { |
| 9 | + title: "Typeractive.xyz Documentation", |
| 10 | + tagline: "Documentation for Typeractive.xyz Products", |
| 11 | + favicon: "img/favicon.ico", |
| 12 | + |
| 13 | + // Set the production url of your site here |
| 14 | + url: "https://docs.typeractive.xyz", |
| 15 | + // Set the /<baseUrl>/ pathname under which your site is served |
| 16 | + // For GitHub pages deployment, it is often '/<projectName>/' |
| 17 | + baseUrl: "/", |
| 18 | + |
| 19 | + onBrokenLinks: "throw", |
| 20 | + onBrokenMarkdownLinks: "warn", |
| 21 | + |
| 22 | + // Even if you don't use internalization, you can use this field to set useful |
| 23 | + // metadata like html lang. For example, if your site is Chinese, you may want |
| 24 | + // to replace "en" with "zh-Hans". |
| 25 | + i18n: { |
| 26 | + defaultLocale: "en", |
| 27 | + locales: ["en"], |
| 28 | + }, |
| 29 | + |
| 30 | + presets: [ |
| 31 | + [ |
| 32 | + "classic", |
| 33 | + /** @type {import('@docusaurus/preset-classic').Options} */ |
| 34 | + ({ |
| 35 | + docs: { |
| 36 | + path: "products", |
| 37 | + routeBasePath: "products", |
| 38 | + sidebarPath: require.resolve("./sidebars.js"), |
| 39 | + // Please change this to your repo. |
| 40 | + // Remove this to remove the "edit this page" links. |
| 41 | + editUrl: "https://github.com/typeractivexyz/documentation/tree/main", |
| 42 | + }, |
| 43 | + theme: { |
| 44 | + customCss: require.resolve("./src/css/custom.css"), |
| 45 | + }, |
| 46 | + }), |
| 47 | + ], |
| 48 | + ], |
| 49 | + |
| 50 | + plugins: [ |
| 51 | + [ |
| 52 | + "@docusaurus/plugin-content-docs", |
| 53 | + { |
| 54 | + id: "build-guides", |
| 55 | + path: "build-guides", |
| 56 | + routeBasePath: "build-guides", |
| 57 | + sidebarPath: require.resolve("./sidebars.js"), |
| 58 | + editUrl: "https://github.com/typeractivexyz/documentation/tree/main", |
| 59 | + }, |
| 60 | + ], |
| 61 | + [ |
| 62 | + "@docusaurus/plugin-content-docs", |
| 63 | + { |
| 64 | + id: "troubleshooting", |
| 65 | + path: "troubleshooting", |
| 66 | + routeBasePath: "troubleshooting", |
| 67 | + sidebarPath: require.resolve("./sidebars.js"), |
| 68 | + editUrl: "https://github.com/typeractivexyz/documentation/tree/main", |
| 69 | + }, |
| 70 | + ], |
| 71 | + ], |
| 72 | + |
| 73 | + themeConfig: |
| 74 | + /** @type {import('@docusaurus/preset-classic').ThemeConfig} */ |
| 75 | + ({ |
| 76 | + // Replace with your project's social card |
| 77 | + image: "img/docusaurus-social-card.jpg", |
| 78 | + navbar: { |
| 79 | + title: "My Site", |
| 80 | + logo: { |
| 81 | + alt: "My Site Logo", |
| 82 | + src: "img/logo.svg", |
| 83 | + }, |
| 84 | + items: [ |
| 85 | + { |
| 86 | + type: "doc", |
| 87 | + docId: "intro", |
| 88 | + position: "left", |
| 89 | + label: "Products", |
| 90 | + }, |
| 91 | + { |
| 92 | + to: "build-guides", |
| 93 | + position: "left", |
| 94 | + label: "Build Guides", |
| 95 | + activeBaseRegex: `/build-guides/`, |
| 96 | + }, |
| 97 | + { |
| 98 | + to: "troubleshooting", |
| 99 | + position: "left", |
| 100 | + label: "Troubleshooting", |
| 101 | + activeBaseRegex: `/troubleshooting/`, |
| 102 | + }, |
| 103 | + { |
| 104 | + href: "https://typeractive.xyz", |
| 105 | + label: "Shop", |
| 106 | + position: "right", |
| 107 | + }, |
| 108 | + { |
| 109 | + href: "https://typeractive.xyz/discord", |
| 110 | + label: "Discord", |
| 111 | + position: "right", |
| 112 | + }, |
| 113 | + ], |
| 114 | + }, |
| 115 | + footer: { |
| 116 | + style: "dark", |
| 117 | + links: [ |
| 118 | + { |
| 119 | + title: "Docs", |
| 120 | + items: [ |
| 121 | + { |
| 122 | + label: "Tutorial", |
| 123 | + to: "/docs/intro", |
| 124 | + }, |
| 125 | + ], |
| 126 | + }, |
| 127 | + { |
| 128 | + title: "Community", |
| 129 | + items: [ |
| 130 | + { |
| 131 | + label: "Stack Overflow", |
| 132 | + href: "https://stackoverflow.com/questions/tagged/docusaurus", |
| 133 | + }, |
| 134 | + { |
| 135 | + label: "Discord", |
| 136 | + href: "https://discordapp.com/invite/docusaurus", |
| 137 | + }, |
| 138 | + { |
| 139 | + label: "Twitter", |
| 140 | + href: "https://twitter.com/docusaurus", |
| 141 | + }, |
| 142 | + ], |
| 143 | + }, |
| 144 | + { |
| 145 | + title: "More", |
| 146 | + items: [ |
| 147 | + { |
| 148 | + label: "Blog", |
| 149 | + to: "/blog", |
| 150 | + }, |
| 151 | + { |
| 152 | + label: "GitHub", |
| 153 | + href: "https://github.com/facebook/docusaurus", |
| 154 | + }, |
| 155 | + ], |
| 156 | + }, |
| 157 | + ], |
| 158 | + copyright: `Copyright © ${new Date().getFullYear()} Nice Technologies LLC. Built with Docusaurus.`, |
| 159 | + }, |
| 160 | + prism: { |
| 161 | + theme: lightCodeTheme, |
| 162 | + darkTheme: darkCodeTheme, |
| 163 | + }, |
| 164 | + colorMode: { |
| 165 | + defaultMode: "light", |
| 166 | + disableSwitch: false, |
| 167 | + respectPrefersColorScheme: true, |
| 168 | + }, |
| 169 | + }), |
| 170 | +}; |
| 171 | + |
| 172 | +module.exports = config; |
0 commit comments