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 <me@bearsh.org>
  • Loading branch information
davvid committed Aug 23, 2023
1 parent 0db213f commit 5915ab2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sphinxtogithub/sphinxtogithub.py
Expand Up @@ -107,7 +107,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 5915ab2

Please sign in to comment.