|
18 | 18 | # If extensions (or modules to document with autodoc) are in another directory, |
19 | 19 | # add these directories to sys.path here. If the directory is relative to the |
20 | 20 | # documentation root, use os.path.abspath to make it absolute, like shown here. |
21 | | -sys.path.insert(0, os.path.abspath('..')) |
| 21 | +sys.path.insert(0, os.path.abspath("..")) |
22 | 22 | import geoip2 |
23 | 23 |
|
24 | 24 | # -- General configuration ----------------------------------------------- |
25 | 25 |
|
26 | 26 | # If your documentation needs a minimal Sphinx version, state it here. |
27 | | -#needs_sphinx = '1.0' |
| 27 | +# needs_sphinx = '1.0' |
28 | 28 |
|
29 | 29 | # Add any Sphinx extension module names here, as strings. They can be extensions |
30 | 30 | # coming with Sphinx (named 'sphinx.ext.*') or your custom ones. |
31 | 31 | extensions = [ |
32 | | - 'sphinx.ext.autodoc', 'sphinx.ext.doctest', 'sphinx.ext.intersphinx', |
33 | | - 'sphinx.ext.coverage' |
| 32 | + "sphinx.ext.autodoc", |
| 33 | + "sphinx.ext.doctest", |
| 34 | + "sphinx.ext.intersphinx", |
| 35 | + "sphinx.ext.coverage", |
34 | 36 | ] |
35 | 37 |
|
36 | 38 | # Add any paths that contain templates here, relative to this directory. |
37 | | -templates_path = ['_templates'] |
| 39 | +templates_path = ["_templates"] |
38 | 40 |
|
39 | 41 | # The suffix of source filenames. |
40 | | -source_suffix = '.rst' |
| 42 | +source_suffix = ".rst" |
41 | 43 |
|
42 | 44 | # The encoding of source files. |
43 | | -#source_encoding = 'utf-8-sig' |
| 45 | +# source_encoding = 'utf-8-sig' |
44 | 46 |
|
45 | 47 | # The master toctree document. |
46 | | -master_doc = 'index' |
| 48 | +master_doc = "index" |
47 | 49 |
|
48 | 50 | # General information about the project. |
49 | | -project = 'geoip2' |
50 | | -copyright = '2013-2019, MaxMind, Inc.' |
| 51 | +project = "geoip2" |
| 52 | +copyright = "2013-2019, MaxMind, Inc." |
51 | 53 |
|
52 | 54 | # The version info for the project you're documenting, acts as replacement for |
53 | 55 | # |version| and |release|, also used in various other places throughout the |
|
60 | 62 |
|
61 | 63 | # The language for content autogenerated by Sphinx. Refer to documentation |
62 | 64 | # for a list of supported languages. |
63 | | -#language = None |
| 65 | +# language = None |
64 | 66 |
|
65 | 67 | # There are two options for replacing |today|: either, you set today to some |
66 | 68 | # non-false value, then it is used: |
67 | | -#today = '' |
| 69 | +# today = '' |
68 | 70 | # Else, today_fmt is used as the format for a strftime call. |
69 | | -#today_fmt = '%B %d, %Y' |
| 71 | +# today_fmt = '%B %d, %Y' |
70 | 72 |
|
71 | 73 | # List of patterns, relative to source directory, that match files and |
72 | 74 | # directories to ignore when looking for source files. |
73 | | -exclude_patterns = ['_build'] |
| 75 | +exclude_patterns = ["_build"] |
74 | 76 |
|
75 | 77 | # The reST default role (used for this markup: `text`) to use for all documents. |
76 | | -#default_role = None |
| 78 | +# default_role = None |
77 | 79 |
|
78 | 80 | # If true, '()' will be appended to :func: etc. cross-reference text. |
79 | | -#add_function_parentheses = True |
| 81 | +# add_function_parentheses = True |
80 | 82 |
|
81 | 83 | # If true, the current module name will be prepended to all description |
82 | 84 | # unit titles (such as .. function::). |
83 | | -#add_module_names = True |
| 85 | +# add_module_names = True |
84 | 86 |
|
85 | 87 | # If true, sectionauthor and moduleauthor directives will be shown in the |
86 | 88 | # output. They are ignored by default. |
87 | | -#show_authors = False |
| 89 | +# show_authors = False |
88 | 90 |
|
89 | 91 | # The name of the Pygments (syntax highlighting) style to use. |
90 | | -pygments_style = 'sphinx' |
| 92 | +pygments_style = "sphinx" |
91 | 93 |
|
92 | 94 | # A list of ignored prefixes for module index sorting. |
93 | | -#modindex_common_prefix = [] |
| 95 | +# modindex_common_prefix = [] |
94 | 96 |
|
95 | 97 | # -- Options for HTML output --------------------------------------------- |
96 | 98 |
|
97 | 99 | # The theme to use for HTML and HTML Help pages. See the documentation for |
98 | 100 | # a list of builtin themes. |
99 | | -html_theme = 'sphinxdoc' |
| 101 | +html_theme = "sphinxdoc" |
100 | 102 |
|
101 | 103 | # Theme options are theme-specific and customize the look and feel of a theme |
102 | 104 | # further. For a list of options available for each theme, see the |
103 | 105 | # documentation. |
104 | | -#html_theme_options = {} |
| 106 | +# html_theme_options = {} |
105 | 107 |
|
106 | 108 | # Add any paths that contain custom themes here, relative to this directory. |
107 | | -#html_theme_path = [] |
| 109 | +# html_theme_path = [] |
108 | 110 |
|
109 | 111 | # The name for this set of Sphinx documents. If None, it defaults to |
110 | 112 | # "<project> v<release> documentation". |
111 | | -#html_title = None |
| 113 | +# html_title = None |
112 | 114 |
|
113 | 115 | # A shorter title for the navigation bar. Default is the same as html_title. |
114 | | -#html_short_title = None |
| 116 | +# html_short_title = None |
115 | 117 |
|
116 | 118 | # The name of an image file (relative to this directory) to place at the top |
117 | 119 | # of the sidebar. |
118 | | -#html_logo = None |
| 120 | +# html_logo = None |
119 | 121 |
|
120 | 122 | # The name of an image file (within the static path) to use as favicon of the |
121 | 123 | # docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32 |
122 | 124 | # pixels large. |
123 | | -#html_favicon = None |
| 125 | +# html_favicon = None |
124 | 126 |
|
125 | 127 | # Add any paths that contain custom static files (such as style sheets) here, |
126 | 128 | # relative to this directory. They are copied after the builtin static files, |
127 | 129 | # so a file named "default.css" will overwrite the builtin "default.css". |
128 | | -html_static_path = ['_static'] |
| 130 | +html_static_path = ["_static"] |
129 | 131 |
|
130 | 132 | # If not '', a 'Last updated on:' timestamp is inserted at every page bottom, |
131 | 133 | # using the given strftime format. |
132 | | -#html_last_updated_fmt = '%b %d, %Y' |
| 134 | +# html_last_updated_fmt = '%b %d, %Y' |
133 | 135 |
|
134 | 136 | # If true, SmartyPants will be used to convert quotes and dashes to |
135 | 137 | # typographically correct entities. |
136 | | -#html_use_smartypants = True |
| 138 | +# html_use_smartypants = True |
137 | 139 |
|
138 | 140 | # Custom sidebar templates, maps document names to template names. |
139 | | -#html_sidebars = {} |
| 141 | +# html_sidebars = {} |
140 | 142 |
|
141 | 143 | # Additional templates that should be rendered to pages, maps page names to |
142 | 144 | # template names. |
143 | | -#html_additional_pages = {} |
| 145 | +# html_additional_pages = {} |
144 | 146 |
|
145 | 147 | # If false, no module index is generated. |
146 | | -#html_domain_indices = True |
| 148 | +# html_domain_indices = True |
147 | 149 |
|
148 | 150 | # If false, no index is generated. |
149 | | -#html_use_index = True |
| 151 | +# html_use_index = True |
150 | 152 |
|
151 | 153 | # If true, the index is split into individual pages for each letter. |
152 | | -#html_split_index = False |
| 154 | +# html_split_index = False |
153 | 155 |
|
154 | 156 | # If true, links to the reST sources are added to the pages. |
155 | | -#html_show_sourcelink = True |
| 157 | +# html_show_sourcelink = True |
156 | 158 |
|
157 | 159 | # If true, "Created using Sphinx" is shown in the HTML footer. Default is True. |
158 | | -#html_show_sphinx = True |
| 160 | +# html_show_sphinx = True |
159 | 161 |
|
160 | 162 | # If true, "(C) Copyright ..." is shown in the HTML footer. Default is True. |
161 | | -#html_show_copyright = True |
| 163 | +# html_show_copyright = True |
162 | 164 |
|
163 | 165 | # If true, an OpenSearch description file will be output, and all pages will |
164 | 166 | # contain a <link> tag referring to it. The value of this option must be the |
165 | 167 | # base URL from which the finished HTML is served. |
166 | | -#html_use_opensearch = '' |
| 168 | +# html_use_opensearch = '' |
167 | 169 |
|
168 | 170 | # This is the file name suffix for HTML files (e.g. ".xhtml"). |
169 | | -#html_file_suffix = None |
| 171 | +# html_file_suffix = None |
170 | 172 |
|
171 | 173 | # Output file base name for HTML help builder. |
172 | | -htmlhelp_basename = 'geoip2doc' |
| 174 | +htmlhelp_basename = "geoip2doc" |
173 | 175 |
|
174 | 176 | # -- Options for LaTeX output -------------------------------------------- |
175 | 177 |
|
176 | 178 | latex_elements = { |
177 | 179 | # The paper size ('letterpaper' or 'a4paper'). |
178 | 180 | #'papersize': 'letterpaper', |
179 | | - |
180 | 181 | # The font size ('10pt', '11pt' or '12pt'). |
181 | 182 | #'pointsize': '10pt', |
182 | | - |
183 | 183 | # Additional stuff for the LaTeX preamble. |
184 | 184 | #'preamble': '', |
185 | 185 | } |
186 | 186 |
|
187 | 187 | # Grouping the document tree into LaTeX files. List of tuples |
188 | 188 | # (source start file, target name, title, author, documentclass [howto/manual]). |
189 | 189 | latex_documents = [ |
190 | | - ('index', 'geoip2.tex', 'geoip2 Documentation', 'Gregory Oschwald', |
191 | | - 'manual'), |
| 190 | + ("index", "geoip2.tex", "geoip2 Documentation", "Gregory Oschwald", "manual"), |
192 | 191 | ] |
193 | 192 |
|
194 | 193 | # The name of an image file (relative to this directory) to place at the top of |
195 | 194 | # the title page. |
196 | | -#latex_logo = None |
| 195 | +# latex_logo = None |
197 | 196 |
|
198 | 197 | # For "manual" documents, if this is true, then toplevel headings are parts, |
199 | 198 | # not chapters. |
200 | | -#latex_use_parts = False |
| 199 | +# latex_use_parts = False |
201 | 200 |
|
202 | 201 | # If true, show page references after internal links. |
203 | | -#latex_show_pagerefs = False |
| 202 | +# latex_show_pagerefs = False |
204 | 203 |
|
205 | 204 | # If true, show URL addresses after external links. |
206 | | -#latex_show_urls = False |
| 205 | +# latex_show_urls = False |
207 | 206 |
|
208 | 207 | # Documents to append as an appendix to all manuals. |
209 | | -#latex_appendices = [] |
| 208 | +# latex_appendices = [] |
210 | 209 |
|
211 | 210 | # If false, no module index is generated. |
212 | | -#latex_domain_indices = True |
| 211 | +# latex_domain_indices = True |
213 | 212 |
|
214 | 213 | # -- Options for manual page output -------------------------------------- |
215 | 214 |
|
216 | 215 | # One entry per manual page. List of tuples |
217 | 216 | # (source start file, name, description, authors, manual section). |
218 | | -man_pages = [('index', 'geoip2', 'geoip2 Documentation', ['Gregory Oschwald'], |
219 | | - 1)] |
| 217 | +man_pages = [("index", "geoip2", "geoip2 Documentation", ["Gregory Oschwald"], 1)] |
220 | 218 |
|
221 | 219 | # If true, show URL addresses after external links. |
222 | | -#man_show_urls = False |
| 220 | +# man_show_urls = False |
223 | 221 |
|
224 | 222 | # -- Options for Texinfo output ------------------------------------------ |
225 | 223 |
|
226 | 224 | # Grouping the document tree into Texinfo files. List of tuples |
227 | 225 | # (source start file, target name, title, author, |
228 | 226 | # dir menu entry, description, category) |
229 | 227 | texinfo_documents = [ |
230 | | - ('index', 'geoip2', 'geoip2 Documentation', 'Gregory Oschwald', 'geoip2', |
231 | | - 'One line description of project.', 'Miscellaneous'), |
| 228 | + ( |
| 229 | + "index", |
| 230 | + "geoip2", |
| 231 | + "geoip2 Documentation", |
| 232 | + "Gregory Oschwald", |
| 233 | + "geoip2", |
| 234 | + "One line description of project.", |
| 235 | + "Miscellaneous", |
| 236 | + ), |
232 | 237 | ] |
233 | 238 |
|
234 | 239 | # Documents to append as an appendix to all manuals. |
235 | | -#texinfo_appendices = [] |
| 240 | +# texinfo_appendices = [] |
236 | 241 |
|
237 | 242 | # If false, no module index is generated. |
238 | | -#texinfo_domain_indices = True |
| 243 | +# texinfo_domain_indices = True |
239 | 244 |
|
240 | 245 | # How to display URL addresses: 'footnote', 'no', or 'inline'. |
241 | | -#texinfo_show_urls = 'footnote' |
| 246 | +# texinfo_show_urls = 'footnote' |
242 | 247 |
|
243 | 248 | # Example configuration for intersphinx: refer to the Python standard library. |
244 | | -intersphinx_mapping = {'http://docs.python.org/': None} |
| 249 | +intersphinx_mapping = {"http://docs.python.org/": None} |
0 commit comments