diff --git a/swh/docs/sphinx/conf.py b/swh/docs/sphinx/conf.py
index 4c95c6f50a71eb20b99ab3e026deb0a33f6d3dc3..ee8c1c22fdab23f7e55141fae487236258c95230 100755
--- a/swh/docs/sphinx/conf.py
+++ b/swh/docs/sphinx/conf.py
@@ -111,6 +111,7 @@ html_favicon = "_static/favicon.ico"
 #
 html_theme_options = {
     "collapse_navigation": True,
+    "navigation_depth": 5,
     "sticky_navigation": True,
     "titles_only": True,
 }