]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
doc: Fix Sphinx warning about theme option 66423/head
authorVille Ojamo <14869000+bluikko@users.noreply.github.com>
Wed, 26 Nov 2025 08:22:17 +0000 (15:22 +0700)
committerVille Ojamo <14869000+bluikko@users.noreply.github.com>
Wed, 26 Nov 2025 09:09:26 +0000 (16:09 +0700)
The Sphinx theme "sphinx_rtd_theme" dropped support for "display_version"
theme option in version 3 (currently used: 3.0.2).

Because the "ceph" theme inherits that theme, remove all references to
"display_version" from it.

Signed-off-by: Ville Ojamo <14869000+bluikko@users.noreply.github.com>
doc/_themes/ceph/layout.html
doc/conf.py

index f89edfe371a81b882abf321f3d48b997a9b54ba1..bf6f39b4449b93671e712542dcbefe2a6119d9a2 100644 (file)
           {% endif %}
           </a>
 
-          {% if theme_display_version %}
-            {%- set nav_version = version %}
-            {% if READTHEDOCS and current_version %}
-              {%- set nav_version = current_version %}
-            {% endif %}
-            {% if nav_version %}
-              <div class="version">
-                {{ nav_version }}
-              </div>
-            {% endif %}
-          {% endif %}
-
           {% include "searchbox.html" %}
 
           {% endblock %}
index 5293ff1b212601274aef972da178b2b4bd5dfec7..21a5902164931268a0195dd5bfe20de2951554b8 100644 (file)
@@ -55,7 +55,6 @@ pygments_style = 'sphinx'
 html_theme = 'ceph'
 html_theme_options = {
     'logo_only': True,
-    'display_version': False,
     'prev_next_buttons_location': 'bottom',
     'style_external_links': False,
     'vcs_pageview_mode': 'edit',