2010-07-23 12:43:33 +00:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
|
|
|
|
import sys
|
|
|
|
import os
|
|
|
|
|
|
|
|
# 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.
|
2016-03-21 22:47:07 +00:00
|
|
|
sys.path.append(os.path.join(os.pardir, 'tests'))
|
2015-10-03 01:00:30 +00:00
|
|
|
import kombu # noqa
|
2010-07-23 12:43:33 +00:00
|
|
|
|
2015-10-03 01:00:30 +00:00
|
|
|
from django.conf import settings # noqa
|
2012-01-09 16:50:12 +00:00
|
|
|
if not settings.configured:
|
|
|
|
settings.configure()
|
2016-03-22 18:35:52 +00:00
|
|
|
try:
|
|
|
|
from django import setup as django_setup
|
|
|
|
except ImportError:
|
|
|
|
pass
|
|
|
|
else:
|
|
|
|
django_setup()
|
2012-01-09 16:50:12 +00:00
|
|
|
|
2010-07-23 12:43:33 +00:00
|
|
|
# General configuration
|
|
|
|
# ---------------------
|
|
|
|
|
2016-03-02 21:46:56 +00:00
|
|
|
extensions = [
|
|
|
|
'sphinx.ext.autodoc',
|
2016-03-22 18:35:52 +00:00
|
|
|
'sphinx.ext.intersphinx',
|
2016-03-02 21:46:56 +00:00
|
|
|
'sphinx.ext.coverage',
|
|
|
|
'sphinx.ext.viewcode',
|
2016-03-22 18:35:52 +00:00
|
|
|
'sphinx.ext.pngmath',
|
2016-04-06 19:10:40 +00:00
|
|
|
'githubsphinx',
|
2016-03-02 21:46:56 +00:00
|
|
|
]
|
2010-07-23 12:43:33 +00:00
|
|
|
|
2016-04-06 19:14:30 +00:00
|
|
|
LINKCODE_URL = 'https://github.com/{proj}/tree/{branch}/{filename}.py'
|
|
|
|
GITHUB_PROJECT = 'celery/kombu'
|
|
|
|
GITHUB_BRANCH = 'master'
|
|
|
|
|
|
|
|
|
|
|
|
def linkcode_resolve(domain, info):
|
|
|
|
if domain != 'py' or not info['module']:
|
|
|
|
return
|
|
|
|
filename = info['module'].replace('.', '/')
|
|
|
|
return LINKCODE_URL.format(
|
|
|
|
proj=GITHUB_PROJECT,
|
|
|
|
branch=GITHUB_BRANCH,
|
|
|
|
filename=filename,
|
|
|
|
)
|
|
|
|
|
|
|
|
|
2010-07-23 12:43:33 +00:00
|
|
|
# Add any paths that contain templates here, relative to this directory.
|
|
|
|
templates_path = ['.templates']
|
|
|
|
|
|
|
|
# The suffix of source filenames.
|
|
|
|
source_suffix = '.rst'
|
|
|
|
|
|
|
|
# The master toctree document.
|
|
|
|
master_doc = 'index'
|
|
|
|
|
|
|
|
# General information about the project.
|
2013-09-10 16:26:12 +00:00
|
|
|
project = 'Kombu'
|
2016-01-12 19:48:10 +00:00
|
|
|
copyright = '2009-2016, Ask Solem'
|
2010-07-23 12:43:33 +00:00
|
|
|
|
|
|
|
# The version info for the project you're documenting, acts as replacement for
|
|
|
|
# |version| and |release|, also used in various other places throughout the
|
|
|
|
# built documents.
|
|
|
|
#
|
|
|
|
# The short X.Y version.
|
2016-03-21 22:47:07 +00:00
|
|
|
version = '.'.join(map(str, kombu.VERSION[0:2]))
|
2010-07-23 12:43:33 +00:00
|
|
|
# The full version, including alpha/beta/rc tags.
|
|
|
|
release = kombu.__version__
|
|
|
|
|
|
|
|
exclude_trees = ['.build']
|
|
|
|
|
|
|
|
# If true, '()' will be appended to :func: etc. cross-reference text.
|
|
|
|
add_function_parentheses = True
|
|
|
|
|
|
|
|
# The name of the Pygments (syntax highlighting) style to use.
|
2012-11-21 16:24:49 +00:00
|
|
|
pygments_style = 'colorful'
|
2010-07-23 12:43:33 +00:00
|
|
|
|
|
|
|
# Add any paths that contain custom static files (such as style sheets) here,
|
|
|
|
# relative to this directory. They are copied after the builtin static files,
|
|
|
|
# so a file named "default.css" will overwrite the builtin "default.css".
|
|
|
|
html_static_path = ['.static']
|
|
|
|
|
|
|
|
html_use_smartypants = True
|
|
|
|
|
|
|
|
# If false, no module index is generated.
|
|
|
|
html_use_modindex = True
|
|
|
|
|
|
|
|
# If false, no index is generated.
|
|
|
|
html_use_index = True
|
|
|
|
|
|
|
|
latex_documents = [
|
2013-09-10 16:26:12 +00:00
|
|
|
('index', 'Kombu.tex', 'Kombu Documentation',
|
|
|
|
'Ask Solem', 'manual'),
|
2010-07-23 12:43:33 +00:00
|
|
|
]
|
|
|
|
|
2016-03-21 22:47:07 +00:00
|
|
|
html_theme = 'celery'
|
|
|
|
html_theme_path = ['_theme']
|
2010-07-23 13:12:49 +00:00
|
|
|
html_sidebars = {
|
|
|
|
'index': ['sidebarintro.html', 'sourcelink.html', 'searchbox.html'],
|
|
|
|
'**': ['sidebarlogo.html', 'localtoc.html', 'relations.html',
|
|
|
|
'sourcelink.html', 'searchbox.html'],
|
|
|
|
}
|
2016-03-02 21:46:56 +00:00
|
|
|
|
2016-04-06 19:10:40 +00:00
|
|
|
# ## Issuetracker
|
|
|
|
|
2016-04-06 19:14:30 +00:00
|
|
|
github_project = GITHUB_PROJECT
|
2016-04-06 19:10:40 +00:00
|
|
|
|
2016-03-02 21:46:56 +00:00
|
|
|
intersphinx_mapping = {
|
|
|
|
'python': ('http://docs.python.org/dev', None),
|
2016-03-30 21:43:38 +00:00
|
|
|
'celery': ('http://docs.celeryproject.org/en/latest', None),
|
2016-03-22 18:35:52 +00:00
|
|
|
'djcelery': ('http://django-celery.readthedocs.org/en/latest', None),
|
|
|
|
'cyme': ('http://cyme.readthedocs.org/en/latest', None),
|
2016-03-02 21:46:56 +00:00
|
|
|
'amqp': ('http://amqp.readthedocs.org/en/latest', None),
|
|
|
|
'vine': ('http://vine.readthedocs.org/en/latest', None),
|
2016-03-22 18:35:52 +00:00
|
|
|
'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),
|
2016-03-02 21:46:56 +00:00
|
|
|
}
|
2016-03-22 18:35:52 +00:00
|
|
|
|