From 86f84d4349cb06a72670775bc79544d359a0c99f Mon Sep 17 00:00:00 2001 From: ssdfasd <2156608475@qq.com> Date: Wed, 18 Mar 2026 20:23:11 +0800 Subject: [PATCH] Revert "fix: only show docs with depth < 3 in tree, hide nested leaf docs" This reverts commit 12c99471308d95a7d1832b23d530e9d3d2b15f1c. --- src/components/ApiDocViewer.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/components/ApiDocViewer.tsx b/src/components/ApiDocViewer.tsx index 77379e6..73b7940 100644 --- a/src/components/ApiDocViewer.tsx +++ b/src/components/ApiDocViewer.tsx @@ -71,9 +71,7 @@ export const ApiDocViewer = ({ onDocsPathChange, showAddModal, onCloseAddModal } setExternalDocs(docs) - const fileList = docs - .filter(doc => doc.relativePath.split('/').length < 3) - .map(d => d.relativePath) + const fileList = docs.map(d => d.relativePath) const tree = buildFileTree(fileList, '/') setFileTree(tree)