PageRenderTime 44ms CodeModel.GetById 14ms RepoModel.GetById 0ms app.codeStats 0ms

/pypy/doc/conf.py

https://bitbucket.org/pypy/pypy/
Python | 229 lines | 39 code | 62 blank | 128 comment | 3 complexity | 28e4dc6432abe1df899599248a9b4781 MD5 | raw file
Possible License(s): AGPL-3.0, BSD-3-Clause, Apache-2.0
  1. # -*- coding: utf-8 -*-
  2. #
  3. # PyPy documentation build configuration file, created by
  4. # sphinx-quickstart on Mon Mar 14 10:44:41 2011.
  5. #
  6. # This file is execfile()d with the current directory set to its containing dir.
  7. #
  8. # Note that not all possible configuration values are present in this
  9. # autogenerated file.
  10. #
  11. # All configuration values have a default; values that are commented out
  12. # serve to show the default.
  13. import sys, os
  14. # If extensions (or modules to document with autodoc) are in another directory,
  15. # add these directories to sys.path here. If the directory is relative to the
  16. # documentation root, use os.path.abspath to make it absolute, like shown here.
  17. sys.path.append(os.path.abspath('.'))
  18. # -- Read The Docs theme config ------------------------------------------------
  19. # on_rtd is whether we are on readthedocs.org, this line of code grabbed from docs.readthedocs.org
  20. on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
  21. if not on_rtd: # only import and set the theme if we're building docs locally
  22. try:
  23. import sphinx_rtd_theme
  24. html_theme = 'sphinx_rtd_theme'
  25. html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
  26. except ImportError:
  27. print('sphinx_rtd_theme is not installed')
  28. html_theme = 'default'
  29. # otherwise, readthedocs.org uses their theme by default, so no need to specify it
  30. # -- General configuration -----------------------------------------------------
  31. # Add any Sphinx extension module names here, as strings. They can be extensions
  32. # coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
  33. extensions = ['sphinx.ext.autodoc', 'sphinx.ext.doctest', 'sphinx.ext.extlinks',
  34. 'sphinx.ext.intersphinx', 'sphinx.ext.todo', 'sphinx.ext.ifconfig',
  35. 'sphinx.ext.graphviz', 'pypyconfig']
  36. # Add any paths that contain templates here, relative to this directory.
  37. templates_path = ['_templates']
  38. # The suffix of source filenames.
  39. source_suffix = '.rst'
  40. # The encoding of source files.
  41. #source_encoding = 'utf-8'
  42. # The master toctree document.
  43. master_doc = 'index'
  44. # General information about the project.
  45. project = u'PyPy'
  46. copyright = u'2015, The PyPy Project'
  47. # The version info for the project you're documenting, acts as replacement for
  48. # |version| and |release|, also used in various other places throughout the
  49. # built documents.
  50. #
  51. # The short X.Y version.
  52. version = '4.0'
  53. # The full version, including alpha/beta/rc tags.
  54. release = '4.0.0'
  55. # The language for content autogenerated by Sphinx. Refer to documentation
  56. # for a list of supported languages.
  57. #language = None
  58. # There are two options for replacing |today|: either, you set today to some
  59. # non-false value, then it is used:
  60. #today = ''
  61. # Else, today_fmt is used as the format for a strftime call.
  62. #today_fmt = '%B %d, %Y'
  63. # List of documents that shouldn't be included in the build.
  64. #unused_docs = []
  65. # List of directories, relative to source directory, that shouldn't be searched
  66. # for source files.
  67. exclude_trees = ['_build']
  68. # The reST default role (used for this markup: `text`) to use for all documents.
  69. #default_role = None
  70. # If true, '()' will be appended to :func: etc. cross-reference text.
  71. #add_function_parentheses = True
  72. # If true, the current module name will be prepended to all description
  73. # unit titles (such as .. function::).
  74. #add_module_names = True
  75. # If true, sectionauthor and moduleauthor directives will be shown in the
  76. # output. They are ignored by default.
  77. #show_authors = False
  78. # The name of the Pygments (syntax highlighting) style to use.
  79. pygments_style = 'sphinx'
  80. # A list of ignored prefixes for module index sorting.
  81. #modindex_common_prefix = []
  82. # -- Options for HTML output ---------------------------------------------------
  83. # The theme to use for HTML and HTML Help pages. Major themes that come with
  84. # Sphinx are currently 'default' and 'sphinxdoc'.
  85. #html_theme = 'default'
  86. # Theme options are theme-specific and customize the look and feel of a theme
  87. # further. For a list of options available for each theme, see the
  88. # documentation.
  89. #html_theme_options = {}
  90. # Add any paths that contain custom themes here, relative to this directory.
  91. #html_theme_path = []
  92. # The name for this set of Sphinx documents. If None, it defaults to
  93. # "<project> v<release> documentation".
  94. html_title = 'PyPy documentation'
  95. # A shorter title for the navigation bar. Default is the same as html_title.
  96. #html_short_title = None
  97. # The name of an image file (relative to this directory) to place at the top
  98. # of the sidebar.
  99. #html_logo = None
  100. # The name of an image file (within the static path) to use as favicon of the
  101. # docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
  102. # pixels large.
  103. #html_favicon = None
  104. # Add any paths that contain custom static files (such as style sheets) here,
  105. # relative to this directory. They are copied after the builtin static files,
  106. # so a file named "default.css" will overwrite the builtin "default.css".
  107. # html_static_path = ['_static']
  108. # If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
  109. # using the given strftime format.
  110. #html_last_updated_fmt = '%b %d, %Y'
  111. # If true, SmartyPants will be used to convert quotes and dashes to
  112. # typographically correct entities.
  113. #html_use_smartypants = True
  114. # Custom sidebar templates, maps document names to template names.
  115. #html_sidebars = {}
  116. # Additional templates that should be rendered to pages, maps page names to
  117. # template names.
  118. #html_additional_pages = {}
  119. # If false, no module index is generated.
  120. html_use_modindex = False
  121. # If false, no index is generated.
  122. #html_use_index = True
  123. # If true, the index is split into individual pages for each letter.
  124. #html_split_index = False
  125. # If true, links to the reST sources are added to the pages.
  126. #html_show_sourcelink = True
  127. # If true, an OpenSearch description file will be output, and all pages will
  128. # contain a <link> tag referring to it. The value of this option must be the
  129. # base URL from which the finished HTML is served.
  130. #html_use_opensearch = ''
  131. # If nonempty, this is the file name suffix for HTML files (e.g. ".xhtml").
  132. #html_file_suffix = ''
  133. # Output file base name for HTML help builder.
  134. htmlhelp_basename = 'PyPydoc'
  135. # -- Options for LaTeX output --------------------------------------------------
  136. # The paper size ('letter' or 'a4').
  137. #latex_paper_size = 'letter'
  138. # The font size ('10pt', '11pt' or '12pt').
  139. #latex_font_size = '10pt'
  140. # Grouping the document tree into LaTeX files. List of tuples
  141. # (source start file, target name, title, author, documentclass [howto/manual]).
  142. latex_documents = [
  143. ('temp_index', 'PyPy.tex', u'PyPy Documentation',
  144. u'The PyPy Project', 'manual'),
  145. ]
  146. # The name of an image file (relative to this directory) to place at the top of
  147. # the title page.
  148. #latex_logo = None
  149. # For "manual" documents, if this is true, then toplevel headings are parts,
  150. # not chapters.
  151. #latex_use_parts = False
  152. # Additional stuff for the LaTeX preamble.
  153. #latex_preamble = ''
  154. # Documents to append as an appendix to all manuals.
  155. #latex_appendices = []
  156. # If false, no module index is generated.
  157. latex_use_modindex = False
  158. # Example configuration for intersphinx: refer to the Python standard library.
  159. intersphinx_mapping = {'python': ('http://docs.python.org/2.7', None),
  160. 'rpython': ('http://rpython.readthedocs.org/en/latest/', None)}
  161. # -- Options for manpage output-------------------------------------------------
  162. man_pages = [
  163. ('man/pypy.1', 'pypy',
  164. u'fast, compliant alternative implementation of the Python language',
  165. u'The PyPy Project', 1)
  166. ]
  167. extlinks = {'source': ('https://bitbucket.org/pypy/pypy/src/default/%s', '')}