File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
src/mkdocstrings_handlers/python Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change 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
3131with mkdocs_gen_files .open ("reference/SUMMARY.md" , "w" ) as nav_file :
3232 nav_file .writelines (nav .build_literate_nav ())
Original file line number Diff line number Diff line change 22
33from __future__ import annotations
44
5+ import glob
56import os
67import posixpath
78import 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
You can’t perform that action at this time.
0 commit comments