summaryrefslogtreecommitdiffstats
path: root/docs/source/conf.py
diff options
context:
space:
mode:
authorCalum Lind <calumlind+deluge@gmail.com>2014-09-25 13:43:43 +0100
committerCalum Lind <calumlind+deluge@gmail.com>2014-09-25 13:43:43 +0100
commit8dc9a0773cf237033a00a936385257d6481e1715 (patch)
tree0a778849cf4488a5d5ee2260dbe07207eb32208d /docs/source/conf.py
parent72493e6af3a283f6479f554edd3a1372a6be515f (diff)
downloaddeluge-8dc9a0773cf237033a00a936385257d6481e1715.tar.gz
deluge-8dc9a0773cf237033a00a936385257d6481e1715.tar.bz2
deluge-8dc9a0773cf237033a00a936385257d6481e1715.zip
Fixes for building docs
Diffstat (limited to 'docs/source/conf.py')
-rw-r--r--docs/source/conf.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/docs/source/conf.py b/docs/source/conf.py
index fb5c9037b..571a20f47 100644
--- a/docs/source/conf.py
+++ b/docs/source/conf.py
@@ -26,7 +26,7 @@ on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
# If your extensions are in another directory, add it here. If the directory
# is relative to the documentation root, use os.path.abspath to make it
# absolute, like shown here.
-sys.path.append(os.path.abspath(os.path.dirname(__file__ + '../../')))
+sys.path.append(os.path.abspath(os.path.join(os.path.join(os.path.dirname(__file__), os.path.pardir), os.path.pardir)))
class Mock(object):
@@ -51,11 +51,12 @@ class Mock(object):
return Mock()
MOCK_MODULES = ['deluge.ui.languages', 'deluge.ui.countries', 'deluge.ui.gtkui.gtkui',
- 'deluge.libtorrent', 'psyco', 'rencode', 'win32file', 'win32event',
+ 'psyco', 'rencode', 'win32file', 'win32event',
+ 'twisted.web', 'twisted.web.client', 'twisted.web.error',
'win32gui', 'win32api', 'win32con', '_winreg']
if on_rtd:
- MOCK_MODULES += ['libtorrent', 'pytgtk']
+ MOCK_MODULES += ['libtorrent', 'pygtk', "gtk", "gobject", "gtk.gdk", "pango", "cairo", "pangocairo"]
for mod_name in MOCK_MODULES:
sys.modules[mod_name] = Mock()
@@ -108,7 +109,7 @@ today_fmt = '%B %d, %Y'
# List of directories, relative to source directories, that shouldn't be searched
# for source files.
# exclude_dirs = []
-exclude_pattern = ['deluge/_libtorrent.py', 'deluge/__rpcapi.py']
+exclude_patterns = ['deluge/_libtorrent.py', 'deluge/__rpcapi.py']
# The reST default role (used for this markup: `text`) to use for all documents.
# default_role = None