docs: Update sphinx-rtd-theme to 3.0.2

This commit is contained in:
Wolfgang Walther
2025-05-22 08:07:54 +02:00
parent 91814cd4f8
commit 23a4573a9c
3 changed files with 24 additions and 11 deletions
+1 -1
View File
@@ -114,7 +114,7 @@ html_theme = "sphinx_rtd_theme"
# Theme options are theme-specific and customize the look and feel of a theme # Theme options are theme-specific and customize the look and feel of a theme
# further. For a list of options available for each theme, see the # further. For a list of options available for each theme, see the
# documentation. # documentation.
html_theme_options = {"display_version": False} html_theme_options = {}
# Add any paths that contain custom themes here, relative to this directory. # Add any paths that contain custom themes here, relative to this directory.
# html_theme_path = [] # html_theme_path = []
+1 -1
View File
@@ -2,6 +2,6 @@
sphinx==7.4.7 sphinx==7.4.7
sphinx-copybutton==0.5.2 sphinx-copybutton==0.5.2
sphinx-rtd-dark-mode==1.3.0 sphinx-rtd-dark-mode==1.3.0
sphinx-rtd-theme==2.0.0 sphinx-rtd-theme==3.0.2
sphinx-tabs==3.4.7 sphinx-tabs==3.4.7
sphinxext-opengraph==0.9.1 sphinxext-opengraph==0.9.1
+21 -8
View File
@@ -2,6 +2,7 @@
, aspellDicts , aspellDicts
, buildToolbox , buildToolbox
, checkedShellScript , checkedShellScript
, fetchPypi
, lib , lib
, plantuml , plantuml
, python3 , python3
@@ -10,14 +11,26 @@
, writers , writers
}: }:
let let
selectPythonPackages = ps: [ selectPythonPackages = ps:
ps.sphinx let
ps.sphinx-copybutton # TODO: Remove with next nixpkgs update
ps.sphinx-rtd-dark-mode sphinx-rtd-theme = assert ps.sphinx-rtd-theme.version == "2.0.0"; ps.sphinx-rtd-theme.overrideAttrs rec {
ps.sphinx-rtd-theme version = "3.0.2";
ps.sphinx-tabs src = fetchPypi {
ps.sphinxext-opengraph pname = "sphinx_rtd_theme";
]; inherit version;
hash = "sha256-t0V7wl3acjsgsIamcLmVPIWeq2CioD7o6yuyPhduX4U=";
};
};
in
[
ps.sphinx
ps.sphinx-copybutton
(ps.sphinx-rtd-dark-mode.override { inherit sphinx-rtd-theme; })
sphinx-rtd-theme
ps.sphinx-tabs
ps.sphinxext-opengraph
];
requirements = writeTextFile { requirements = writeTextFile {
name = "requirements.txt"; name = "requirements.txt";