Sphinx 7.2.0 updates

Environment.srcdir is now a pathlib.Path object rather than string [1].

[1] https://github.com/sphinx-doc/sphinx/commit/49d8304670

Change-Id: Ifd26e2dd2fa36bbc9b0335db08e698db638de26d
Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
This commit is contained in:
Stephen Finucane 2023-08-17 11:25:15 +01:00
parent f626d829dd
commit 7e4e2b0c85
1 changed files with 1 additions and 1 deletions

View File

@ -67,7 +67,7 @@ def _get_last_updated(app, pagename):
# Strip the prefix from the filename so the git command recognizes
# the file as part of the current repository.
src_file = full_src_file[len(app.builder.env.srcdir):].lstrip('/')
src_file = full_src_file[len(str(app.builder.env.srcdir)):].lstrip('/')
candidates.append(src_file)
if not os.path.exists(src_file):