[lmiwbem] doc: switch to rtd theme

Peter Hatina phatina at fedoraproject.org
Wed Oct 29 11:48:28 UTC 2014


commit 8ceaeffeb0ab31fab27a988847e1c26bfd54dd0e
Author: Peter Hatina <phatina at redhat.com>
Date:   Wed Oct 29 10:50:46 2014 +0100

    doc: switch to rtd theme

 lmiwbem-01-rtd-theme.patch |   31 +++++++++++++++++++++++++++++++
 lmiwbem.spec               |    9 +++++++--
 2 files changed, 38 insertions(+), 2 deletions(-)
---
diff --git a/lmiwbem-01-rtd-theme.patch b/lmiwbem-01-rtd-theme.patch
new file mode 100644
index 0000000..a47e0fe
--- /dev/null
+++ b/lmiwbem-01-rtd-theme.patch
@@ -0,0 +1,31 @@
+diff --git a/doc/src/conf.py b/doc/src/conf.py
+index b00a1b1..8ab1bf1 100644
+--- a/doc/src/conf.py
++++ b/doc/src/conf.py
+@@ -4,6 +4,7 @@
+ 
+ import os
+ import sys
++import sphinx_rtd_theme
+ 
+ # If extensions (or modules to document with autodoc) are in another directory,
+ # add these directories to sys.path here. If the directory is relative to the
+@@ -93,7 +94,7 @@ pygments_style = 'sphinx'
+ 
+ # The theme to use for HTML and HTML Help pages.  See the documentation for
+ # a list of builtin themes.
+-html_theme = 'openlmitheme'
++html_theme = 'sphinx_rtd_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
+@@ -101,7 +102,7 @@ html_theme = 'openlmitheme'
+ #html_theme_options = {}
+ 
+ # Add any paths that contain custom themes here, relative to this directory.
+-#html_theme_path = []
++html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
+ 
+ # The name for this set of Sphinx documents.  If None, it defaults to
+ # "<project> v<release> documentation".
+
diff --git a/lmiwbem.spec b/lmiwbem.spec
index ae90048..1a7f601 100644
--- a/lmiwbem.spec
+++ b/lmiwbem.spec
@@ -1,17 +1,18 @@
 Name:           lmiwbem
 Version:        0.4.0
-Release:        1%{?dist}
+Release:        2%{?dist}
 Summary:        Python WBEM Client
 License:        LGPLv2+
 URL:            https://github.com/phatina/lmiwbem
 Source0:        https://github.com/phatina/lmiwbem/releases/download/%{name}-%{version}/%{name}-%{version}.tar.gz
+Patch0:         lmiwbem-01-rtd-theme.patch
 
 BuildRequires:  autoconf
 BuildRequires:  automake
 BuildRequires:  libtool
 BuildRequires:  python-devel
 BuildRequires:  python-sphinx
-BuildRequires:  python-sphinx-theme-openlmi
+BuildRequires:  python-sphinx_rtd_theme
 BuildRequires:  boost-devel >= 1.50.0
 BuildRequires:  boost-python >= 1.50.0
 BuildRequires:  openslp-devel
@@ -35,6 +36,7 @@ Group:          Documentation
 
 %prep
 %setup -q -n %{name}-%{version}
+%patch0 -p1 -b .rtd
 
 %build
 %configure --with-doc=yes
@@ -53,6 +55,9 @@ find %{buildroot} -name '*.la' | xargs rm -f
 %{_docdir}/%{name}-%{version}/html
 
 %changelog
+* Wed Oct 29 2014 Peter Hatina <phatina at redhat.com> - 0.4.0-2
+- doc: switch to rtd theme
+
 * Wed Oct 29 2014 Peter Hatina <phatina at redhat.com> - 0.4.0-1
 - upgrade to 0.4.0
 


More information about the scm-commits mailing list