# Change depth of sidebar in Documenter

**URL:** <https://discourse.julialang.org/t/change-depth-of-sidebar-in-documenter/5317>\
**Category:** General Usage\
**Tags:** documenter\
**Created:** [August 10, 2017, 10:15am UTC](https://discourse.julialang.org/t/change-depth-of-sidebar-in-documenter/5317 "2017-08-10T10:15:22Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Diego\_Javier\_Zea](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/diego_javier_zea/32/1858_2.png) [@Diego\_Javier\_Zea](https://discourse.julialang.org/u/Diego_Javier_Zea)\
**Post date:** [August 10, 2017, 10:15am UTC](https://discourse.julialang.org/t/change-depth-of-sidebar-in-documenter/5317/1 "2017-08-10T10:15:22Z")

</div>

The sidebar of documenter has depth equal to 2 (that’s the default) and I want to set the depth of that menu to 3. How can I do that?  
Best regards

---

<div class="post-metadata">

**Author:** ![mortenpi](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mortenpi/32/158_2.png) [@mortenpi](https://discourse.julialang.org/u/mortenpi)\
**Post date:** [August 12, 2017, 7:48pm UTC](https://discourse.julialang.org/t/change-depth-of-sidebar-in-documenter/5317/2 "2017-08-12T19:48:22Z")

</div>

In principle Documenter renders trees of arbitrary depth in the sidebar. Just the stylesheet only indents the first and second sublevel – third and higher have the same margin as the second sublevel. This was a design decision, since otherwise those menu items would be too far to the right and not wide enough.

I don’t think going beyond three levels would generally be good for readability, so I would suggest trying to organize the docs within this constraint. Three levels of nesting (+ the headings within a page) _should be_ enough to have nicely organized docs that are easy to navigate.

---

<div class="post-metadata">

**Author:** ![bmxam](https://avatars.discourse-cdn.com/v4/letter/b/b38774/32.png) [@bmxam](https://discourse.julialang.org/u/bmxam)\
**Post date:** [December 18, 2020, 8:10pm UTC](https://discourse.julialang.org/t/change-depth-of-sidebar-in-documenter/5317/3 "2020-12-18T20:10:27Z")

</div>

What if we want the opposite : to ignore (=hide) third level headers in the sidebar? Is there any setting for that?

---

<div class="post-metadata">

**Author:** ![mortenpi](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mortenpi/32/158_2.png) [@mortenpi](https://discourse.julialang.org/u/mortenpi)\
**Post date:** [December 21, 2020, 10:03pm UTC](https://discourse.julialang.org/t/change-depth-of-sidebar-in-documenter/5317/4 "2020-12-21T22:03:00Z")

</div>

@bmxam: We do have [the `hide` function](https://juliadocs.github.io/Documenter.jl/stable/lib/public/#Documenter.hide), which might help you.

---

<div class="post-metadata">

**Author:** ![scheinerman](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/scheinerman/32/35303_2.png) [@scheinerman](https://discourse.julialang.org/u/scheinerman)\
**Post date:** [September 3, 2024, 1:44pm UTC](https://discourse.julialang.org/t/change-depth-of-sidebar-in-documenter/5317/5 "2024-09-03T13:44:49Z")

</div>

This is my exact question. I want one additional level in the sidebar table of contents. Was a solution found? Thanks!
