|
| 1 | +// @ts-check |
| 2 | +import { themes as prismThemes } from 'prism-react-renderer'; |
| 3 | + |
| 4 | +/** @type {import('@docusaurus/types').Config} */ |
| 5 | +const config = { |
| 6 | + title: 'Netwrix Product Documentation', |
| 7 | + tagline: 'Documentation for Netwrix Products', |
| 8 | + favicon: 'img/branding/favicon.ico', |
| 9 | + url: process.env.RENDER_EXTERNAL_URL || 'http://localhost:3000', |
| 10 | + baseUrl: '/', |
| 11 | + onBrokenLinks: 'warn', |
| 12 | + onBrokenMarkdownLinks: 'warn', |
| 13 | + onBrokenAnchors: 'warn', |
| 14 | + |
| 15 | + future: { |
| 16 | + experimental_faster: { |
| 17 | + swcJsLoader: true, |
| 18 | + swcJsMinimizer: true, |
| 19 | + swcHtmlMinimizer: true, |
| 20 | + lightningCssMinimizer: true, |
| 21 | + rspackBundler: true, |
| 22 | + rspackPersistentCache: true, |
| 23 | + mdxCrossCompilerCache: true, |
| 24 | + ssgWorkerThreads: true, |
| 25 | + }, |
| 26 | + v4: { |
| 27 | + removeLegacyPostBuildHeadAttribute: true, |
| 28 | + }, |
| 29 | + }, |
| 30 | + |
| 31 | + i18n: { |
| 32 | + defaultLocale: 'en', |
| 33 | + locales: ['en'], |
| 34 | + }, |
| 35 | + |
| 36 | + presets: [ |
| 37 | + [ |
| 38 | + 'classic', |
| 39 | + /** @type {import('@docusaurus/preset-classic').Options} */ |
| 40 | + ({ |
| 41 | + docs: false, |
| 42 | + blog: false, |
| 43 | + pages: false, // Disable pages (including homepage) |
| 44 | + theme: { |
| 45 | + customCss: './src/css/custom.css', |
| 46 | + }, |
| 47 | + }), |
| 48 | + ], |
| 49 | + ], |
| 50 | + |
| 51 | + plugins: [ |
| 52 | + [ |
| 53 | + '@docusaurus/plugin-content-docs', |
| 54 | + { |
| 55 | + id: '1secure', |
| 56 | + path: 'docs/1secure', |
| 57 | + routeBasePath: '/', |
| 58 | + sidebarPath: require.resolve('./sidebars/1secure.js'), |
| 59 | + editUrl: 'https://github.com/netwrix/docs/tree/main/', |
| 60 | + exclude: ['**/CLAUDE.md'], |
| 61 | + versions: { |
| 62 | + current: { |
| 63 | + label: 'Current', |
| 64 | + }, |
| 65 | + }, |
| 66 | + }, |
| 67 | + ], |
| 68 | + ], |
| 69 | + |
| 70 | + themeConfig: { |
| 71 | + image: 'img/Logo_RGB.svg', |
| 72 | + docs: { |
| 73 | + sidebar: { |
| 74 | + hideable: true, |
| 75 | + autoCollapseCategories: false, |
| 76 | + }, |
| 77 | + }, |
| 78 | + navbar: { |
| 79 | + logo: { |
| 80 | + alt: 'Netwrix Logo', |
| 81 | + src: 'img/branding/logo-red.svg', |
| 82 | + srcDark: 'img/branding/logo-white.svg', |
| 83 | + href: '/', |
| 84 | + }, |
| 85 | + items: [ |
| 86 | + { |
| 87 | + href: 'https://community.netwrix.com', |
| 88 | + label: 'Community', |
| 89 | + position: 'right', |
| 90 | + }, |
| 91 | + { |
| 92 | + href: 'https://www.netwrix.com/support.html', |
| 93 | + label: 'Support', |
| 94 | + position: 'right', |
| 95 | + }, |
| 96 | + { |
| 97 | + href: 'http://github.com/netwrix', |
| 98 | + label: 'GitHub', |
| 99 | + position: 'right', |
| 100 | + }, |
| 101 | + ], |
| 102 | + }, |
| 103 | + prism: { |
| 104 | + theme: prismThemes.github, |
| 105 | + darkTheme: prismThemes.dracula, |
| 106 | + }, |
| 107 | + }, |
| 108 | + stylesheets: ['https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap'], |
| 109 | +}; |
| 110 | + |
| 111 | +export default config; |
0 commit comments