conf.py 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  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_TRANSPORT="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. 'sphinxcontrib.issuetracker',
  29. 'celerydocs']
  30. # Add any paths that contain templates here, relative to this directory.
  31. templates_path = ['.templates']
  32. # The suffix of source filenames.
  33. source_suffix = '.rst'
  34. # The master toctree document.
  35. master_doc = 'index'
  36. # General information about the project.
  37. project = u'Celery'
  38. copyright = u'2009-2011, Ask Solem & Contributors'
  39. # The version info for the project you're documenting, acts as replacement for
  40. # |version| and |release|, also used in various other places throughout the
  41. # built documents.
  42. #
  43. # The short X.Y version.
  44. version = ".".join(map(str, celery.VERSION[0:2]))
  45. # The full version, including alpha/beta/rc tags.
  46. release = celery.__version__
  47. exclude_trees = ['.build']
  48. # If true, '()' will be appended to :func: etc. cross-reference text.
  49. add_function_parentheses = True
  50. # The name of the Pygments (syntax highlighting) style to use.
  51. pygments_style = 'trac'
  52. # Add any paths that contain custom static files (such as style sheets) here,
  53. # relative to this directory. They are copied after the builtin static files,
  54. # so a file named "default.css" will overwrite the builtin "default.css".
  55. html_static_path = ['.static']
  56. html_use_smartypants = True
  57. # If false, no module index is generated.
  58. html_use_modindex = True
  59. # If false, no index is generated.
  60. html_use_index = True
  61. latex_documents = [
  62. ('index', 'Celery.tex', ur'Celery Documentation',
  63. ur'Ask Solem & Contributors', 'manual'),
  64. ]
  65. html_theme = "celery"
  66. html_theme_path = ["_theme"]
  67. html_sidebars = {
  68. 'index': ['sidebarintro.html', 'sourcelink.html', 'searchbox.html'],
  69. '**': ['sidebarlogo.html', 'relations.html',
  70. 'sourcelink.html', 'searchbox.html'],
  71. }
  72. ### Issuetracker
  73. issuetracker = "github"
  74. issuetracker_user = "ask"
  75. issuetracker_project = "celery"
  76. issuetracker_issue_pattern = r'[Ii]ssue #(\d+)'