I am working on implementing a custom programming language, and am inspired by documentation examples from the web:
You'll notice that the navigation on all of these has nesting, but it appears only 3 levels deep max. I've noticed this I think across many other examples. Rust has a flat URL structure, but Vercel nests the URLs https://vercel.com/docs/concepts/observability/monitoring
.
I am working on a "book" for this custom language, and there is a lot to it. It is sort of like Ruby on Rails for all intents and purposes. (Rails guides are also flat).
I have so far only had to go 3 levels deep, but I can imagine going 4, 5, or even 6 levels deep. You can imagine how the Jewish Bible is organized as Tanakh > Torah > Genesis > Chapter > Verse
. This can also be part of a greater collection, making 6 layers.
How would you show this up-to-6-layer navigation in the sidebar, as nesting the list items won't work. Would you hide some of it based on context, or what would you do to create a good UX? I like just having it on the left and the chapter/page on the right, but you can offer suggestions on how to change that if you'd like too. Mainly wondering how to organize the nav to handle deeper nesting.