summaryrefslogtreecommitdiff
path: root/docs/source/conf.py
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2017-08-16 11:07:52 -0700
committerDylan Baker <dylan@pnwbakers.com>2017-08-16 11:24:33 -0700
commit6d20c4ae8f1130bd29b14ea52014b394e0a1c4a4 (patch)
treea10dea292e9834e00368e134cd0ce85ef2c8e8d3 /docs/source/conf.py
parent8ceb87c911fbfa010e4a9bf1ad098f4b632724d1 (diff)
settings: Load spec file even if config file is undefined.
This is necessary even if the config file is None to ensure that the spec file is loaded Also mock out the setting.const module in the docs, otherwise they'll fail to generate. Fixes #1094
Diffstat (limited to 'docs/source/conf.py')
-rw-r--r--docs/source/conf.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/docs/source/conf.py b/docs/source/conf.py
index e096cc89..6a822a7f 100644
--- a/docs/source/conf.py
+++ b/docs/source/conf.py
@@ -36,7 +36,8 @@ MOCK_MODULES = ['twisted', 'twisted.internet',
'gpg',
'configobj',
'validate',
- 'argparse']
+ 'argparse',
+ 'alot.settings.const']
MOCK_DIRTY = ['notmuch']
for mod_name in MOCK_MODULES:
sys.modules[mod_name] = MockModule()