conf.py 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  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. setup_environ(settings)
  12. import celery
  13. sys.path.append(os.path.join(os.path.dirname(__file__), "_ext"))
  14. # General configuration
  15. # ---------------------
  16. extensions = ['sphinx.ext.autodoc', 'djangodocs']
  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 encoding of source files.
  22. #source_encoding = 'utf-8'
  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. # The language for content autogenerated by Sphinx. Refer to documentation
  37. # for a list of supported languages.
  38. #language = None
  39. # There are two options for replacing |today|: either, you set today to some
  40. # non-false value, then it is used:
  41. #today = ''
  42. # Else, today_fmt is used as the format for a strftime call.
  43. #today_fmt = '%B %d, %Y'
  44. # List of documents that shouldn't be included in the build.
  45. #unused_docs = []
  46. # List of directories, relative to source directory, that shouldn't be searched
  47. # for source files.
  48. exclude_trees = ['.build']
  49. # If true, '()' will be appended to :func: etc. cross-reference text.
  50. add_function_parentheses = True
  51. # If true, the current module name will be prepended to all description
  52. # unit titles (such as .. function::).
  53. #add_module_names = True
  54. # If true, sectionauthor and moduleauthor directives will be shown in the
  55. # output. They are ignored by default.
  56. #show_authors = False
  57. # The name of the Pygments (syntax highlighting) style to use.
  58. pygments_style = 'trac'
  59. #html_translator_class = "djangodocs.DjangoHTMLTranslator"
  60. # Options for HTML output
  61. # -----------------------
  62. # The style sheet to use for HTML and HTML Help pages. A file of that name
  63. # must exist either in Sphinx' static/ path, or in one of the custom paths
  64. # given in html_static_path.
  65. html_style = 'agogo.css'
  66. # The name for this set of Sphinx documents. If None, it defaults to
  67. # "<project> v<release> documentation".
  68. #html_title = None
  69. # A shorter title for the navigation bar. Default is the same as html_title.
  70. #html_short_title = None
  71. # The name of an image file (relative to this directory) to place at the top
  72. # of the sidebar.
  73. #html_logo = None
  74. # The name of an image file (within the static path) to use as favicon of the
  75. # docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
  76. # pixels large.
  77. #html_favicon = None
  78. # Add any paths that contain custom static files (such as style sheets) here,
  79. # relative to this directory. They are copied after the builtin static files,
  80. # so a file named "default.css" will overwrite the builtin "default.css".
  81. html_static_path = ['.static']
  82. # If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
  83. # using the given strftime format.
  84. #html_last_updated_fmt = '%b %d, %Y'
  85. # If true, SmartyPants will be used to convert quotes and dashes to
  86. # typographically correct entities.
  87. html_use_smartypants = True
  88. # Custom sidebar templates, maps document names to template names.
  89. #html_sidebars = {}
  90. # Additional templates that should be rendered to pages, maps page names to
  91. # template names.
  92. #html_additional_pages = {}
  93. # If false, no module index is generated.
  94. html_use_modindex = True
  95. # If false, no index is generated.
  96. html_use_index = True
  97. # If true, the index is split into individual pages for each letter.
  98. #html_split_index = False
  99. # If true, the reST sources are included in the HTML build as _sources/<name>.
  100. #html_copy_source = True
  101. # If true, an OpenSearch description file will be output, and all pages will
  102. # contain a <link> tag referring to it. The value of this option must be the
  103. # base URL from which the finished HTML is served.
  104. #html_use_opensearch = ''
  105. # If nonempty, this is the file name suffix for HTML files (e.g. ".xhtml").
  106. #html_file_suffix = ''
  107. # Output file base name for HTML help builder.
  108. htmlhelp_basename = 'Celerydoc'
  109. # Options for LaTeX output
  110. # ------------------------
  111. # The paper size ('letter' or 'a4').
  112. #latex_paper_size = 'letter'
  113. # The font size ('10pt', '11pt' or '12pt').
  114. #latex_font_size = '10pt'
  115. latex_documents = [
  116. ('index', 'Celery.tex', ur'Celery Documentation',
  117. ur'Ask Solem', 'manual'),
  118. ]
  119. # The name of an image file (relative to this directory) to place at the top of
  120. # the title page.
  121. #latex_logo = None
  122. # For "manual" documents, if this is true, then toplevel headings are parts,
  123. # not chapters.
  124. #latex_use_parts = False
  125. # Additional stuff for the LaTeX preamble.
  126. #latex_preamble = ''
  127. # Documents to append as an appendix to all manuals.
  128. #latex_appendices = []
  129. # If false, no module index is generated.
  130. #latex_use_modindex = True
  131. html_theme = "agogo"
  132. html_theme_path = ["_theme"]