starting with sphinx 7.2.0, root is a pathlib.Path not a string anymore
commit7657ad59cbf8fa347211c998919ae10b012915f3
authorMartin Gysel <me@bearsh.org>
Tue, 22 Aug 2023 18:26:28 +0000 (22 20:26 +0200)
committerDavid Aguilar <davvid@gmail.com>
Thu, 24 Aug 2023 20:38:30 +0000 (24 13:38 -0700)
tree86061d0a197e104e5016c798f3059f23e826b060
parent4c640dde455413abe33587f4b34ea799fede43ce
starting with sphinx 7.2.0, root is a pathlib.Path not a string anymore

so convert it to a string, the trailing os.sep is not needed.
os.path.join which is used to join paths, expects string and inserts the
os.sep.

See-also: sphinx-doc/sphinx#11526
See-also: sphinx-doc/sphinx#11608

Signed-off-by: Martin Gysel <me@bearsh.org>
(cherry picked from commit 1293e189ee79703e23870f37feda61b44f635a98)
extras/sphinxtogithub/sphinxtogithub.py