Nesting sidebar

I wish to create a nested sidebar as can be seen in https://dev.fast.ai/ where you can click on tutorials for example and it expands to the other tutorials.

I looked at the fastai2 repo structure and assumed that simply doing tutorial.subtutorial.ipynb would be enough, but this didn’t seem to do anything in my repo. Do I need to edit sidebar.json directly to get this behaviour? I could create a PR to introduce this behaviour if it’s not already there.

Side question: is there a reason there is an extra / appearing in my URL above in https://sachinruk.github.io/torchlife//hazard.Cox.

Yes. The fastai docs have a custom sidebar with them. I’d take a look at theirs

1 Like