allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tvansteenbu...@apache.org
Subject git commit: Mock out matplotlib for readthedocs
Date Tue, 16 Apr 2013 02:41:03 GMT
Updated Branches:
  refs/heads/tv/docs e0834e267 -> 39c6ff2e5


Mock out matplotlib for readthedocs

Signed-off-by: Tim Van Steenburgh <tvansteenburgh@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/39c6ff2e
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/39c6ff2e
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/39c6ff2e

Branch: refs/heads/tv/docs
Commit: 39c6ff2e5f90a8f48e57f9de67a702ddc3d652f5
Parents: e0834e2
Author: Tim Van Steenburgh <tvansteenburgh@gmail.com>
Authored: Tue Apr 16 02:40:48 2013 +0000
Committer: Tim Van Steenburgh <tvansteenburgh@gmail.com>
Committed: Tue Apr 16 02:40:48 2013 +0000

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


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/39c6ff2e/Allura/docs/conf.py
----------------------------------------------------------------------
diff --git a/Allura/docs/conf.py b/Allura/docs/conf.py
index 2525f46..4785577 100644
--- a/Allura/docs/conf.py
+++ b/Allura/docs/conf.py
@@ -12,6 +12,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
@@ -37,7 +45,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


Mime
View raw message