conf.py 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  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. # There are two options for replacing |today|: either, you set today to some
  39. # non-false value, then it is used:
  40. #today = ''
  41. # Else, today_fmt is used as the format for a strftime call.
  42. today_fmt = '%B %d, %Y'
  43. # List of documents that shouldn't be included in the build.
  44. #unused_docs = []
  45. # If true, '()' will be appended to :func: etc. cross-reference text.
  46. add_function_parentheses = True
  47. # If true, the current module name will be prepended to all description
  48. # unit titles (such as .. function::).
  49. add_module_names = False
  50. # If true, sectionauthor and moduleauthor directives will be shown in the
  51. # output. They are ignored by default.
  52. show_authors = False
  53. # The name of the Pygments (syntax highlighting) style to use.
  54. pygments_style = 'trac'
  55. # Options for HTML output
  56. # -----------------------
  57. # The style sheet to use for HTML and HTML Help pages. A file of that name
  58. # must exist either in Sphinx' static/ path, or in one of the custom paths
  59. # given in html_static_path.
  60. html_style = 'default.css'
  61. # Add any paths that contain custom static files (such as style sheets) here,
  62. # relative to this directory. They are copied after the builtin static files,
  63. # so a file named "default.css" will overwrite the builtin "default.css".
  64. html_static_path = ["_static"]
  65. # If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
  66. # using the given strftime format.
  67. html_last_updated_fmt = '%b %d, %Y'
  68. # If true, SmartyPants will be used to convert quotes and dashes to
  69. # typographically correct entities.
  70. html_use_smartypants = True
  71. # HTML translator class for the builder
  72. html_translator_class = "djangodocs.DjangoHTMLTranslator"
  73. # Content template for the index page.
  74. #html_index = ''
  75. # Custom sidebar templates, maps document names to template names.
  76. #html_sidebars = {}
  77. # Additional templates that should be rendered to pages, maps page names to
  78. # template names.
  79. html_additional_pages = {}
  80. # If false, no module index is generated.
  81. #html_use_modindex = True
  82. # If true, the reST sources are included in the HTML build as _sources/<name>.
  83. html_copy_source = True
  84. # Output file base name for HTML help builder.
  85. htmlhelp_basename = 'Djangodoc'
  86. # Options for LaTeX output
  87. # ------------------------
  88. # The paper size ('letter' or 'a4').
  89. #latex_paper_size = 'letter'
  90. # The font size ('10pt', '11pt' or '12pt').
  91. #latex_font_size = '10pt'
  92. # Grouping the document tree into LaTeX files. List of tuples
  93. # (source start file, target name, title, author, document class [howto/manual]).
  94. #latex_documents = []
  95. latex_documents = [
  96. ('index', 'django.tex', 'Django Documentation', 'Django Software Foundation', 'manual'),
  97. ]
  98. # Additional stuff for the LaTeX preamble.
  99. #latex_preamble = ''
  100. # Documents to append as an appendix to all manuals.
  101. #latex_appendices = []
  102. # If false, no module index is generated.
  103. #latex_use_modindex = True
  104. # For "manual" documents, if this is true, then toplevel headings are parts,
  105. # not chapters.
  106. # If this isn't set to True, the LaTex writer can only handle six levels of headers.
  107. latex_use_parts = True