-
Notifications
You must be signed in to change notification settings - Fork 906
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
Bootstrap scrollspy for in-page TOC #281
Comments
Have you tried this? https://getbootstrap.com/docs/4.0/components/scrollspy/#via-javascript |
Trying it. I'm adding the following to body-end.html in the theme (partial/hooks/body-end.html):
Still doesn't seem to work. Should I expect an active class to be added to each toc entry? Or should it work out of the box (in which case I'd expect the TOC entry to be highlighted as I scroll)? Thanks! |
Couldn't get the Bootstrap scrollspy to work, but the following code does the job. Add it to body-end.html and don't forget to add some styling to the activeToc class.
|
Hi
Has anyone managed to implement Bootstrap scrollspy with the right (in-page) toc generated by Docsy? If so, can you help me with some instructions cause I'm not managing to get it to work.
Here's the link to the Bootstrap scrollspy I'm trying to implement:
https://getbootstrap.com/docs/4.0/components/scrollspy/
Thanks!
The text was updated successfully, but these errors were encountered: