egoist / docute

πŸ“š Effortless documentation, done right.
https://docute.egoist.dev
MIT License
3.8k stars 427 forks source link

feat: toggle sidebar children #223

Closed ittus closed 5 years ago

ittus commented 5 years ago

Implement https://github.com/egoist/docute/issues/216

sidebar

@egoist Please help to review when you have time πŸ™‡

egoist commented 5 years ago
屏幕快照_2019-05-11_δΈ‹εˆ2_12_41

It should allow us to toggle these items instead.

egoist commented 5 years ago

ddd

Add a collapsable to the sidebar item, and make it default to false

ittus commented 5 years ago

@egoist Thank for your explanation. I've updated the code. Please help to review again!

egoist commented 5 years ago

Looks good, but it should hide the children by default if collapsable is true

ittus commented 5 years ago

Fixed πŸ˜„

egoist commented 5 years ago

We should also expand the children when the current route is one of the children.

屏幕快照_2019-05-11_δΈ‹εˆ3_43_16

And collapse other collapsable items.

Check out the VuePress example.

ittus commented 5 years ago

Fixed! But I don't know why now doesn't deploy again

egoist commented 5 years ago

:tada: This PR is included in version 4.16.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: