conf.py 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. # -*- coding: utf-8 -*-
  2. #
  3. # Jinja2 documentation build configuration file, created by
  4. # sphinx-quickstart on Sun Apr 27 21:42:41 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, os
  14. # If your extensions are in another directory, add it here. If the directory
  15. # is relative to the documentation root, use os.path.abspath to make it
  16. # absolute, like shown here.
  17. sys.path.append(os.path.dirname(os.path.abspath(__file__)))
  18. # General configuration
  19. # ---------------------
  20. # Add any Sphinx extension module names here, as strings. They can be extensions
  21. # coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
  22. extensions = ['sphinx.ext.autodoc', 'jinjaext']
  23. # Add any paths that contain templates here, relative to this directory.
  24. templates_path = ['_templates']
  25. # The suffix of source filenames.
  26. source_suffix = '.rst'
  27. # The master toctree document.
  28. master_doc = 'index'
  29. # General substitutions.
  30. project = 'Jinja2'
  31. copyright = '2008, Armin Ronacher'
  32. # The default replacements for |version| and |release|, also used in various
  33. # other places throughout the built documents.
  34. #
  35. # The short X.Y version.
  36. version = '2.0'
  37. # The full version, including alpha/beta/rc tags.
  38. release = '2.0'
  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. # If true, '()' will be appended to :func: etc. cross-reference text.
  47. #add_function_parentheses = True
  48. # If true, the current module name will be prepended to all description
  49. # unit titles (such as .. function::).
  50. #add_module_names = True
  51. # If true, sectionauthor and moduleauthor directives will be shown in the
  52. # output. They are ignored by default.
  53. #show_authors = False
  54. # The name of the Pygments (syntax highlighting) style to use.
  55. pygments_style = 'jinjaext.JinjaStyle'
  56. # Options for HTML output
  57. # -----------------------
  58. # The style sheet to use for HTML and HTML Help pages. A file of that name
  59. # must exist either in Sphinx' static/ path, or in one of the custom paths
  60. # given in html_static_path.
  61. html_style = 'style.css'
  62. # The name for this set of Sphinx documents. If None, it defaults to
  63. # "<project> v<release> documentation".
  64. #html_title = None
  65. # Add any paths that contain custom static files (such as style sheets) here,
  66. # relative to this directory. They are copied after the builtin static files,
  67. # so a file named "default.css" will overwrite the builtin "default.css".
  68. html_static_path = ['_static']
  69. # If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
  70. # using the given strftime format.
  71. html_last_updated_fmt = '%b %d, %Y'
  72. # If true, SmartyPants will be used to convert quotes and dashes to
  73. # typographically correct entities.
  74. #html_use_smartypants = True
  75. # no modindex
  76. html_use_modindex = False
  77. # If true, the reST sources are included in the HTML build as _sources/<name>.
  78. #html_copy_source = True
  79. # If true, an OpenSearch description file will be output, and all pages will
  80. # contain a <link> tag referring to it.
  81. #html_use_opensearch = False
  82. # Output file base name for HTML help builder.
  83. htmlhelp_basename = 'Jinja2doc'
  84. # Options for LaTeX output
  85. # ------------------------
  86. # The paper size ('letter' or 'a4').
  87. latex_paper_size = 'a4'
  88. # The font size ('10pt', '11pt' or '12pt').
  89. #latex_font_size = '10pt'
  90. # Grouping the document tree into LaTeX files. List of tuples
  91. # (source start file, target name, title, author, document class [howto/manual]).
  92. latex_documents = [
  93. ('index', 'Jinja2.tex', 'Jinja2 Documentation', 'Armin Ronacher', 'manual', 'toctree_only'),
  94. ]
  95. # Additional stuff for the LaTeX preamble.
  96. latex_preamble = '''
  97. \usepackage{palatino}
  98. \definecolor{TitleColor}{rgb}{0.7,0,0}
  99. \definecolor{InnerLinkColor}{rgb}{0.7,0,0}
  100. \definecolor{OuterLinkColor}{rgb}{0.8,0,0}
  101. \definecolor{VerbatimColor}{rgb}{0.985,0.985,0.985}
  102. \definecolor{VerbatimBorderColor}{rgb}{0.8,0.8,0.8}
  103. '''
  104. # Documents to append as an appendix to all manuals.
  105. #latex_appendices = []
  106. # If false, no module index is generated.
  107. latex_use_modindex = False