jupyter-book icon indicating copy to clipboard operation
jupyter-book copied to clipboard

(v0.13.0) Clicking on contents (right sidebar), subsections of previous section opens in sidebar instead of clicked section.

Open particle1331 opened this issue 3 years ago • 2 comments

Describe the bug

context When I click on section on sidebar.

expectation I expected subsections of clicked section to unravel.

bug But instead subsections of previous section unravels.

problem This is a problem for people navigating the book using the contents sidebar.

Reproduce the bug

  1. Install jupyter-book 0.13.0 on virtual env.
  2. Create new book, e.g. https://jupyterbook.org/en/stable/start/your-first-book.html
  3. Create many sections and many subsections (randomly adding ## and ###).
  4. Click around the contents side bar on the right. Blow I'm clicking "Sample roles and directive", but the "What is MyST" is unraveling instead.
Screen Shot 2022-07-01 at 3 26 36 AM

List your environment

local environment:


Jupyter Book      : 0.13.0
External ToC      : 0.2.4
MyST-Parser       : 0.15.2
MyST-NB           : 0.13.2
Sphinx Book Theme : 0.3.2
Jupyter-Cache     : 0.4.3
NbClient          : 0.5.13

Not sure about the environment in github actions, but the deployed book built using tox and github actions also have this bug.

particle1331 avatar Jun 29 '22 09:06 particle1331

Thanks for opening your first issue here! Engagement like this is essential for open source projects! :hugs:
If you haven't done so already, check out EBP's Code of Conduct. Also, please try to follow the issue template as it helps other community members to contribute more effectively.
If your issue is a feature request, others may react to it, to raise its prominence (see Feature Voting).
Welcome to the EBP community! :tada:

welcome[bot] avatar Jun 29 '22 09:06 welcome[bot]

I also find this issue distracting if admittedly not that serious.

Like @particle1331 mentioned, if you go for example to this Jupyter book documentation link, the right side bar highlights "Definition lists" even though the link was to #quotations-and-epigraphs. Some notes I posted in June don't seem to have this issue, so I think this is a recent bug: notes from June

I tried these links in both Chrome and Safari, so I don't think it's specific to the browser.

ChristopherDavisUCI avatar Aug 21 '22 01:08 ChristopherDavisUCI

We're seeing this issue too across multiple browsers and systems.

firasm avatar Oct 06 '22 17:10 firasm

This is fixed in 0.14.0

particle1331 avatar Mar 02 '23 21:03 particle1331