conf.py 2.2 KB

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