lepture / shibuya

A responsive, good looking with modern design documentation theme for Sphinx, with great supports for many sphinx extensions.
https://shibuya.lepture.com
BSD 3-Clause "New" or "Revised" License
176 stars 5 forks source link

Navigation bar (left side) does not keep current state #27

Closed andrey-jef closed 7 months ago

andrey-jef commented 7 months ago

Hi,

The nav bar always return to top, instead of depending on where the currently viewed page.

Step to reproduce:

Alternative theme like Furo does not have this issue.

Thanks for your time with the theme development.

lepture commented 7 months ago

Furo behaves the same according to my test. If you want to collapse the left sidebar, you can use globaltoc_expand_depth via https://shibuya.lepture.com/customisation/sidebar/

lepture commented 7 months ago

This may fixed the issue: https://github.com/lepture/shibuya/commit/202f96e19ccac03265a45140fa2571d88587975f

andrey-jef commented 7 months ago

This may fixed the issue: 202f96e

Yes agree. It is fixed. I visit the docs page again. And the items on left side nav bar already stop at the correct position, instead of rebounding to top as previous.

https://shibuya.lepture.com/install/