Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
25 changes: 1 addition & 24 deletions src/config/products.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down