conf.py 2.0 KB

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