conf.py 2.4 KB

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