conf.py 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. # -*- coding: utf-8 -*-
  2. #
  3. # Django documentation build configuration file, created by
  4. # sphinx-quickstart on Thu Mar 27 09:06:53 2008.
  5. #
  6. # This file is execfile()d with the current directory set to its containing dir.
  7. #
  8. # The contents of this file are pickled, so don't put values in the namespace
  9. # that aren't pickleable (module imports are okay, they're removed automatically).
  10. #
  11. # All configuration values have a default value; values that are commented out
  12. # serve to show the default value.
  13. import sys
  14. import os
  15. # If your extensions are in another directory, add it here.
  16. sys.path.append(os.path.join(os.path.dirname(__file__), "_ext"))
  17. # General configuration
  18. # ---------------------
  19. # Add any Sphinx extension module names here, as strings. They can be extensions
  20. # coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
  21. extensions = ["djangodocs"]
  22. # Add any paths that contain templates here, relative to this directory.
  23. templates_path = ["_templates"]
  24. # The suffix of source filenames.
  25. source_suffix = '.txt'
  26. # The master toctree document.
  27. master_doc = 'contents'
  28. # General substitutions.
  29. project = 'Django'
  30. copyright = 'Django Software Foundation and contributors'
  31. # The default replacements for |version| and |release|, also used in various
  32. # other places throughout the built documents.
  33. #
  34. # The short X.Y version.
  35. version = '1.0'
  36. # The full version, including alpha/beta/rc tags.
  37. release = version
  38. # The next version to be released
  39. django_next_version = '1.1'
  40. # There are two options for replacing |today|: either, you set today to some
  41. # non-false value, then it is used:
  42. #today = ''
  43. # Else, today_fmt is used as the format for a strftime call.
  44. today_fmt = '%B %d, %Y'
  45. # List of documents that shouldn't be included in the build.
  46. #unused_docs = []
  47. # If true, '()' will be appended to :func: etc. cross-reference text.
  48. add_function_parentheses = True
  49. # If true, the current module name will be prepended to all description
  50. # unit titles (such as .. function::).
  51. add_module_names = False
  52. # If true, sectionauthor and moduleauthor directives will be shown in the
  53. # output. They are ignored by default.
  54. show_authors = False
  55. # The name of the Pygments (syntax highlighting) style to use.
  56. pygments_style = 'trac'
  57. # Sphinx will recurse into subversion configuration folders and try to read
  58. # any document file within. These should be ignored.
  59. # Note: exclude_dirnames is new in Sphinx 0.5
  60. exclude_dirnames = ['.svn']
  61. # Options for HTML output
  62. # -----------------------
  63. # The style sheet to use for HTML and HTML Help pages. A file of that name
  64. # must exist either in Sphinx' static/ path, or in one of the custom paths
  65. # given in html_static_path.
  66. html_style = 'default.css'
  67. # Add any paths that contain custom static files (such as style sheets) here,
  68. # relative to this directory. They are copied after the builtin static files,
  69. # so a file named "default.css" will overwrite the builtin "default.css".
  70. html_static_path = ["_static"]
  71. # If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
  72. # using the given strftime format.
  73. html_last_updated_fmt = '%b %d, %Y'
  74. # If true, SmartyPants will be used to convert quotes and dashes to
  75. # typographically correct entities.
  76. html_use_smartypants = True
  77. # HTML translator class for the builder
  78. html_translator_class = "djangodocs.DjangoHTMLTranslator"
  79. # Content template for the index page.
  80. #html_index = ''
  81. # Custom sidebar templates, maps document names to template names.
  82. #html_sidebars = {}
  83. # Additional templates that should be rendered to pages, maps page names to
  84. # template names.
  85. html_additional_pages = {}
  86. # If false, no module index is generated.
  87. #html_use_modindex = True
  88. # If true, the reST sources are included in the HTML build as _sources/<name>.
  89. html_copy_source = True
  90. # Output file base name for HTML help builder.
  91. htmlhelp_basename = 'Djangodoc'
  92. # Options for LaTeX output
  93. # ------------------------
  94. # The paper size ('letter' or 'a4').
  95. #latex_paper_size = 'letter'
  96. # The font size ('10pt', '11pt' or '12pt').
  97. #latex_font_size = '10pt'
  98. # Grouping the document tree into LaTeX files. List of tuples
  99. # (source start file, target name, title, author, document class [howto/manual]).
  100. #latex_documents = []
  101. latex_documents = [
  102. ('contents', 'django.tex', 'Django Documentation', 'Django Software Foundation', 'manual'),
  103. ]
  104. # Additional stuff for the LaTeX preamble.
  105. #latex_preamble = ''
  106. # Documents to append as an appendix to all manuals.
  107. #latex_appendices = []
  108. # If false, no module index is generated.
  109. #latex_use_modindex = True
  110. # For "manual" documents, if this is true, then toplevel headings are parts,
  111. # not chapters.
  112. # If this isn't set to True, the LaTex writer can only handle six levels of headers.
  113. latex_use_parts = True