public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/qemu] eln: Use the default Sphinx theme for documentation
@ 2026-11-13 18:34 Karolina Surma
  0 siblings, 0 replies; only message in thread
From: Karolina Surma @ 2026-11-13 18:34 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/qemu
            Branch : eln
            Commit : a9d92c51e18f727c587bb931dceadc586e68ae6b
            Author : Karolina Surma <ksurma@redhat.com>
            Date   : 2026-11-13T09:31:36+01:00
            Stats  : +10/-2 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/qemu/c/a9d92c51e18f727c587bb931dceadc586e68ae6b?branch=eln

            Log:
            Use the default Sphinx theme for documentation

python-sphinx_rtd_theme is unwanted in RHEL:
https://github.com/fedora-eln/eln/issues/657

The documentation built with the default theme is equivalent to the one
with the rtd. There is one difference: footer containing license
information is no longer present. The file with license itself is built
and linked from the ToC, so it's still easily reachable.

---
diff --git a/qemu.spec b/qemu.spec
index a5d11a8..0aaf7d3 100644
--- a/qemu.spec
+++ b/qemu.spec
@@ -229,7 +229,6 @@ BuildRequires: usbredir-devel >= %{usbredir_version}
 %endif
 BuildRequires: texinfo
 BuildRequires: python3-sphinx
-BuildRequires: python3-sphinx_rtd_theme
 BuildRequires: libseccomp-devel >= %{libseccomp_version}
 # For network block driver
 BuildRequires: libcurl-devel
@@ -540,7 +539,16 @@ This package provides the additional D-Bus audio driver for QEMU.
 %prep
 %setup -q -n qemu-%{version}%{?rcstr}
 %autopatch -p1
-sed -i -e '/"wheel"/d' pythondeps.toml
+sed -i -e '/"wheel"/d' -e '/^sphinx_rtd_theme = /d' pythondeps.toml
+# Use the default Sphinx theme instead of sphinx_rtd_theme; drop its
+# theme-specific options, CSS/JS and the footer template extending rtd's footer
+sed -i -e '/^# a list of builtin themes\./,/^    )$/{/^#/!d}' \
+       -e "/^html_theme = 'sphinx_rtd_theme'/d" \
+       -e '/^html_theme_options = {$/,/^}$/d' \
+       -e '/^html_css_files = \[$/,/^\]$/d' \
+       -e '/^html_js_files = \[$/,/^\]$/d' \
+       -e '/^templates_path = /d' \
+       docs/conf.py
 
 %global qemu_kvm_build qemu_kvm_build
 mkdir -p %{qemu_kvm_build}

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-13 18:34 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-13 18:34 [rpms/qemu] eln: Use the default Sphinx theme for documentation Karolina Surma

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox