conf.py 2.0 KB

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