diff --git a/docs/_templates/page.html b/docs/_templates/page.html index 0fbfdf7d..2cfb02b5 100644 --- a/docs/_templates/page.html +++ b/docs/_templates/page.html @@ -1,201 +1,221 @@ {% extends "base.html" %} {% block body -%} - {{ super() }} - {% include "partials/icons.html" %} +{{ super() }} +{% include "partials/icons.html" %} - - - - + + + + - {% if theme_announcement -%} -
- + + {%- trans -%} + Skip to content + {%- endtrans -%} + + +{% if theme_announcement -%} +
+ +
+{%- endif %} + +
+
+
+
- {%- endif %} + +
+
+ +
+ +
+
+ +
+
+
+ + + + + {% trans %}Back to top{% endtrans %} + +
+ {% if theme_top_of_page_button != "edit" -%} + {{ warning("Got configuration for 'top_of_page_button': this is deprecated.") }} + {%- endif -%} -
-
-
- -
- -
-
- -
- -
-
- -
-
-
- - - - - {% trans %}Back to top{% endtrans %} - -
- {% if theme_top_of_page_button == "edit" -%} - {%- include "components/edit-this-page.html" with context -%} - {%- elif theme_top_of_page_button != None -%} - {{ warning("Got an unsupported value for 'top_of_page_button'") }} + {%- if theme_top_of_page_buttons == "" -%} + {% if theme_top_of_page_button == None -%} + {#- We respect the old configuration of disabling all the buttons -#} + {%- set theme_top_of_page_buttons = [] -%} + {% else %} + {%- set theme_top_of_page_buttons = ["view", "edit"] -%} {%- endif -%} + {% else -%} + {% if theme_top_of_page_button != "edit" -%} + {%- set theme_top_of_page_buttons = [] -%} + {{ warning("Got configuration for both 'top_of_page_button' and 'top_of_page_buttons', ignoring both and removing all top of page buttons.") }} + {%- endif -%} + {%- endif -%} + {% for button in theme_top_of_page_buttons -%} + {% if button == "view" %} + {%- include "components/view-this-page.html" with context -%} + {% elif button == "edit" %} + {%- include "components/edit-this-page.html" with context -%} + {% else %} + {{ warning("Got an unsupported value in 'top_of_page_buttons' for theme configuration") }} + {% endif %} + {%- endfor -%} {#- Theme toggle -#} -
- -
- +
+
-
- {% block content %}{{ body }}{% endblock %} -
+
- +
+ {% block content %}{{ body }}{% endblock %} +
- + {%- endif %} + {%- if last_updated -%} +
+ {% trans last_updated=last_updated|e -%} + Last updated on {{ last_updated }} + {%- endtrans -%} +
+ {%- endif %} +
+
+ {% if theme_footer_icons or READTHEDOCS -%} +
+ {% if theme_footer_icons -%} + {% for icon_dict in theme_footer_icons -%} + + {{- icon_dict.html -}} + + {% endfor %} + {%- else -%} + {#- Show Read the Docs project -#} + {%- if READTHEDOCS and slug -%} + + + + + + {%- endif -%} + {#- Show GitHub repository home -#} + {%- if READTHEDOCS and display_github and github_user != "None" and github_repo != "None" -%} + + + + + + {%- endif -%} + {%- endif %} +
+ {%- endif %} +
+
+ {% endblock footer %} +
+
+
{%- endblock %} diff --git a/pyproject.toml b/pyproject.toml index 8d0fd9b9..ce5cd894 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -85,7 +85,7 @@ dev = [ "typogrify>=2.1.0", "sphinx>=7.1.2", "sphinxext-opengraph>=0.9.0", - "furo==2023.9.10", + "furo==2025.9.25", "livereload>=2.6.3", "psutil>=5.9.6", "pygments>=2.16.1,<2.20.0",