We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e54e78a commit 3aa07edCopy full SHA for 3aa07ed
docs/conf.py
@@ -29,12 +29,20 @@
29
# Enviroment variable used to code to detect if modules are imported by sphinx
30
os.environ['DOCS_BUILDING'] = "True"
31
32
+# Mock modules
33
+class Mock(MagicMock):
34
+ @classmethod
35
+ def __getattr__(cls, name):
36
+ return MagicMock()
37
+
38
+MOCK_MODULES = ['glfw',]
39
+sys.modules.update((mod_name, Mock()) for mod_name in MOCK_MODULES)
40
41
# Define a settings module
42
os.environ['DEMOSYS_SETTINGS_MODULE'] = 'demosys.conf.default'
43
import demosys
44
demosys.setup()
45
-
46
# Monkey patch sphinx to ignore: WARNING: nonlocal image URI
47
def _warn_node(self, msg, node, **kwargs):
48
if not msg.startswith('nonlocal image URI found:'):
0 commit comments