Expand subsections in tutorials by default (#2397)
Summary: This commit updates the `window.sideMenus.handleRightMenu`, so that subsections are expanded on tutorials by default. https://output.circle-artifacts.com/output/job/98508917-87df-4666-9958-c70683b3245d/artifacts/0/docs/tutorials/audio_io_tutorial.html Tutorial subsections are important because they have anchors so allow us to get the link to the specific figures / audio samples. When responding issues/questions and when there is a corresponding code snippet in tutorial, it is often easy to answer with links to the tutorial. However, by default the tutorial page collapses right side bar, and I have to click the small "+" symbols to navigate to the subsection, and the state of expansion does not persist across the page refresh. This has been a pain point since we updated the Sphinx version to 3 in https://github.com/pytorch/audio/pull/1685. Pull Request resolved: https://github.com/pytorch/audio/pull/2397 Reviewed By: xiaohui-zhang Differential Revision: D36429745 Pulled By: mthrok fbshipit-source-id: 97a5ae9270e68f8e88f0bca766d5a2c1839634e3
Showing
Please register or sign in to comment