diff --git a/package.json b/package.json index 7b26ac8821..cf7545d8db 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "docusaurus": "npx docusaurus", "start": "cross-env NODE_OPTIONS=--max-old-space-size=16384 CHOKIDAR_USEPOLLING=false npx docusaurus start --port=4500 --no-open", "start-chok": "cross-env NODE_OPTIONS=--max-old-space-size=16384 CHOKIDAR_USEPOLLING=true npx docusaurus start --port=4500 --no-open", - "build": "cross-env NODE_OPTIONS=\"--max-old-space-size=16384\" npx docusaurus build", + "build": "cross-env NODE_OPTIONS=--max-old-space-size=16384 npx docusaurus build", "swizzle": "npx docusaurus swizzle", "clear": "npx docusaurus clear", "serve": "npx serve -s build -l 8080", diff --git a/src/config/products.js b/src/config/products.js index 3a75ab2fbb..56e6780b38 100644 --- a/src/config/products.js +++ b/src/config/products.js @@ -718,32 +718,9 @@ export function hasKBContent(productId) { */ export function generateDocusaurusPlugins() { const plugins = []; - + // Filter products if DOCS_PRODUCT environment variable is set const targetProduct = process.env.DOCS_PRODUCT; - - // Special case: if DOCS_PRODUCT=kb, build only KB plugin - if (targetProduct === 'kb') { - // Add KB plugin for centralized Knowledge Base content - plugins.push([ - '@docusaurus/plugin-content-docs', - { - id: 'kb', - path: 'docs/kb', - routeBasePath: 'docs/kb', - sidebarPath: false, // KB uses individual sidebars in product plugins - editUrl: 'https://github.com/netwrix/docs/tree/main/', - exclude: ['**/CLAUDE.md', '**/docs-staging/**'], - versions: { - current: { - label: 'Knowledge Base', - }, - }, - }, - ]); - return plugins; - } - const productsToProcess = targetProduct ? PRODUCTS.filter(product => product.id === targetProduct) : PRODUCTS;