Debian Codegraph @

docs/conf.py

raw ◀ ▶
Source reconstructed at patch state 0 of 1 — not the installed (fully patched) source.
1 Debian patch touch this file
1 # -*- coding: utf-8 -*-
2 #
3 # Configuration file for the Sphinx documentation builder.
4 #
5 # This file does only contain a selection of the most common options. For a
6 # full list see the documentation:
7 # http://www.sphinx-doc.org/en/stable/config
8
9 # -- Path setup --------------------------------------------------------------
10
11 # If extensions (or modules to document with autodoc) are in another directory,
12 # add these directories to sys.path here. If the directory is relative to the
13 # documentation root, use os.path.abspath to make it absolute, like shown here.
14 #
15 import os
16 import sys
17
18 import proto
19
20
21 sys.path.insert(0, os.path.abspath(".."))
22
23
24 # -- Project information -----------------------------------------------------
25
26 project = "Proto Plus for Python"
27 copyright = "2018, Google LLC"
28 author = "Google LLC"
29
30 version = proto.version.__version__
31
32
33 # -- General configuration ---------------------------------------------------
34
35 # If your documentation needs a minimal Sphinx version, state it here.
36 #
37 # needs_sphinx = '1.0'
38
39 # Add any Sphinx extension module names here, as strings. They can be
40 # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
41 # ones.
42 extensions = [
43 "sphinx.ext.autodoc",
44 "sphinx.ext.intersphinx",
45 "sphinx.ext.viewcode",
46 "sphinx.ext.githubpages",
47 "sphinx.ext.napoleon",
48 ]
49
50 # Add any paths that contain templates here, relative to this directory.
51 templates_path = ["_templates"]
52
53 # The suffix(es) of source filenames.
54 # You can specify multiple suffix as a list of string:
55 #
56 # source_suffix = ['.rst', '.md']
57 source_suffix = ".rst"
58
59 # The master toctree document.
60 master_doc = "index"
61
62 # The language for content autogenerated by Sphinx. Refer to documentation
63 # for a list of supported languages.
64 #
65 # This is also used if you do content translation via gettext catalogs.
66 # Usually you set "language" from the command line for these cases.
67 language = "en"
68
69 # List of patterns, relative to source directory, that match files and
70 # directories to ignore when looking for source files.
71 # This pattern also affects html_static_path and html_extra_path .
72 exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]
73
74 # The name of the Pygments (syntax highlighting) style to use.
75 pygments_style = "sphinx"
76
77
78 # -- Options for HTML output -------------------------------------------------
79
80 # The theme to use for HTML and HTML Help pages. See the documentation for
81 # a list of builtin themes.
82 #
83 html_theme = "sphinx_rtd_theme"
84
85 # Theme options are theme-specific and customize the look and feel of a theme
86 # further. For a list of options available for each theme, see the
87 # documentation.
88 #
89 # html_theme_options = {}
90
91 # Add any paths that contain custom static files (such as style sheets) here,
92 # relative to this directory. They are copied after the builtin static files,
93 # so a file named "default.css" will overwrite the builtin "default.css".
94 html_static_path = []
95
96 # Custom sidebar templates, must be a dictionary that maps document names
97 # to template names.
98 #
99 # The default sidebars (for documents that don't match any pattern) are
100 # defined by theme itself. Builtin themes are using these templates by
101 # default: ``['localtoc.html', 'relations.html', 'sourcelink.html',
102 # 'searchbox.html']``.
103 #
104 # html_sidebars = {}
105
106
107 # -- Options for HTMLHelp output ---------------------------------------------
108
109 # Output file base name for HTML help builder.
110 htmlhelp_basename = "proto-plus-python"
111
112
113 # -- Options for LaTeX output ------------------------------------------------
114
115 latex_elements = {
116 # The paper size ('letterpaper' or 'a4paper').
117 #
118 # 'papersize': 'letterpaper',
119 # The font size ('10pt', '11pt' or '12pt').
120 #
121 # 'pointsize': '10pt',
122 # Additional stuff for the LaTeX preamble.
123 #
124 # 'preamble': '',
125 # Latex figure (float) alignmentAPIClientGeneratorforPython
126 #
127 # 'figure_align': 'htbp',
128 }
129
130 # Grouping the document tree into LaTeX files. List of tuples
131 # (source start file, target name, title,
132 # author, documentclass [howto, manual, or own class]).
133 latex_documents = [
134 (
135 master_doc,
136 "proto-plus-python.tex",
137 "Proto Plus for Python Documentation",
138 "Luke Sneeringer",
139 "manual",
140 ),
141 ]
142
143
144 # -- Options for manual page output ------------------------------------------
145
146 # One entry per manual page. List of tuples
147 # (source start file, name, description, authors, manual section).
148 man_pages = [
149 (
150 master_doc,
151 "proto-plus-python",
152 "Proto Plus for Python Documentation",
153 [author],
154 1,
155 )
156 ]
157
158
159 # -- Options for Texinfo output ----------------------------------------------
160
161 # Grouping the document tree into Texinfo files. List of tuples
162 # (source start file, target name, title, author,
163 # dir menu entry, description, category)
164 texinfo_documents = [
165 (
166 master_doc,
167 "proto-plus-python",
168 "Proto Plus for Python Documentation",
169 author,
170 "proto-plus-python",
171 "One line description of project.",
172 "Miscellaneous",
173 ),
174 ]
175
176
177 # -- Extension configuration -------------------------------------------------
178
179 # -- Options for intersphinx extension ---------------------------------------
180
181 # Example configuration for intersphinx: refer to the Python standard library.
182 intersphinx_mapping = {"python": ("https://docs.python.org/3/", None)}