Clicking on level 1 toc entry (URL with href="#") of the current page in sidebar does not have the page scroll to the top. Is it intentionally designed to be like this or just a bug?
On Saturday, April 27, 2019 at 3:46:12 AM UTC+8, Vinay Sajip wrote: > > Thanks for "kicking the tyres" on this theme! I had added the hidden class > and removed it dynamically to try to improve the behaviour when JavaScript > is disabled - not a critical case. I've commented it out now, and that > change can also be in the next release. > > Regards, > > Vinay Sajip > > On Friday, 26 April 2019 19:30:06 UTC+1, [email protected] wrote: >> >> Another issue found with version 0.0.5. Suppose a TOC structure as shown >> below: >> >> page1 >> page1#id2 >> page2 >> page2#id2 >> >> When I am currently on page1 and click on the 'page2#id2` entry in >> sidebar, the browser navigates to the topmost of page2 but not page2#id2. >> Once you've been on page2, clicking 'page2#id2' entry in the sidebar >> works fine, the browser scrolls to the correct position. >> >> I did some simple research and found removing the 'hidden' attribute from >> 'whole-page' element could get things back normal. I'm not familiar with >> front-end web programming, no idea why 'hidden' attribute is used here and >> then gets removed in a javascript section. Hope this issue could be fixed >> in the next release as well. >> >> Thanks. >> >> On Saturday, April 13, 2019 at 6:10:06 AM UTC+8, Vinay Sajip wrote: >>> >>> I've started work on a new MIT-licensed theme. It started out as a >>> customisation of the Guzzle theme, but I've removed some features and added >>> some features that I found useful: >>> >>> - Layout uses a small header with search box, prev/next links and >>> index link >>> - Sidebar is hideable and showable with keyboard or mouse >>> - Entries in the TOC can be filtered by typing in what you want to >>> match on - handy for long TOCs / larger projects >>> - Sidebar and content area can scroll independently (useful for >>> larger projects) >>> - Typography changes - Font Awesome is integrated, slightly more >>> condensed fonts than are used in Guzzle (e.g. Roboto rather than Open >>> Sans) >>> - Support for additional Google Fonts >>> - Styled lists using Font Awesome icons >>> - Summary/detail functionality using styled lists >>> - A couple of custom roles, including one for Font Awesome icons >>> - Improved hooks for your custom JavaScript to be called on document >>> load, etc. >>> >>> You can see an example of the theme using its own documentation: >>> >>> https://docs.red-dove.com/sphinx_sizzle_theme/ >>> >>> and for a larger project: >>> >>> https://docs.red-dove.com/distlib/ >>> >>> I'd be grateful for any feedback about the theme and/or its >>> documentation. >>> >>> The development repository is at >>> >>> https://bitbucket.org/vinay.sajip/sphinx_sizzle_theme/ >>> >>> and issues can also be raised there. >>> >>> Regards, >>> >>> Vinay Sajip >>> >>> >>> >>> -- You received this message because you are subscribed to the Google Groups "sphinx-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/sphinx-users. For more options, visit https://groups.google.com/d/optout.
