Skip to content

Commit

Permalink
fixed conf.py
Browse files Browse the repository at this point in the history
Signed-off-by: Benjamin Jakimow benjamin.jakimow@geo.hu-berlin.de <benjamin.jakimow@geo.hu-berlin.de>
  • Loading branch information
jakimowb committed Apr 5, 2024
1 parent 5faa463 commit 90cf36f
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
# 'sphinxcontrib.mockautodoc',
'sphinx.ext.doctest',
'sphinx.ext.intersphinx',
#'sphinx.ext.autosectionlabel',
# 'sphinx.ext.autosectionlabel',
'sphinxnotes.strike',
'sphinx.ext.todo',
'sphinx.ext.coverage',
Expand All @@ -49,9 +49,12 @@
'sphinx_copybutton',
]

#suppress Duplicate Label Warnings for headings

# suppress Duplicate Label Warnings for headings

def filter_warning_log(app, exception):
if not isinstance(exception, Exception):
return
warning_log = exception._warning_log
# Iterate through the warning log and remove warnings related to labels
exception._warning_log = [
Expand All @@ -63,6 +66,7 @@ def filter_warning_log(app, exception):
])
]


# Register the filter_warning_log function to be called when warnings are logged
def setup(app):
app.connect('build-finished', filter_warning_log)
Expand All @@ -84,7 +88,6 @@ def setup(app):
# The master toctree document.
master_doc = 'index'


# config = configparser.ConfigParser()
# config.read(REPO_ROOT / '.plugin.ini')

Expand Down

0 comments on commit 90cf36f

Please sign in to comment.