summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Delaney <idella4@gentoo.org>2013-06-10 16:52:59 +0000
committerIan Delaney <idella4@gentoo.org>2013-06-10 16:52:59 +0000
commit33e96925c89f42d1f9afadd51b8a6dd2f2f0fa7c (patch)
treec761f0b926a932e4fc2f5f471e2e7f193c3812fa /dev-python/flask-restless/files/docbuild.patch
parentSplit installation of all data into a new package sci-physics/geant-data, als... (diff)
downloadhistorical-33e96925c89f42d1f9afadd51b8a6dd2f2f0fa7c.tar.gz
historical-33e96925c89f42d1f9afadd51b8a6dd2f2f0fa7c.tar.bz2
historical-33e96925c89f42d1f9afadd51b8a6dd2f2f0fa7c.zip
Updated to accommodate adding dep flask-themes for doc build
Package-Manager: portage-2.1.11.63/cvs/Linux x86_64 Manifest-Sign-Key: 0xB8072B0D
Diffstat (limited to 'dev-python/flask-restless/files/docbuild.patch')
-rw-r--r--dev-python/flask-restless/files/docbuild.patch47
1 files changed, 43 insertions, 4 deletions
diff --git a/dev-python/flask-restless/files/docbuild.patch b/dev-python/flask-restless/files/docbuild.patch
index a23f1e0a074a..7e4c6550f962 100644
--- a/dev-python/flask-restless/files/docbuild.patch
+++ b/dev-python/flask-restless/files/docbuild.patch
@@ -1,10 +1,36 @@
+A number of these settings are simply unworkable in gentoo
diff -ur flask-restless-0.11.0.orig/docs/conf.py flask-restless-0.11.0/docs/conf.py
--- docs/conf.py 2013-05-19 01:50:21.000000000 +0800
-+++ docs/conf.py 2013-06-10 15:44:36.332477943 +0800
-@@ -254,14 +254,6 @@
- ]
++++ docs/conf.py 2013-06-10 23:39:05.741199580 +0800
+@@ -99,7 +99,6 @@
+
+ # The name of the Pygments (syntax highlighting) style to use.
+ #pygments_style = 'sphinx'
+-pygments_style = 'flask_theme_support.FlaskyStyle'
+
+ # A list of ignored prefixes for module index sorting.
+ #modindex_common_prefix = []
+@@ -110,14 +110,11 @@
+ # The theme to use for HTML and HTML Help pages. See the documentation for
+ # a list of builtin themes.
+ #html_theme = 'default'
+-html_theme = 'flask'
++#html_theme = 'flask'
+
+ # 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
+ # documentation.
+-html_theme_options = {
+- 'index_logo': 'flask-restless.png'
+-}
+ # Add any paths that contain custom themes here, relative to this directory.
+ html_theme_path = ['_themes']
+@@ -253,25 +250,12 @@
+ [u'Jeffrey Finkelstein'], 1)
+ ]
+-
-# Example configuration for intersphinx: refer to the Python standard library.
-intersphinx_mapping = {'python': ('http://docs.python.org/', None),
- 'flask': ('http://flask.pocoo.org/docs', None),
@@ -15,4 +41,17 @@ diff -ur flask-restless-0.11.0.orig/docs/conf.py flask-restless-0.11.0/docs/conf
-
# fall back if theme is not there
try:
- __import__('flask_theme_support')
+- __import__('flask_theme_support')
++ from flaskext import themes
++ themes.html_theme = 'flask'
+ except ImportError, e:
+- print '-' * 74
+- print 'Warning: Flask themes unavailable. Building with default theme'
+- print 'If you want the Flask themes, run this command and build again:'
+- print
+- print ' git submodule update --init'
+- print '-' * 74
++ print 'flask theme unavailable'
+
+ pygments_style = 'tango'
+ html_theme = 'default'