Skip to content

Commit

Permalink
Disable non-local intersphinx until docs.zope.org is fixed.
Browse files Browse the repository at this point in the history
  • Loading branch information
tseaver committed Jan 28, 2015
1 parent dd4c12d commit 8da3613
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions docs/conf.py
Expand Up @@ -372,14 +372,15 @@
'proxy',
'schema',
'security',
# objects.inv not built correctly on docs.zope.org:
# 'structuredtext',
'structuredtext',
]
def _sub_url(pkg):
path = '%s/src/zope.%s/docs/_build/html' % (WHERE, pkg)
if os.path.exists(path):
return 'file://%s/src/zope.%s/docs/_build/html' % (WHERE, pkg)
return 'http://docs.zope.org/zope.%s' % pkg
# Not until docs.zope.org gets updated with objects.inv
#return 'http://docs.zope.org/zope.%s' % pkg

intersphinx_mapping = dict([(pkg, (_sub_url(pkg), None))
for pkg in SUBPACKAGES])
urls = [(pkg, (_sub_url(pkg), None)) for pkg in SUBPACKAGES]
urls = [(pkg, pair) for pkg, pair in urls if pair[0] is not None]
intersphinx_mapping = dict(urls)

0 comments on commit 8da3613

Please sign in to comment.