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:
parent
f626d829dd
commit
7e4e2b0c85
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user