[pysph] 02/09: Disable using napoleon sphinx module.

Anton Gladky gladk at moszumanska.debian.org
Sun Jun 7 07:32:21 UTC 2015


This is an automated email from the git hooks/post-receive script.

gladk pushed a commit to branch master
in repository pysph.

commit 54eddc859ee1b07b89278c99ce0e2ecb8b5b23b4
Author: Anton Gladky <gladk at debian.org>
Date:   Sat Jun 6 22:58:20 2015 +0200

    Disable using napoleon sphinx module.
---
 debian/patches/10_remove_sphinx_module.patch | 42 ++++++++++++++++++++++++++++
 debian/patches/series                        |  1 +
 2 files changed, 43 insertions(+)

diff --git a/debian/patches/10_remove_sphinx_module.patch b/debian/patches/10_remove_sphinx_module.patch
new file mode 100644
index 0000000..d8bc77b
--- /dev/null
+++ b/debian/patches/10_remove_sphinx_module.patch
@@ -0,0 +1,42 @@
+Description: Remove napoleon sphinx module.
+ Fixes doc generation with sphinx < 1.3.1
+Author: Anton Gladky <gladk at debian.org>
+Last-Update: 2015-06-06
+
+Index: pysph-0~20150606.gitfa26de9/docs/source/conf.py
+===================================================================
+--- pysph-0~20150606.gitfa26de9.orig/docs/source/conf.py
++++ pysph-0~20150606.gitfa26de9/docs/source/conf.py
+@@ -15,7 +15,6 @@ import sys
+ import os
+ from os.path import join
+ 
+-
+ # 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
+ # documentation root, use os.path.abspath to make it absolute, like shown here.
+@@ -29,14 +28,10 @@ from os.path import join
+ # Add any Sphinx extension module names here, as strings. They can be extensions
+ # coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
+ extensions = ['sphinx.ext.autodoc', 'sphinx.ext.pngmath', 'sphinx.ext.mathjax',
+-'sphinx.ext.viewcode', 'sphinx.ext.napoleon']
++'sphinx.ext.viewcode']
+ 
+ autodoc_default_flags = ['show-inheritance']
+ autoclass_content = "both"
+-napoleon_google_docstring = True
+-napoleon_numpy_docstring = True
+-napoleon_include_private_with_doc = False
+-napoleon_include_special_with_doc = True
+ 
+ # Add any paths that contain templates here, relative to this directory.
+ templates_path = ['_templates']
+@@ -101,7 +96,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 = 'sphinx_rtd_theme'
++html_theme = 'default'
+ 
+ # 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
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..242e870
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+10_remove_sphinx_module.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/pysph.git



More information about the debian-science-commits mailing list