[codex] Add docs sidebar tree and search#3204
Merged
Merged
Conversation
8ef53a5 to
ac6cbd6
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
SidebarItemimplementation for collapsible sidebar groups with dedicated expand/collapse controls.SidebarItemsimplementation with a search input above the docs sidebar.Why
The docs sidebar already configured nested groups such as
命令列表,AI 相关, and其他特性, but the rendered sidebar did not expose the nested document tree clearly. After adding the tree controls, ordinary sibling links and collapsible rows had different text start positions because only collapsible rows reserved space for the arrow. The search input makes large command lists easier to navigate without scrolling through every command.Impact
Users can now expand/collapse documentation groups from the sidebar and filter sidebar entries by typing a command or document name. Chinese and English docs use localized search placeholder, clear button label, empty state, and expand/collapse aria labels.
Validation
npm run docs:buildsuccessfully; VuePress rendered 150 pages./doc/commands.html:命令列表defaults expanded and can collapse/expand.表达式核心变量,命令列表, andFAQalign to the same text x-position.mcpshowsAI 相关 -> Arthas MCP Serverand opens that branch.catshows命令列表 -> catand opens that branch.没有匹配结果.Note: the build still reports the existing Browserslist
caniuse-lite is outdatedwarning.