Skip to content

Commit bc3fb25

Browse files
committed
Merge branch 'master' of github.com:mkdocstrings/python
2 parents 0cb1630 + 32030df commit bc3fb25

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

docs/gen_ref_nav.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
ident = ".".join(parts)
2727
fd.write(f"::: {ident}")
2828

29-
mkdocs_gen_files.set_edit_path(full_doc_path, path)
29+
mkdocs_gen_files.set_edit_path(full_doc_path, ".." / path)
3030

3131
with mkdocs_gen_files.open("reference/SUMMARY.md", "w") as nav_file:
3232
nav_file.writelines(nav.build_literate_nav())

src/mkdocstrings_handlers/python/handler.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
from __future__ import annotations
44

5+
import glob
56
import os
67
import posixpath
78
import re
@@ -128,6 +129,8 @@ def __init__(
128129
super().__init__(*args, **kwargs)
129130
self._config_file_path = config_file_path
130131
paths = paths or []
132+
resolved_globs = [glob.glob(path) for path in paths]
133+
paths = [path for glob_list in resolved_globs for path in glob_list]
131134
if not paths and config_file_path:
132135
paths.append(os.path.dirname(config_file_path))
133136
search_paths = [path for path in sys.path if path] # eliminate empty path

0 commit comments

Comments
 (0)