You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

308 lines
9.7 KiB

  1. #!/usr/bin/env python3
  2. # -*- coding: utf-8 -*-
  3. #
  4. # pybind11 documentation build configuration file, created by
  5. # sphinx-quickstart on Sun Oct 11 19:23:48 2015.
  6. #
  7. # This file is execfile()d with the current directory set to its
  8. # containing dir.
  9. #
  10. # Note that not all possible configuration values are present in this
  11. # autogenerated file.
  12. #
  13. # All configuration values have a default; values that are commented out
  14. # serve to show the default.
  15. import sys
  16. import os
  17. import shlex
  18. # If extensions (or modules to document with autodoc) are in another directory,
  19. # add these directories to sys.path here. If the directory is relative to the
  20. # documentation root, use os.path.abspath to make it absolute, like shown here.
  21. #sys.path.insert(0, os.path.abspath('.'))
  22. # -- General configuration ------------------------------------------------
  23. # If your documentation needs a minimal Sphinx version, state it here.
  24. #needs_sphinx = '1.0'
  25. # Add any Sphinx extension module names here, as strings. They can be
  26. # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
  27. # ones.
  28. extensions = []
  29. # Add any paths that contain templates here, relative to this directory.
  30. templates_path = ['.templates']
  31. # The suffix(es) of source filenames.
  32. # You can specify multiple suffix as a list of string:
  33. # source_suffix = ['.rst', '.md']
  34. source_suffix = '.rst'
  35. # The encoding of source files.
  36. #source_encoding = 'utf-8-sig'
  37. # The master toctree document.
  38. master_doc = 'index'
  39. # General information about the project.
  40. project = 'pybind11'
  41. copyright = '2015, Wenzel Jakob'
  42. author = 'Wenzel Jakob'
  43. # The version info for the project you're documenting, acts as replacement for
  44. # |version| and |release|, also used in various other places throughout the
  45. # built documents.
  46. #
  47. # The short X.Y version.
  48. version = '1.9'
  49. # The full version, including alpha/beta/rc tags.
  50. release = '1.9.dev0'
  51. # The language for content autogenerated by Sphinx. Refer to documentation
  52. # for a list of supported languages.
  53. #
  54. # This is also used if you do content translation via gettext catalogs.
  55. # Usually you set "language" from the command line for these cases.
  56. language = None
  57. # There are two options for replacing |today|: either, you set today to some
  58. # non-false value, then it is used:
  59. #today = ''
  60. # Else, today_fmt is used as the format for a strftime call.
  61. #today_fmt = '%B %d, %Y'
  62. # List of patterns, relative to source directory, that match files and
  63. # directories to ignore when looking for source files.
  64. exclude_patterns = ['.build', 'release.rst']
  65. # The reST default role (used for this markup: `text`) to use for all
  66. # documents.
  67. #default_role = None
  68. # If true, '()' will be appended to :func: etc. cross-reference text.
  69. #add_function_parentheses = True
  70. # If true, the current module name will be prepended to all description
  71. # unit titles (such as .. function::).
  72. #add_module_names = True
  73. # If true, sectionauthor and moduleauthor directives will be shown in the
  74. # output. They are ignored by default.
  75. #show_authors = False
  76. # The name of the Pygments (syntax highlighting) style to use.
  77. #pygments_style = 'monokai'
  78. # A list of ignored prefixes for module index sorting.
  79. #modindex_common_prefix = []
  80. # If true, keep warnings as "system message" paragraphs in the built documents.
  81. #keep_warnings = False
  82. # If true, `todo` and `todoList` produce output, else they produce nothing.
  83. todo_include_todos = False
  84. # -- Options for HTML output ----------------------------------------------
  85. # The theme to use for HTML and HTML Help pages. See the documentation for
  86. # a list of builtin themes.
  87. on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
  88. if not on_rtd: # only import and set the theme if we're building docs locally
  89. import sphinx_rtd_theme
  90. html_theme = 'sphinx_rtd_theme'
  91. html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
  92. html_context = {
  93. 'css_files': [
  94. '_static/theme_overrides.css'
  95. ]
  96. }
  97. else:
  98. html_context = {
  99. 'css_files': [
  100. '//media.readthedocs.org/css/sphinx_rtd_theme.css',
  101. '//media.readthedocs.org/css/readthedocs-doc-embed.css',
  102. '_static/theme_overrides.css'
  103. ]
  104. }
  105. # Theme options are theme-specific and customize the look and feel of a theme
  106. # further. For a list of options available for each theme, see the
  107. # documentation.
  108. #html_theme_options = {}
  109. # Add any paths that contain custom themes here, relative to this directory.
  110. #html_theme_path = []
  111. # The name for this set of Sphinx documents. If None, it defaults to
  112. # "<project> v<release> documentation".
  113. #html_title = None
  114. # A shorter title for the navigation bar. Default is the same as html_title.
  115. #html_short_title = None
  116. # The name of an image file (relative to this directory) to place at the top
  117. # of the sidebar.
  118. #html_logo = None
  119. # The name of an image file (within the static path) to use as favicon of the
  120. # docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
  121. # pixels large.
  122. #html_favicon = None
  123. # Add any paths that contain custom static files (such as style sheets) here,
  124. # relative to this directory. They are copied after the builtin static files,
  125. # so a file named "default.css" will overwrite the builtin "default.css".
  126. html_static_path = ['_static']
  127. # Add any extra paths that contain custom files (such as robots.txt or
  128. # .htaccess) here, relative to this directory. These files are copied
  129. # directly to the root of the documentation.
  130. #html_extra_path = []
  131. # If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
  132. # using the given strftime format.
  133. #html_last_updated_fmt = '%b %d, %Y'
  134. # If true, SmartyPants will be used to convert quotes and dashes to
  135. # typographically correct entities.
  136. #html_use_smartypants = True
  137. # Custom sidebar templates, maps document names to template names.
  138. #html_sidebars = {}
  139. # Additional templates that should be rendered to pages, maps page names to
  140. # template names.
  141. #html_additional_pages = {}
  142. # If false, no module index is generated.
  143. #html_domain_indices = True
  144. # If false, no index is generated.
  145. #html_use_index = True
  146. # If true, the index is split into individual pages for each letter.
  147. #html_split_index = False
  148. # If true, links to the reST sources are added to the pages.
  149. #html_show_sourcelink = True
  150. # If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
  151. #html_show_sphinx = True
  152. # If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
  153. #html_show_copyright = True
  154. # If true, an OpenSearch description file will be output, and all pages will
  155. # contain a <link> tag referring to it. The value of this option must be the
  156. # base URL from which the finished HTML is served.
  157. #html_use_opensearch = ''
  158. # This is the file name suffix for HTML files (e.g. ".xhtml").
  159. #html_file_suffix = None
  160. # Language to be used for generating the HTML full-text search index.
  161. # Sphinx supports the following languages:
  162. # 'da', 'de', 'en', 'es', 'fi', 'fr', 'h', 'it', 'ja'
  163. # 'nl', 'no', 'pt', 'ro', 'r', 'sv', 'tr'
  164. #html_search_language = 'en'
  165. # A dictionary with options for the search language support, empty by default.
  166. # Now only 'ja' uses this config value
  167. #html_search_options = {'type': 'default'}
  168. # The name of a javascript file (relative to the configuration directory) that
  169. # implements a search results scorer. If empty, the default will be used.
  170. #html_search_scorer = 'scorer.js'
  171. # Output file base name for HTML help builder.
  172. htmlhelp_basename = 'pybind11doc'
  173. # -- Options for LaTeX output ---------------------------------------------
  174. latex_elements = {
  175. # The paper size ('letterpaper' or 'a4paper').
  176. #'papersize': 'letterpaper',
  177. # The font size ('10pt', '11pt' or '12pt').
  178. #'pointsize': '10pt',
  179. # Additional stuff for the LaTeX preamble.
  180. 'preamble': '\DeclareUnicodeCharacter{00A0}{}',
  181. # Latex figure (float) alignment
  182. #'figure_align': 'htbp',
  183. }
  184. # Grouping the document tree into LaTeX files. List of tuples
  185. # (source start file, target name, title,
  186. # author, documentclass [howto, manual, or own class]).
  187. latex_documents = [
  188. (master_doc, 'pybind11.tex', 'pybind11 Documentation',
  189. 'Wenzel Jakob', 'manual'),
  190. ]
  191. # The name of an image file (relative to this directory) to place at the top of
  192. # the title page.
  193. # latex_logo = 'pybind11-logo.png'
  194. # For "manual" documents, if this is true, then toplevel headings are parts,
  195. # not chapters.
  196. #latex_use_parts = False
  197. # If true, show page references after internal links.
  198. #latex_show_pagerefs = False
  199. # If true, show URL addresses after external links.
  200. #latex_show_urls = False
  201. # Documents to append as an appendix to all manuals.
  202. #latex_appendices = []
  203. # If false, no module index is generated.
  204. #latex_domain_indices = True
  205. # -- Options for manual page output ---------------------------------------
  206. # One entry per manual page. List of tuples
  207. # (source start file, name, description, authors, manual section).
  208. man_pages = [
  209. (master_doc, 'pybind11', 'pybind11 Documentation',
  210. [author], 1)
  211. ]
  212. # If true, show URL addresses after external links.
  213. #man_show_urls = False
  214. # -- Options for Texinfo output -------------------------------------------
  215. # Grouping the document tree into Texinfo files. List of tuples
  216. # (source start file, target name, title, author,
  217. # dir menu entry, description, category)
  218. texinfo_documents = [
  219. (master_doc, 'pybind11', 'pybind11 Documentation',
  220. author, 'pybind11', 'One line description of project.',
  221. 'Miscellaneous'),
  222. ]
  223. # Documents to append as an appendix to all manuals.
  224. #texinfo_appendices = []
  225. # If false, no module index is generated.
  226. #texinfo_domain_indices = True
  227. # How to display URL addresses: 'footnote', 'no', or 'inline'.
  228. #texinfo_show_urls = 'footnote'
  229. # If true, do not generate a @detailmenu in the "Top" node's menu.
  230. #texinfo_no_detailmenu = False
  231. primary_domain = 'cpp'
  232. highlight_language = 'cpp'