conf.py 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239
  1. # -*- coding: utf-8 -*-
  2. # Protocol Buffers - Google's data interchange format
  3. # Copyright 2019 Google LLC. All rights reserved.
  4. # https://developers.google.com/protocol-buffers/
  5. #
  6. # Redistribution and use in source and binary forms, with or without
  7. # modification, are permitted provided that the following conditions are
  8. # met:
  9. #
  10. # * Redistributions of source code must retain the above copyright
  11. # notice, this list of conditions and the following disclaimer.
  12. # * Redistributions in binary form must reproduce the above
  13. # copyright notice, this list of conditions and the following disclaimer
  14. # in the documentation and/or other materials provided with the
  15. # distribution.
  16. # * Neither the name of Google Inc. nor the names of its
  17. # contributors may be used to endorse or promote products derived from
  18. # this software without specific prior written permission.
  19. #
  20. # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  21. # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  22. # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  23. # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  24. # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  25. # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  26. # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  27. # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  28. # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  29. # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  30. # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  31. # Configuration file for the Sphinx documentation builder.
  32. #
  33. # This file does only contain a selection of the most common options. For a
  34. # full list see the documentation:
  35. # http://www.sphinx-doc.org/en/master/config
  36. # -- Path setup --------------------------------------------------------------
  37. # If extensions (or modules to document with autodoc) are in another directory,
  38. # add these directories to sys.path here. If the directory is relative to the
  39. # documentation root, use os.path.abspath to make it absolute, like shown here.
  40. #
  41. # import os
  42. # import sys
  43. # sys.path.insert(0, os.path.abspath('.'))
  44. import google.protobuf
  45. # -- Project information -----------------------------------------------------
  46. project = u"Protocol Buffers"
  47. copyright = u"2008, Google LLC"
  48. author = u"Google LLC"
  49. # The short X.Y version
  50. version = u""
  51. # The full version, including alpha/beta/rc tags
  52. release = google.protobuf.__version__
  53. # -- General configuration ---------------------------------------------------
  54. # If your documentation needs a minimal Sphinx version, state it here.
  55. #
  56. # needs_sphinx = '1.0'
  57. # Add any Sphinx extension module names here, as strings. They can be
  58. # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
  59. # ones.
  60. extensions = [
  61. "sphinx.ext.autosummary",
  62. "sphinx.ext.intersphinx",
  63. "sphinxcontrib.napoleon",
  64. ]
  65. # Add any paths that contain templates here, relative to this directory.
  66. templates_path = ["_templates"]
  67. # The suffix(es) of source filenames.
  68. # You can specify multiple suffix as a list of string:
  69. #
  70. # source_suffix = ['.rst', '.md']
  71. source_suffix = ".rst"
  72. # The master toctree document.
  73. master_doc = "index"
  74. # The language for content autogenerated by Sphinx. Refer to documentation
  75. # for a list of supported languages.
  76. #
  77. # This is also used if you do content translation via gettext catalogs.
  78. # Usually you set "language" from the command line for these cases.
  79. language = None
  80. # List of patterns, relative to source directory, that match files and
  81. # directories to ignore when looking for source files.
  82. # This pattern also affects html_static_path and html_extra_path.
  83. exclude_patterns = [u"_build", "Thumbs.db", ".DS_Store"]
  84. # The name of the Pygments (syntax highlighting) style to use.
  85. pygments_style = None
  86. # -- Options for HTML output -------------------------------------------------
  87. # The theme to use for HTML and HTML Help pages. See the documentation for
  88. # a list of builtin themes.
  89. #
  90. html_theme = "alabaster"
  91. # Remove JavaScript.
  92. html_js_files = []
  93. # Theme options are theme-specific and customize the look and feel of a theme
  94. # further. For a list of options available for each theme, see the
  95. # documentation.
  96. #
  97. # html_theme_options = {}
  98. # Add any paths that contain custom static files (such as style sheets) here,
  99. # relative to this directory. They are copied after the builtin static files,
  100. # so a file named "default.css" will overwrite the builtin "default.css".
  101. html_static_path = ["_static"]
  102. html_show_sourcelink = True
  103. # Custom sidebar templates, must be a dictionary that maps document names
  104. # to template names.
  105. #
  106. # The default sidebars (for documents that don't match any pattern) are
  107. # defined by theme itself. Builtin themes are using these templates by
  108. # default: ``['localtoc.html', 'relations.html', 'sourcelink.html',
  109. # 'searchbox.html']``.
  110. # Remove searchbox.html to avoid embedded JavaScript.
  111. html_sidebars = {
  112. "**": [
  113. "globaltoc.html", "localtoc.html", "relations.html", "sourcelink.html",
  114. ],
  115. }
  116. # -- Options for HTMLHelp output ---------------------------------------------
  117. # Output file base name for HTML help builder.
  118. htmlhelp_basename = "ProtocolBuffersdoc"
  119. # -- Options for LaTeX output ------------------------------------------------
  120. latex_elements = {
  121. # The paper size ('letterpaper' or 'a4paper').
  122. #
  123. # 'papersize': 'letterpaper',
  124. # The font size ('10pt', '11pt' or '12pt').
  125. #
  126. # 'pointsize': '10pt',
  127. # Additional stuff for the LaTeX preamble.
  128. #
  129. # 'preamble': '',
  130. # Latex figure (float) alignment
  131. #
  132. # 'figure_align': 'htbp',
  133. }
  134. # Grouping the document tree into LaTeX files. List of tuples
  135. # (source start file, target name, title,
  136. # author, documentclass [howto, manual, or own class]).
  137. latex_documents = [
  138. (
  139. master_doc,
  140. "ProtocolBuffers.tex",
  141. "Protocol Buffers Documentation",
  142. "Google LLC",
  143. "manual",
  144. )
  145. ]
  146. # -- Options for manual page output ------------------------------------------
  147. # One entry per manual page. List of tuples
  148. # (source start file, name, description, authors, manual section).
  149. man_pages = [
  150. (
  151. master_doc, # source start file
  152. "protocolbuffers", # name
  153. "Protocol Buffers Documentation", # description
  154. [author], # authors
  155. 1, # manual section
  156. )
  157. ]
  158. # -- Options for Texinfo output ----------------------------------------------
  159. # Grouping the document tree into Texinfo files. List of tuples
  160. # (source start file, target name, title, author,
  161. # dir menu entry, description, category)
  162. texinfo_documents = [
  163. (
  164. master_doc,
  165. "ProtocolBuffers",
  166. u"Protocol Buffers Documentation",
  167. author,
  168. "ProtocolBuffers",
  169. "One line description of project.",
  170. "Miscellaneous",
  171. )
  172. ]
  173. # -- Options for Epub output -------------------------------------------------
  174. # Bibliographic Dublin Core info.
  175. epub_title = project
  176. # The unique identifier of the text. This can be a ISBN number
  177. # or the project homepage.
  178. #
  179. # epub_identifier = ''
  180. # A unique identification for the text.
  181. #
  182. # epub_uid = ''
  183. # A list of files that should not be packed into the epub file.
  184. epub_exclude_files = ["search.html"]
  185. # -- Extension configuration -------------------------------------------------
  186. # -- Options for autosummary extension ---------------------------------------
  187. autosummary_generate = True
  188. # -- Options for intersphinx extension ---------------------------------------
  189. # Example configuration for intersphinx: refer to the Python standard library.
  190. intersphinx_mapping = {"https://docs.python.org/": None}