Fix doc build error (#1221)

Apparently doc2path now returns a path not a string
This commit is contained in:
Zsolt Dollenstein 2024-10-10 11:20:25 +01:00 committed by GitHub
parent 527a4b04e1
commit 42df0881ba
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -196,6 +196,7 @@ intersphinx_mapping = {"python": ("https://docs.python.org/3", None)}
# If true, `todo` and `todoList` produce output, else they produce nothing.
todo_include_todos = True
# -- autodoc customization
def strip_class_signature(app, what, name, obj, options, signature, return_annotation):
if what == "class":
@ -218,7 +219,7 @@ def setup(app):
nbsphinx_prolog = r"""
{% set docname = 'docs/source/' + env.doc2path(env.docname, base=None) %}
{% set docname = 'docs/source/' + env.doc2path(env.docname, base=None)|string%}
.. only:: html