From 4114392647b3b7ea03a91c24e045b97d22767f79 Mon Sep 17 00:00:00 2001 From: Harshal Sheth Date: Wed, 4 Jun 2025 16:33:08 -0700 Subject: [PATCH] fix(docs): make docs inclusion opt-in (#13680) --- docs-website/generateDocsDir.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs-website/generateDocsDir.ts b/docs-website/generateDocsDir.ts index 6c90e3c37c..dbae4b5ee1 100644 --- a/docs-website/generateDocsDir.ts +++ b/docs-website/generateDocsDir.ts @@ -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` ); } }