From 56016d066d57070ec60af35af88df52c6dea8e46 Mon Sep 17 00:00:00 2001 From: 3822802 <123643427+3822802@users.noreply.github.com> Date: Thu, 13 Aug 2026 19:46:50 +0700 Subject: [PATCH] fix(scripts): exclude static/ from top-level doc sections discoverTopLevelSections() treats every directory under docs/ as a documentation section unless it is in CONSTANTS.skipDirs. docs/static/ holds assets (docs/static/assets/), not docs, so the generated docs/AGENTS.md gets an entry pointing at docs/static/llms.txt, which does not exist. Adds 'static' alongside the other asset directories already skipped (images, videos, logo). Fixes #1806. --- scripts/lib/docs-utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/lib/docs-utils.js b/scripts/lib/docs-utils.js index 81451eda7..1c9342ee8 100644 --- a/scripts/lib/docs-utils.js +++ b/scripts/lib/docs-utils.js @@ -31,7 +31,7 @@ const CONSTANTS = { skipDirs: [ 'node_modules', '.git', 'dist', 'build', 'coverage', - '.next', 'images', 'videos', 'logo', 'openapi', '.claude', 'snippets' + '.next', 'images', 'videos', 'logo', 'openapi', '.claude', 'snippets', 'static' ], extensions: ['.md', '.mdx'],