conf.py 2.3 KB

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