| 1 |
From: Nicolas Dandrimont <[email protected]> |
| 2 |
Date: Thu, 8 Oct 2015 08:41:07 -0700 |
| 3 |
Subject: Move themes to /usr/share |
| 4 |
|
| 5 |
Forwarded: not-needed |
| 6 |
|
| 7 |
Patch-Name: 0001-move-themes-to-usr-share.patch |
| 8 |
--- |
| 9 |
cloud_sptheme/__init__.py | 2 +- |
| 10 |
docs/conf.py | 2 +- |
| 11 |
setup.py | 2 +- |
| 12 |
3 files changed, 3 insertions(+), 3 deletions(-) |
| 13 |
|
| 14 |
diff --git a/cloud_sptheme/__init__.py b/cloud_sptheme/__init__.py |
| 15 |
index 65cdd28..bf6c46a 100644 |
| 16 |
--- a/cloud_sptheme/__init__.py |
| 17 |
+++ b/cloud_sptheme/__init__.py |
| 18 |
@@ -64,7 +64,7 @@ all_exts = std_exts + [ |
| 19 |
_root_dir = os.path.abspath(os.path.dirname(__file__)) |
| 20 |
|
| 21 |
#: root of themes subdir |
| 22 |
|
| 23 |
+_theme_dir = "/usr/share/sphinx/themes" |
| 24 |
|
| 25 |
|
| 26 |
def get_theme_dir(): |
| 27 |
diff --git a/docs/conf.py b/docs/conf.py |
| 28 |
index 190b526..c8537d7 100644 |
| 29 |
--- a/docs/conf.py |
| 30 |
+++ b/docs/conf.py |
| 31 |
@@ -167,7 +167,7 @@ if csp.is_cloud_theme(html_theme): |
| 32 |
# Add any paths that contain custom themes here, relative to this directory. |
| 33 |
if csp.is_cloud_theme(html_theme): |
| 34 |
# so build works even if package isn't installed |
| 35 |
|
| 36 |
+ html_theme_path = [os.path.join(os.path.abspath(os.pardir), "cloud_sptheme", "themes")] |
| 37 |
|
| 38 |
# The name for this set of Sphinx documents. If None, it defaults to |
| 39 |
# "<project> v<release> documentation". |
| 40 |
diff --git a/setup.py b/setup.py |
| 41 |
index a4e86e8..230bacc 100644 |
| 42 |
--- a/setup.py |
| 43 |
+++ b/setup.py |
| 44 |
@@ -27,7 +27,7 @@ opts = dict( |
| 45 |
#================================================================== |
| 46 |
packages=setuptools.find_packages(root_dir), |
| 47 |
package_data={ |
| 48 |
|
| 49 |
+ "cloud_sptheme": ["ext/static/*.*"], |
| 50 |
}, |
| 51 |
zip_safe=False, |
| 52 |
|