Skip to content

Commit

Permalink
fix "Sphinx 8 will drop support for representing paths as strings"
Browse files Browse the repository at this point in the history
/home/runner/work/sssd.io/sssd.io/extensions/sssd/io/postprocess/search.py:58: RemovedInSphinx80Warning: Sphinx 8 will drop support for representing paths as strings. Use "pathlib.Path" or "os.fspath" instead.
  relpath = path[len(build_dir) + 1:]
  • Loading branch information
pbrezina committed Jun 13, 2024
1 parent 7b71c48 commit fb882b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extensions/sssd/io/postprocess/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def build_search_index(app, exception):

docs = []
for path in glob.glob(f'{build_dir}/**/*.html', recursive=True):
relpath = path[len(build_dir) + 1:]
relpath = path[len(str(build_dir)) + 1:]
if relpath in exclude_pages:
continue

Expand Down

0 comments on commit fb882b4

Please sign in to comment.