conf.py 5.4 KB

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