Nbdev: how to get those toggle menus in the docs like in fastai

Still new to nbdev but I’ve gone through the tutorials and haven’t seen this. On the https://docs.fast.ai page, I notice there are nice toggle menus that I don’t see on the nbdev docs, and I don’t see in the tutorials. I’ve poked around on the fastai notebooks in the nbs folder, and can’t find anything that would produce those. Is there an example for setting this up?

thanks!

It requires using a custom sidebar. You can look at fastai’s for inspiration: https://github.com/fastai/fastai/blob/master/docs_src/sidebar.json

1 Like