From 21b3eb48048e6d2caeb04436f0a3806d9858bc20 Mon Sep 17 00:00:00 2001 From: Ask Solem Date: Tue, 22 Mar 2016 11:35:52 -0700 Subject: [PATCH] [docs] Adds Intersphinx --- docs/conf.py | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/docs/conf.py b/docs/conf.py index 5acc1c93..5690e38a 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -12,15 +12,22 @@ import kombu # noqa from django.conf import settings # noqa if not settings.configured: settings.configure() +try: + from django import setup as django_setup +except ImportError: + pass +else: + django_setup() # General configuration # --------------------- extensions = [ 'sphinx.ext.autodoc', + 'sphinx.ext.intersphinx', 'sphinx.ext.coverage', 'sphinx.ext.viewcode', - 'sphinx.ext.intersphinx', + 'sphinx.ext.pngmath', ] # Add any paths that contain templates here, relative to this directory. @@ -81,6 +88,18 @@ html_sidebars = { intersphinx_mapping = { 'python': ('http://docs.python.org/dev', None), + 'celery': ('http://docs.celeryproject.org/en/lataest', None), + 'djcelery': ('http://django-celery.readthedocs.org/en/latest', None), + 'cyme': ('http://cyme.readthedocs.org/en/latest', None), 'amqp': ('http://amqp.readthedocs.org/en/latest', None), 'vine': ('http://vine.readthedocs.org/en/latest', None), + 'redis': ('http://redis-py.readthedocs.org/en/latest', None), + 'django': ('http://django.readthedocs.org/en/latest', None), + 'boto': ('http://boto.readthedocs.org/en/latest', None), + 'sqlalchemy': ('http://sqlalchemy.readthedocs.org/en/latest', None), + 'kazoo': ('http://kazoo.readthedocs.org/en/latest', None), + 'pyzmq': ('http://pyzmq.readthedocs.org/en/latest', None), + 'msgpack': ('http://pythonhosted.org/msgpack-python/', None), + 'sphinx': ('http://www.sphinx-doc.org/en/stable/', None), } +