|
12 | 12 | # All configuration values have a default; values that are commented out |
13 | 13 | # serve to show the default. |
14 | 14 |
|
15 | | -import pkg_resources |
| 15 | +import importlib.metadata |
16 | 16 |
|
17 | 17 | # If extensions (or modules to document with autodoc) are in another directory, |
18 | 18 | # add these directories to sys.path here. If the directory is relative to the |
|
28 | 28 | # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom |
29 | 29 | # ones. |
30 | 30 | extensions = [ |
31 | | - 'sphinx.ext.intersphinx', |
32 | | - 'sphinx.ext.autodoc', |
33 | | - 'sphinxcontrib.datatemplates', |
| 31 | + "sphinx.ext.intersphinx", |
| 32 | + "sphinx.ext.autodoc", |
| 33 | + "sphinxcontrib.datatemplates", |
34 | 34 | "sphinxcontrib.runcmd", |
35 | 35 | ] |
36 | 36 |
|
37 | 37 | # Support linking to Python Docs |
38 | 38 | intersphinx_mapping = { |
39 | | - 'python': ('https://docs.python.org/', None), |
40 | | - 'python3': ('https://docs.python.org/3', None), |
41 | | - 'python2': ('https://docs.python.org/2', None) |
| 39 | + "python": ("https://docs.python.org/", None), |
| 40 | + "python3": ("https://docs.python.org/3", None), |
| 41 | + "python2": ("https://docs.python.org/2", None), |
42 | 42 | } |
43 | 43 |
|
44 | 44 | # Add any paths that contain templates here, relative to this directory. |
45 | | -templates_path = ['_templates'] |
| 45 | +templates_path = ["_templates"] |
46 | 46 |
|
47 | 47 | # The suffix(es) of source filenames. |
48 | 48 | # You can specify multiple suffix as a list of string: |
49 | 49 | # source_suffix = ['.rst', '.md'] |
50 | | -source_suffix = '.rst' |
| 50 | +source_suffix = ".rst" |
51 | 51 |
|
52 | 52 | # The encoding of source files. |
53 | 53 | # source_encoding = 'utf-8-sig' |
54 | 54 |
|
55 | 55 | # The master toctree document. |
56 | | -master_doc = 'index' |
| 56 | +master_doc = "index" |
57 | 57 |
|
58 | 58 | # General information about the project. |
59 | | -project = u'sphinxcontrib.datatemplates' |
60 | | -copyright = u'2015, Doug Hellmann' |
61 | | -author = u'Doug Hellmann' |
| 59 | +project = "sphinxcontrib.datatemplates" |
| 60 | +copyright = "2015, Doug Hellmann" |
| 61 | +author = "Doug Hellmann" |
62 | 62 |
|
63 | 63 | # The version info for the project you're documenting, acts as replacement for |
64 | 64 | # |version| and |release|, also used in various other places throughout the |
65 | 65 | # built documents. |
66 | 66 | # |
67 | 67 | # The short X.Y version. |
68 | | -version = pkg_resources.get_distribution('sphinxcontrib.datatemplates').version |
| 68 | +version = importlib.metadata.version("sphinxcontrib.datatemplates") |
69 | 69 | # The full version, including alpha/beta/rc tags. |
70 | | -release = '0.0.0' |
| 70 | +release = "0.0.0" |
71 | 71 |
|
72 | 72 | html_context = { |
73 | | - 'sample': 'Sample context value set in conf.py', |
| 73 | + "sample": "Sample context value set in conf.py", |
74 | 74 | } |
75 | 75 |
|
76 | 76 | # The language for content autogenerated by Sphinx. Refer to documentation |
77 | 77 | # for a list of supported languages. |
78 | 78 | # |
79 | 79 | # This is also used if you do content translation via gettext catalogs. |
80 | 80 | # Usually you set "language" from the command line for these cases. |
81 | | -language = 'en' |
| 81 | +language = "en" |
82 | 82 |
|
83 | 83 | # There are two options for replacing |today|: either, you set today to some |
84 | 84 | # non-false value, then it is used: |
|
106 | 106 | # show_authors = False |
107 | 107 |
|
108 | 108 | # The name of the Pygments (syntax highlighting) style to use. |
109 | | -pygments_style = 'sphinx' |
| 109 | +pygments_style = "sphinx" |
110 | 110 |
|
111 | 111 | # A list of ignored prefixes for module index sorting. |
112 | 112 | # modindex_common_prefix = [] |
|
150 | 150 | # Add any paths that contain custom static files (such as style sheets) here, |
151 | 151 | # relative to this directory. They are copied after the builtin static files, |
152 | 152 | # so a file named "default.css" will overwrite the builtin "default.css". |
153 | | -html_static_path = ['_static'] |
| 153 | +html_static_path = ["_static"] |
154 | 154 |
|
155 | 155 | # Add any extra paths that contain custom files (such as robots.txt or |
156 | 156 | # .htaccess) here, relative to this directory. These files are copied |
|
213 | 213 | # html_search_scorer = 'scorer.js' |
214 | 214 |
|
215 | 215 | # Output file base name for HTML help builder. |
216 | | -htmlhelp_basename = 'sphinxcontribdatatemplatesdoc' |
| 216 | +htmlhelp_basename = "sphinxcontribdatatemplatesdoc" |
217 | 217 |
|
218 | 218 | # -- Options for LaTeX output --------------------------------------------- |
219 | 219 |
|
220 | 220 | latex_elements = { |
221 | 221 | # The paper size ('letterpaper' or 'a4paper'). |
222 | 222 | # 'papersize': 'letterpaper', |
223 | | - |
224 | 223 | # The font size ('10pt', '11pt' or '12pt'). |
225 | 224 | # 'pointsize': '10pt', |
226 | | - |
227 | 225 | # Additional stuff for the LaTeX preamble. |
228 | 226 | # 'preamble': '', |
229 | | - |
230 | 227 | # Latex figure (float) alignment |
231 | 228 | # 'figure_align': 'htbp', |
232 | 229 | } |
|
235 | 232 | # (source start file, target name, title, |
236 | 233 | # author, documentclass [howto, manual, or own class]). |
237 | 234 | latex_documents = [ |
238 | | - (master_doc, 'sphinxcontribdatatemplates.tex', |
239 | | - u'sphinxcontrib.datatemplates Documentation', u'Doug Hellmann', 'manual'), |
| 235 | + ( |
| 236 | + master_doc, |
| 237 | + "sphinxcontribdatatemplates.tex", |
| 238 | + "sphinxcontrib.datatemplates Documentation", |
| 239 | + "Doug Hellmann", |
| 240 | + "manual", |
| 241 | + ), |
240 | 242 | ] |
241 | 243 |
|
242 | 244 | # The name of an image file (relative to this directory) to place at the top of |
|
263 | 265 |
|
264 | 266 | # One entry per manual page. List of tuples |
265 | 267 | # (source start file, name, description, authors, manual section). |
266 | | -man_pages = [(master_doc, 'sphinxcontribdatatemplates', |
267 | | - u'sphinxcontrib.datatemplates Documentation', [author], 1)] |
| 268 | +man_pages = [ |
| 269 | + ( |
| 270 | + master_doc, |
| 271 | + "sphinxcontribdatatemplates", |
| 272 | + "sphinxcontrib.datatemplates Documentation", |
| 273 | + [author], |
| 274 | + 1, |
| 275 | + ) |
| 276 | +] |
268 | 277 |
|
269 | 278 | # If true, show URL addresses after external links. |
270 | 279 | # man_show_urls = False |
|
275 | 284 | # (source start file, target name, title, author, |
276 | 285 | # dir menu entry, description, category) |
277 | 286 | texinfo_documents = [ |
278 | | - (master_doc, 'sphinxcontribdatatemplates', |
279 | | - u'sphinxcontrib.datatemplates Documentation', author, |
280 | | - 'sphinxcontribdatatemplates', 'One line description of project.', |
281 | | - 'Miscellaneous'), |
| 287 | + ( |
| 288 | + master_doc, |
| 289 | + "sphinxcontribdatatemplates", |
| 290 | + "sphinxcontrib.datatemplates Documentation", |
| 291 | + author, |
| 292 | + "sphinxcontribdatatemplates", |
| 293 | + "One line description of project.", |
| 294 | + "Miscellaneous", |
| 295 | + ), |
282 | 296 | ] |
283 | 297 |
|
284 | 298 | # Documents to append as an appendix to all manuals. |
|
0 commit comments