From fb751fcc63fbd4b1d2d97670bf4f3c38af5f7f64 Mon Sep 17 00:00:00 2001 From: Eric Date: Tue, 13 Jan 2026 15:57:52 -0600 Subject: [PATCH] Website: Only build documentation from specified folders (#38274) Changes: - Updated the build-static-content script to only build documentation pages from the `docs/Get started/`, `docs/Deploy/`, `docs/Configuration/`, and `docs/REST API/` folders --- website/scripts/build-static-content.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/website/scripts/build-static-content.js b/website/scripts/build-static-content.js index 68f472cec4..30d84bbdc6 100644 --- a/website/scripts/build-static-content.js +++ b/website/scripts/build-static-content.js @@ -350,8 +350,9 @@ module.exports = { .split(/\//).map((fileOrFolderName) => fileOrFolderName.toLowerCase().replace(/\s+/g, '-')).join('/') ); - // If this page is in the docs/contributing/ folder, skip it. - if(sectionRepoPath === 'docs/' && _.startsWith(pageUnextensionedUnwhitespacedLowercasedRelPath, 'contributing/')){ + // Only build markdown pages from the Get started, Configuration, Deploy, and REST API subfolders. + let subfolderName = pageRelSourcePath.split('/')[0]; + if(sectionRepoPath === 'docs/' && !['Get started', 'Deploy', 'REST API', 'Configuration'].includes(subfolderName)){ continue; } // Skip pages in folders starting with an underscore character.