Revert "fix: only show docs with depth < 3 in tree, hide nested leaf docs"

This reverts commit 12c9947130.
This commit is contained in:
2026-03-18 20:23:11 +08:00
parent 12c9947130
commit 86f84d4349

View File

@@ -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)