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