fix(docs): make docs inclusion opt-in (#13680)

This commit is contained in:
Harshal Sheth 2025-06-04 16:33:08 -07:00 committed by GitHub
parent 454f76f2b5
commit 4114392647
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -673,8 +673,8 @@ function write_markdown_file(
continue;
}
if (!accounted_for_in_sidebar(filepath)) {
throw new Error(
`File not accounted for in sidebar: ${filepath} - try adding it to docs-website/sidebars.js`
console.warn(
`File not accounted for in sidebar: ${filepath} - consider adding it to docs-website/sidebars.js or explicitly ignoring it`
);
}
}