123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157 |
- import sys
- import os
- this = os.path.dirname(os.path.abspath(__file__))
- sys.path.insert(0, os.path.join(this, os.pardir))
- sys.path.append(os.path.join(this, '_ext'))
- import celery
- extensions = ['sphinx.ext.autodoc',
- 'sphinx.ext.coverage',
- 'sphinx.ext.pngmath',
- 'sphinx.ext.viewcode',
- 'sphinx.ext.coverage',
- 'sphinx.ext.intersphinx',
- 'celery.contrib.sphinx',
- 'githubsphinx',
- 'celerydocs']
- LINKCODE_URL = 'http://github.com/{proj}/tree/{branch}/{filename}.py'
- GITHUB_PROJECT = 'celery/celery'
- 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,
- )
- html_show_sphinx = False
- templates_path = ['.templates']
- source_suffix = '.rst'
- master_doc = 'index'
- project = 'Celery'
- copyright = '2009-2013, Ask Solem & Contributors'
- version = '.'.join(map(str, celery.VERSION[0:2]))
- release = celery.__version__
- exclude_trees = ['.build']
- add_function_parentheses = True
- intersphinx_mapping = {
- 'python': ('http://docs.python.org/dev', None),
- 'kombu': ('http://kombu.readthedocs.org/en/latest/', 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),
- }
- pygments_style = 'colorful'
- html_static_path = ['.static']
- html_use_smartypants = True
- add_module_names = True
- highlight_language = 'python3'
- html_use_modindex = True
- html_use_index = True
- latex_documents = [
- ('index', 'Celery.tex', 'Celery Documentation',
- 'Ask Solem & Contributors', 'manual'),
- ]
- html_theme = 'celery'
- html_theme_path = ['_theme']
- html_sidebars = {
- 'index': ['sidebarintro.html', 'sourcelink.html', 'searchbox.html'],
- '**': ['sidebarlogo.html', 'relations.html',
- 'sourcelink.html', 'searchbox.html'],
- }
- github_project = 'celery/celery'
- epub_title = 'Celery Manual, Version {0}'.format(version)
- epub_author = 'Ask Solem'
- epub_publisher = 'Celery Project'
- epub_copyright = '2009-2013'
- epub_language = 'en'
- epub_scheme = 'ISBN'
- epub_identifier = 'celeryproject.org'
- epub_uid = 'Celery Manual, Version {0}'.format(version)
- epub_exclude_files = ['search.html']
- epub_tocdepth = 3
|