You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by tv...@apache.org on 2013/04/24 06:54:52 UTC

[47/50] [abbrv] git commit: Mock out matplotlib for readthedocs

Mock out matplotlib for readthedocs

Signed-off-by: Tim Van Steenburgh <tv...@gmail.com>


Project: http://git-wip-us.apache.org/repos/asf/incubator-allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-allura/commit/c542db28
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/c542db28
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/c542db28

Branch: refs/heads/tv/docs
Commit: c542db28a9eb1462532db9ecfa26fdb691f3601a
Parents: 2829f47
Author: Tim Van Steenburgh <tv...@gmail.com>
Authored: Tue Apr 16 02:40:48 2013 +0000
Committer: Tim Van Steenburgh <tv...@gmail.com>
Committed: Tue Apr 23 23:39:22 2013 -0400

----------------------------------------------------------------------
 Allura/docs/conf.py |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/c542db28/Allura/docs/conf.py
----------------------------------------------------------------------
diff --git a/Allura/docs/conf.py b/Allura/docs/conf.py
index cd227ca..5f2d6cb 100644
--- a/Allura/docs/conf.py
+++ b/Allura/docs/conf.py
@@ -29,6 +29,14 @@
 # serve to show the default.
 
 import sys, os
+import mock
+
+MOCK_MODULES = ['matplotlib', 'matplotlib.axes',
+        'matplotlib.backends', 'matplotlib.backends.backend_agg',
+        'matplotlib.figure', 'matplotlib.patches']
+
+for mod_name in MOCK_MODULES:
+    sys.modules[mod_name] = mock.Mock()
 
 # 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
@@ -54,7 +62,7 @@ source_suffix = '.rst'
 master_doc = 'index'
 
 # General information about the project.
-project = 'Apache Allura'
+project = 'Apache Allura (incubating)'
 copyright = '2012-2013 The Apache Software Foundation'
 
 # The version info for the project you're documenting, acts as replacement for