Skip to content

Commit

Permalink
NO-JIRA: Fix small formatting issues picked up by flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
astitcher committed Jan 8, 2025
1 parent 88850e2 commit 36257ed
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions python/docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,9 @@
ver_file_path = os.path.abspath('../../VERSION.txt')
with open(ver_file_path, 'r') as ver_file:
ver_str = ver_file.read().replace('\n', '')
# Strip '-SNAPSHOT' from end of string
if '-' in ver_str:
version = ver_str.split("-")[0] # Strip '-SNAPSHOT' from end of string
version = ver_str.split("-")[0]
else:
version = ver_str
release = version
Expand All @@ -53,7 +54,8 @@
extensions = [
'sphinx.ext.autodoc',
'sphinx.ext.viewcode',
'sphinx.ext.mathjax', # needed for math formulas on some versions of Sphinx
# needed for math formulas on some versions of Sphinx
'sphinx.ext.mathjax'
]

# Add any paths that contain templates here, relative to this directory.
Expand All @@ -73,7 +75,7 @@
#
# This is also used if you do content translation via gettext catalogs.
# Usually you set "language" from the command line for these cases.
#language = None
# language = None

# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.
Expand All @@ -100,7 +102,7 @@
# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
#html_static_path = ['_static']
# html_static_path = []

# Custom sidebar templates, must be a dictionary that maps document names
# to template names.
Expand Down Expand Up @@ -143,7 +145,9 @@
# (source start file, target name, title,
# author, documentclass [howto, manual, or own class]).
latex_documents = [
(master_doc, 'QpidProtonPythonAPI.tex', 'Qpid Proton Python API Documentation',
(master_doc,
'QpidProtonPythonAPI.tex',
'Qpid Proton Python API Documentation',
'Apache Qpid Contributors', 'manual'),
]

Expand Down

0 comments on commit 36257ed

Please sign in to comment.