1313# serve to show the default.
1414
1515import os
16+
1617try :
1718 import tomllib
1819except ImportError :
@@ -39,6 +40,7 @@ def _read_version_from_pyproject(pyproject_path=None):
3940 elif "tool" in data and "poetry" in data ["tool" ] and "version" in data ["tool" ]["poetry" ]:
4041 return data ["tool" ]["poetry" ]["version" ]
4142
43+
4244# -- General configuration ------------------------------------------------
4345
4446
@@ -64,12 +66,7 @@ def _read_version_from_pyproject(pyproject_path=None):
6466# Add any Sphinx extension module names here, as strings. They can be
6567# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
6668# ones.
67- extensions = [
68- 'sphinx.ext.autodoc' ,
69- 'sphinx.ext.coverage' ,
70- 'sphinx.ext.napoleon' ,
71- 'sphinx.ext.viewcode'
72- ]
69+ extensions = ['sphinx.ext.autodoc' , 'sphinx.ext.coverage' , 'sphinx.ext.napoleon' , 'sphinx.ext.viewcode' ]
7370
7471# Add any paths that contain templates here, relative to this directory.
7572templates_path = ['_templates' ]
@@ -212,10 +209,8 @@ def _read_version_from_pyproject(pyproject_path=None):
212209latex_elements = {
213210 # The paper size ('letterpaper' or 'a4paper').
214211 # 'papersize': 'letterpaper',
215-
216212 # The font size ('10pt', '11pt' or '12pt').
217213 # 'pointsize': '10pt',
218-
219214 # Additional stuff for the LaTeX preamble.
220215 # 'preamble': '',
221216}
@@ -224,8 +219,7 @@ def _read_version_from_pyproject(pyproject_path=None):
224219# (source start file, target name, title,
225220# author, documentclass [howto, manual, or own class]).
226221latex_documents = [
227- ('index' , 'confluent-kafka.tex' , u'confluent-kafka Documentation' ,
228- u'Magnus Edenhill' , 'manual' ),
222+ ('index' , 'confluent-kafka.tex' , u'confluent-kafka Documentation' , u'Magnus Edenhill' , 'manual' ),
229223]
230224
231225# The name of an image file (relative to this directory) to place at the top of
@@ -253,10 +247,7 @@ def _read_version_from_pyproject(pyproject_path=None):
253247
254248# One entry per manual page. List of tuples
255249# (source start file, name, description, authors, manual section).
256- man_pages = [
257- ('index' , 'confluent-kafka' , u'confluent-kafka Documentation' ,
258- [u'Magnus Edenhill' ], 1 )
259- ]
250+ man_pages = [('index' , 'confluent-kafka' , u'confluent-kafka Documentation' , [u'Magnus Edenhill' ], 1 )]
260251
261252# If true, show URL addresses after external links.
262253# man_show_urls = False
@@ -268,9 +259,15 @@ def _read_version_from_pyproject(pyproject_path=None):
268259# (source start file, target name, title, author,
269260# dir menu entry, description, category)
270261texinfo_documents = [
271- ('index' , 'confluent-kafka' , u'confluent-kafka Documentation' ,
272- u'Magnus Edenhill' , 'confluent-kafka' , 'One line description of project.' ,
273- 'Miscellaneous' ),
262+ (
263+ 'index' ,
264+ 'confluent-kafka' ,
265+ u'confluent-kafka Documentation' ,
266+ u'Magnus Edenhill' ,
267+ 'confluent-kafka' ,
268+ 'One line description of project.' ,
269+ 'Miscellaneous' ,
270+ ),
274271]
275272
276273# Documents to append as an appendix to all manuals.
0 commit comments