It’s not something that I’ve tried with Moonrise so it may or may not work, but that’s roughly how to get started there.
You’re all good on posting. Sorry if the earlier reply did not make it through.
You may be able to keep the smooth scrolling with the scrollspy plugin. I would probably disable the smooth scrolling while setting up the scrollspy to cut down on potential conflicts. Then add it back in once the scrollspy works as you want it too. If it works then, you’ll be in good shape.