docsifyjs / docsifyjs/docsify

Pure CSS menu, any level deep

未关闭
#1,180 2 条评论 2 个 reaction 已指派 1 人 已指派给 @jhildenbiddle 在 GitHub 查看
enhancement
主要语言
JavaScript
星标
31.5k
派生
5.8k
平均合并
9 天 8 小时
30 天内合并 PR
2

描述

## Feature request

Current menu has limitations. Sometimes (like for links) the menu items can open/close to show child items. Other times (as with non-links) there is no open/close function.

#### What problem does this feature solve?

We can decouple the menu nesting from the link system, and fix the fact that currently not all items in the Docsify sidebar are collapsible (it seems to depend on items being links or not).

I am on mobile, but I can later post my markdown and what it looks like.

#### What does the proposed API look like?

Let's get ideas from existing pure-CSS tree views with open/close, any level deep:

- https://codepen.io/bisserof/pen/fdtBm
- https://codepen.io/kobusvanwykk/pen/NqXVNQ
- https://codepen.io/rgg/pen/WrKyzj
- https://codepen.io/anchen/pen/rGDjI

#### How should this be implemented in your opinion?

We can adopt a similar technique, but style it for Docsify. A plug-in could add smooth CSS transition.

#### Are you willing to work on this yourself?

👍

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。