doc changes
This commit is contained in:
@@ -78,6 +78,18 @@ def resolve_nav(
|
||||
raise FileNotFoundError(docs_root)
|
||||
|
||||
def resolve_pattern(pattern: str) -> List[Path]:
|
||||
"""
|
||||
Resolve a single glob pattern relative to the docs_root.
|
||||
|
||||
Args:
|
||||
pattern: The glob pattern to resolve.
|
||||
|
||||
Returns:
|
||||
A sorted list of matching Path objects.
|
||||
|
||||
Raises:
|
||||
FileNotFoundError: If the pattern doesn't match any files.
|
||||
"""
|
||||
full = docs_root / pattern
|
||||
matches = sorted(
|
||||
Path(p) for p in glob.glob(str(full), recursive=True)
|
||||
|
||||
Reference in New Issue
Block a user