public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Karolina Surma <ksurma@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/qemu] eln: Use the default Sphinx theme for documentation
Date: Fri, 13 Nov 2026 18:34:34 GMT	[thread overview]
Message-ID: <179459487447.1.1258341080814401310.rpms-qemu-a9d92c51e18f@fedoraproject.org> (raw)

            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}

                 reply	other threads:[~2026-11-13 18:34 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179459487447.1.1258341080814401310.rpms-qemu-a9d92c51e18f@fedoraproject.org \
    --to=ksurma@redhat.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox