File tree 2 files changed +4
-1
lines changed
src/mkdocstrings_handlers/python
2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change 26
26
ident = "." .join (parts )
27
27
fd .write (f"::: { ident } " )
28
28
29
- mkdocs_gen_files .set_edit_path (full_doc_path , path )
29
+ mkdocs_gen_files .set_edit_path (full_doc_path , ".." / path )
30
30
31
31
with mkdocs_gen_files .open ("reference/SUMMARY.md" , "w" ) as nav_file :
32
32
nav_file .writelines (nav .build_literate_nav ())
Original file line number Diff line number Diff line change 2
2
3
3
from __future__ import annotations
4
4
5
+ import glob
5
6
import os
6
7
import posixpath
7
8
import re
@@ -128,6 +129,8 @@ def __init__(
128
129
super ().__init__ (* args , ** kwargs )
129
130
self ._config_file_path = config_file_path
130
131
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 ]
131
134
if not paths and config_file_path :
132
135
paths .append (os .path .dirname (config_file_path ))
133
136
search_paths = [path for path in sys .path if path ] # eliminate empty path
You can’t perform that action at this time.
0 commit comments