-
Notifications
You must be signed in to change notification settings - Fork 921
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
Interactive right-hand toc #1669
Comments
The right-hand toc in docsy is static, so I don't think it ever becomes active, you'll need some javascript for that. I have an open PR (it hasn't been merged yet) that generates the right-hand toc from javascript and marks the active element, you might want to check it out: #1049 |
Thank you very much! Really appreciated the quick and guided response. I will give it a try :) |
Hmmm... I'm afraid I don't know how to make use of these file... I'm using docsy as a Hugo module, and my understanding is that I need to change where I like to customize. Consequently, I looked at the file affected by the #1049 , and copied them locally (except for the
I'm not sure how to work around this. Would you kindly advise? Many thanks again, |
Sorry for not getting back to you sooner. I forgot that the PR has some differences compared to when you directly use the solution in a project. You don't need to add the main.scss file to your project (because that would completely override the file from the theme), instead you can just add the |
Many thanks, this actually works :) PS: it is quite elegant too, appreciated :) |
Glad that you got it working :D |
Hello,
Thank you for providing this great theme- I'm using it to document a project, and have been getting positive responses.
One feature I like to ask about: is it possible to have the right side navigation (toc) responsive/interactive? I mean, for example, the font becomes bold (or changes color) when the user is reading/ scrolling to a certain section in the page?
I tried to add to the
assests/scss/_sidebar-toc.scss
file this content:(inspired by how the hover behavior seems programmed), but that did not work.
Any pointer for what to edit/add are highly appreciated.
Many thanks in advance,
Azza
The text was updated successfully, but these errors were encountered: