Skip to content

Commit

Permalink
sphinxtogithub: add support for Sphinx 7.2.0
Browse files Browse the repository at this point in the history
Newer versions of sphinx use a pathlib.Path object instead
of a string for the "root" parameter. Add compatibility
by stringifying the value provided by Sphinx.

See-also: sphinx-doc/sphinx#11526
See-also: sphinx-doc/sphinx#11608
See-also: git-cola/git-cola#1336
Original-patch-by: Martin Gysel <[email protected]>
  • Loading branch information
davvid committed Aug 23, 2023
1 parent 0a46518 commit 1c6218c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sphinxtogithub/sphinxtogithub.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def __init__(self, name, root, renamer):

self.name = name
self.new_name = name[1:]
self.root = root + os.sep
self.root = str(root) + os.sep
self.renamer = renamer

def path(self):
Expand Down

0 comments on commit 1c6218c

Please sign in to comment.