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
This commit is contained in:
Eric
2026-01-13 15:57:52 -06:00
committed by GitHub
parent 9df18acc79
commit fb751fcc63
+3 -2
View File
@@ -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.