conf.py 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. # -*- coding: utf-8 -*-
  2. import sys
  3. import os
  4. # eventlet/gevent should not monkey patch anything.
  5. os.environ["GEVENT_NOPATCH"] = "yes"
  6. os.environ["EVENTLET_NOPATCH"] = "yes"
  7. os.environ["CELERY_LOADER"] = "default"
  8. this = os.path.dirname(os.path.abspath(__file__))
  9. # If your extensions are in another directory, add it here. If the directory
  10. # is relative to the documentation root, use os.path.abspath to make it
  11. # absolute, like shown here.
  12. sys.path.append(os.path.join(os.pardir, "tests"))
  13. sys.path.append(os.path.join(this, "_ext"))
  14. import celery
  15. # use app loader
  16. from celery import Celery
  17. app = Celery(set_as_current=True)
  18. app.conf.update(BROKER_URL="memory://",
  19. CELERY_RESULT_BACKEND="cache",
  20. CELERY_CACHE_BACKEND="memory",
  21. CELERYD_HIJACK_ROOT_LOGGER=False,
  22. CELERYD_LOG_COLOR=False)
  23. # General configuration
  24. # ---------------------
  25. extensions = ['sphinx.ext.autodoc',
  26. 'sphinx.ext.coverage',
  27. 'sphinx.ext.pngmath',
  28. 'sphinx.ext.intersphinx',
  29. 'sphinxcontrib.issuetracker',
  30. 'celerydocs']
  31. html_show_sphinx = False
  32. # Add any paths that contain templates here, relative to this directory.
  33. templates_path = ['.templates']
  34. # The suffix of source filenames.
  35. source_suffix = '.rst'
  36. # The master toctree document.
  37. master_doc = 'index'
  38. # General information about the project.
  39. project = u'Celery'
  40. copyright = u'2009-2012, Ask Solem & Contributors'
  41. # The version info for the project you're documenting, acts as replacement for
  42. # |version| and |release|, also used in various other places throughout the
  43. # built documents.
  44. #
  45. # The short X.Y version.
  46. version = ".".join(map(str, celery.VERSION[0:2]))
  47. # The full version, including alpha/beta/rc tags.
  48. release = celery.__version__
  49. exclude_trees = ['.build']
  50. # If true, '()' will be appended to :func: etc. cross-reference text.
  51. add_function_parentheses = True
  52. intersphinx_mapping = {
  53. "http://docs.python.org/dev": None,
  54. "http://kombu.readthedocs.org/en/latest/": None,
  55. "http://django-celery.readthedocs.org/en/latest": None,
  56. }
  57. # The name of the Pygments (syntax highlighting) style to use.
  58. pygments_style = 'trac'
  59. # Add any paths that contain custom static files (such as style sheets) here,
  60. # relative to this directory. They are copied after the builtin static files,
  61. # so a file named "default.css" will overwrite the builtin "default.css".
  62. html_static_path = ['.static']
  63. html_use_smartypants = True
  64. # If false, no module index is generated.
  65. html_use_modindex = True
  66. # If false, no index is generated.
  67. html_use_index = True
  68. latex_documents = [
  69. ('index', 'Celery.tex', ur'Celery Documentation',
  70. ur'Ask Solem & Contributors', 'manual'),
  71. ]
  72. html_theme = "celery"
  73. html_theme_path = ["_theme"]
  74. html_sidebars = {
  75. 'index': ['sidebarintro.html', 'sourcelink.html', 'searchbox.html'],
  76. '**': ['sidebarlogo.html', 'relations.html',
  77. 'sourcelink.html', 'searchbox.html'],
  78. }
  79. ### Issuetracker
  80. if True:
  81. issuetracker = "github"
  82. issuetracker_project = "celery/celery"
  83. issuetracker_issue_pattern = r'[Ii]ssue #(\d+)'
  84. # -- Options for Epub output ---------------------------------------------------
  85. # Bibliographic Dublin Core info.
  86. epub_title = 'Celery Manual, Version 2.6'
  87. epub_author = 'Ask Solem'
  88. epub_publisher = 'Celery Project'
  89. epub_copyright = '2009-2012'
  90. # The language of the text. It defaults to the language option
  91. # or en if the language is not set.
  92. epub_language = 'en'
  93. # The scheme of the identifier. Typical schemes are ISBN or URL.
  94. epub_scheme = 'ISBN'
  95. # The unique identifier of the text. This can be a ISBN number
  96. # or the project homepage.
  97. epub_identifier = 'celeryproject.org'
  98. # A unique identification for the text.
  99. epub_uid = 'Celery Manual, Version 2.6'
  100. # HTML files that should be inserted before the pages created by sphinx.
  101. # The format is a list of tuples containing the path and title.
  102. #epub_pre_files = []
  103. # HTML files shat should be inserted after the pages created by sphinx.
  104. # The format is a list of tuples containing the path and title.
  105. #epub_post_files = []
  106. # A list of files that should not be packed into the epub file.
  107. epub_exclude_files = ['search.html']
  108. # The depth of the table of contents in toc.ncx.
  109. epub_tocdepth = 3