-
-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
👌 IMPROVE: RHS TOC sticky when scrolling option #144
base: main
Are you sure you want to change the base?
Conversation
nice work @DrDrij -- it would be good to get the preview building with the updated RHS toc. Is that possible? |
Codecov Report
@@ Coverage Diff @@
## master #144 +/- ##
=======================================
Coverage 71.12% 71.12%
=======================================
Files 2 2
Lines 239 239
=======================================
Hits 170 170
Misses 69 69
Flags with carried forward coverage won't be shown. Click here to find out more. 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
@DrDrij is the outstanding checkbox still in work? |
re: The main toc is So perhaps we need to differentiate these |
@DrDrij what do you think re: comments / names? |
@DrDrij do you think you would have some time in the next two weeks to see if we can close this? |
@mmcky Great idea. Changed the parameter to I think that covers it for this PR :) |
I think |
@AakashGfude can you please resolve these conflicts after #186 is merged. |
@mmcky this is ready to be reviewed and merged. |
@AakashGfude the latest |
@AakashGfude let's revert 0acf72c and I will update the
|
@AakashGfude I just pushed c8fd78a |
@AakashGfude once you get the tests and merge conflict sorted -- then please ping me for review. Thanks. |
@AakashGfude this looks sticky now 👍 What do you think? I suspect @jstac will prefer the non-sticky version but it is nice that our theme can support this option. |
@jstac this PR enables the RHS within page contents to stay visible in the margin https://64546294cce6883938fb185c--hungry-lovelace-7d0512.netlify.app/python_by_example.html Let me know your thoughts on this? I am in two minds - I like the clean view of it just being at the top (i.e. not sticky) but it can be handy to navigated within the page with it available all the time. |
Thanks @mmcky. This looks good now. Yes, I think by default we should keep it non-sticky. Good to have the option. |
Fixes #133
The page TOC will now highlight as the user scrolls.
A config option is required to activate the sticky feature and highlighting functionality. This defaults to
False
where the page TOC is not sticky.Screen.Recording.2021-06-22.at.4.04.08.pm.mov