|
| 1 | +import type {Config} from '@docusaurus/types'; |
| 2 | +import type * as Preset from '@docusaurus/preset-classic'; |
| 3 | + |
| 4 | +const config: Config = { |
| 5 | + title: 'OpenRemote Handbook', |
| 6 | + tagline: 'The 100% Open Source IoT Platform for Manufacturers and Integrators', |
| 7 | + favicon: 'img/favicon.ico', |
| 8 | + |
| 9 | + // Set the production url of your site here |
| 10 | + url: 'https://handbook.openremote.io', |
| 11 | + // Set the /<baseUrl>/ pathname under which your site is served |
| 12 | + // For GitHub pages deployment, it is often '/<projectName>/' |
| 13 | + baseUrl: '/', |
| 14 | + |
| 15 | + // GitHub pages deployment config. |
| 16 | + // If you aren't using GitHub pages, you don't need these. |
| 17 | + organizationName: 'openremote', // Usually your GitHub org/user name. |
| 18 | + projectName: 'handbook', // Usually your repo name. |
| 19 | + |
| 20 | + onBrokenLinks: 'throw', |
| 21 | + onBrokenMarkdownLinks: 'warn', |
| 22 | + |
| 23 | + // Even if you don't use internationalization, you can use this field to set |
| 24 | + // useful metadata like html lang. For example, if your site is Chinese, you |
| 25 | + // may want to replace "en" with "zh-Hans". |
| 26 | + i18n: { |
| 27 | + defaultLocale: 'en', |
| 28 | + locales: ['en'], |
| 29 | + }, |
| 30 | + |
| 31 | + presets: [ |
| 32 | + [ |
| 33 | + 'classic', |
| 34 | + { |
| 35 | + docs: { |
| 36 | + sidebarPath: './sidebars.ts', |
| 37 | + editCurrentVersion: true, |
| 38 | + editUrl: 'https://github.com/openremote/handbook/edit/main/', |
| 39 | + }, |
| 40 | + blog: { |
| 41 | + showReadingTime: true, |
| 42 | + editUrl: 'https://github.com/openremote/handbook/edit/main/', |
| 43 | + }, |
| 44 | + theme: { |
| 45 | + customCss: [ |
| 46 | + './src/css/styles.css', |
| 47 | + ] |
| 48 | + }, |
| 49 | + gtag: { |
| 50 | + trackingID: "GTM-MWP6C7F", |
| 51 | + anonymizeIP: false, |
| 52 | + }, |
| 53 | + } satisfies Preset.Options, |
| 54 | + ], |
| 55 | + ], |
| 56 | + |
| 57 | + themeConfig: { |
| 58 | + // Replace with your project's social card |
| 59 | + image: 'img/openremote-social-card.svg', |
| 60 | + navbar: { |
| 61 | + title: 'OpenRemote', |
| 62 | + logo: { |
| 63 | + alt: 'OpenRemote Logo', |
| 64 | + src: 'img/logo.svg', |
| 65 | + }, |
| 66 | + items: [ |
| 67 | + { |
| 68 | + type: 'docsVersionDropdown', |
| 69 | + position: 'left', |
| 70 | + dropdownActiveClassDisabled: false, |
| 71 | + }, |
| 72 | + { |
| 73 | + href: 'https://forum.openremote.io/', |
| 74 | + label: 'Forum', |
| 75 | + position: 'right', |
| 76 | + }, |
| 77 | + { |
| 78 | + href: 'https://github.com/openremote/openremote', |
| 79 | + label: 'GitHub', |
| 80 | + position: 'right', |
| 81 | + }, |
| 82 | + { |
| 83 | + href: 'https://www.openremote.io/', |
| 84 | + label: 'Website', |
| 85 | + position: 'right', |
| 86 | + }, |
| 87 | + ], |
| 88 | + }, |
| 89 | + footer: { |
| 90 | + style: 'dark', |
| 91 | + links: [ |
| 92 | + { |
| 93 | + title: 'Handbook', |
| 94 | + items: [ |
| 95 | + { |
| 96 | + label: 'Introduction', |
| 97 | + to: '/docs/introduction', |
| 98 | + }, |
| 99 | + ], |
| 100 | + }, |
| 101 | + { |
| 102 | + title: 'Community', |
| 103 | + items: [ |
| 104 | + { |
| 105 | + label: 'Forum', |
| 106 | + href: 'https://forum.openremote.io/', |
| 107 | + }, |
| 108 | + { |
| 109 | + label: 'Facebook', |
| 110 | + href: 'https://www.facebook.com/openremote', |
| 111 | + }, |
| 112 | + { |
| 113 | + label: 'Instagram', |
| 114 | + href: 'https://www.instagram.com/openremote/', |
| 115 | + }, |
| 116 | + { |
| 117 | + label: 'LinkedIn', |
| 118 | + href: 'https://www.linkedin.com/company/openremote/', |
| 119 | + }, |
| 120 | + { |
| 121 | + label: 'Reddit', |
| 122 | + href: 'https://www.reddit.com/r/openremote/', |
| 123 | + }, |
| 124 | + { |
| 125 | + label: 'X', |
| 126 | + href: 'https://x.com/OpenRemotePro/', |
| 127 | + }, |
| 128 | + { |
| 129 | + label: 'YouTube', |
| 130 | + href: 'https://www.youtube.com/c/openremotepro', |
| 131 | + }, |
| 132 | + ], |
| 133 | + }, |
| 134 | + { |
| 135 | + title: 'More', |
| 136 | + items: [ |
| 137 | + { |
| 138 | + label: 'Website', |
| 139 | + to: 'https://www.openremote.io/', |
| 140 | + }, |
| 141 | + { |
| 142 | + label: 'News', |
| 143 | + to: 'https://www.openremote.io/news/', |
| 144 | + }, |
| 145 | + { |
| 146 | + label: 'Demo', |
| 147 | + href: 'https://www.openremote.io/demo/', |
| 148 | + }, |
| 149 | + { |
| 150 | + label: 'Source Code', |
| 151 | + href: 'https://github.com/openremote/openremote/', |
| 152 | + }, |
| 153 | + { |
| 154 | + label: 'OSS Licensing', |
| 155 | + href: 'https://openremote.io/open-source/', |
| 156 | + }, |
| 157 | + { |
| 158 | + label: 'Contact', |
| 159 | + href: 'https://www.openremote.io/contact/', |
| 160 | + }, |
| 161 | + { |
| 162 | + label: 'Privacy Policy', |
| 163 | + href: 'https://openremote.io/privacy-policy/', |
| 164 | + }, |
| 165 | + ], |
| 166 | + }, |
| 167 | + ], |
| 168 | + copyright: `© ${new Date().getFullYear()} OpenRemote, Inc. All Rights Reserved.`, |
| 169 | + }, |
| 170 | + algolia: { |
| 171 | + apiKey: '18c8ff9992cf5a0b37acb9b008fa7cd9', |
| 172 | + appId: 'TVHZ0YEM1U', |
| 173 | + indexName: 'openremote', |
| 174 | + }, |
| 175 | + } satisfies Preset.ThemeConfig, |
| 176 | +}; |
| 177 | + |
| 178 | +export default config; |
0 commit comments