I would like to have a dynamics directory for my handbook on the right sidebar. I have found some themes where they have already been implemented. https://themes.gohugo.io/theme/material-docs/adding-content/
Unfortunately, I do not know how to install the dynamic table of contents. The documentation is not revealing. My question is: how do I implement such a table of contents?
Note: I am not a theme developer, and have little experience with actually implementing dynamic TOC highlighting.
From what you have told me in a private message, you have apparently implemented your own theme on your website from the ground up too. I am not sure if you want to pull in Bootstrap at all. Anyhow, here are some random links that I found which might be helpful to you:
And, if @digitalcraftsman has time, he would be the better person to ask because he ported Material Docs theme and changed the scrollspy functionality afterall.