conf.py 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  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. this = os.path.dirname(os.path.abspath(__file__))
  8. # If your extensions are in another directory, add it here. If the directory
  9. # is relative to the documentation root, use os.path.abspath to make it
  10. # absolute, like shown here.
  11. sys.path.append(os.path.join(os.pardir, "tests"))
  12. sys.path.append(os.path.join(this, "_ext"))
  13. import celery
  14. # General configuration
  15. # ---------------------
  16. extensions = ['sphinx.ext.autodoc',
  17. 'sphinx.ext.coverage',
  18. 'sphinx.ext.pngmath',
  19. 'sphinxcontrib.issuetracker',
  20. 'celerydocs']
  21. # Add any paths that contain templates here, relative to this directory.
  22. templates_path = ['.templates']
  23. # The suffix of source filenames.
  24. source_suffix = '.rst'
  25. # The master toctree document.
  26. master_doc = 'index'
  27. # General information about the project.
  28. project = u'Celery'
  29. copyright = u'2009-2010, Ask Solem & contributors'
  30. # The version info for the project you're documenting, acts as replacement for
  31. # |version| and |release|, also used in various other places throughout the
  32. # built documents.
  33. #
  34. # The short X.Y version.
  35. version = ".".join(map(str, celery.VERSION[0:2]))
  36. # The full version, including alpha/beta/rc tags.
  37. release = celery.__version__
  38. exclude_trees = ['.build']
  39. # If true, '()' will be appended to :func: etc. cross-reference text.
  40. add_function_parentheses = True
  41. # The name of the Pygments (syntax highlighting) style to use.
  42. pygments_style = 'trac'
  43. # Add any paths that contain custom static files (such as style sheets) here,
  44. # relative to this directory. They are copied after the builtin static files,
  45. # so a file named "default.css" will overwrite the builtin "default.css".
  46. html_static_path = ['.static']
  47. html_use_smartypants = True
  48. # If false, no module index is generated.
  49. html_use_modindex = True
  50. # If false, no index is generated.
  51. html_use_index = True
  52. latex_documents = [
  53. ('index', 'Celery.tex', ur'Celery Documentation',
  54. ur'Ask Solem', 'manual'),
  55. ]
  56. html_theme = "celery"
  57. html_theme_path = ["_theme"]
  58. html_sidebars = {
  59. 'index': ['sidebarintro.html', 'sourcelink.html', 'searchbox.html'],
  60. '**': ['sidebarlogo.html', 'relations.html',
  61. 'sourcelink.html', 'searchbox.html'],
  62. }
  63. ### Issuetracker
  64. issuetracker = "github"
  65. issuetracker_user = "ask"
  66. issuetracker_project = "celery"
  67. issuetracker_issue_pattern = r'[Ii]ssue #(\d+)'