From 50b319f370f78029500ccee78bd05aa9c0213fc5 Mon Sep 17 00:00:00 2001 From: deltamarnix Date: Thu, 25 Sep 2025 21:06:55 +0200 Subject: [PATCH] Fix navigation bar layout Version switcher is in front, just like in the theme docs itself: https://pydata-sphinx-theme.readthedocs.io/en/stable/user_guide/layout.html --- docs/conf.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index 139f2306..75579409 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -130,7 +130,7 @@ def remove_dir_content(path: str) -> None: html_css_files = ["theme-deltares.css"] html_theme_options = { "show_nav_level": 2, - "navbar_align": "content", + "navbar_align": "left", "use_edit_page_button": True, "icon_links": [ { @@ -161,7 +161,8 @@ def remove_dir_content(path: str) -> None: "logo": { "text": "HydroMT Wflow", }, - "navbar_end": ["navbar-icon-links", "version-switcher"], # remove dark mode switch + "navbar_center": ["version-switcher", "navbar-nav"], + "navbar_end": ["navbar-icon-links"], # remove dark mode switch "switcher": { "json_url": "https://raw.githubusercontent.com/Deltares/hydromt_wflow/gh-pages/switcher.json", "version_match": doc_version,}