crate: exclude "target/" directory from %doc file search
This commit is contained in:
parent
607ffb50e6
commit
8506b843c5
1 changed files with 3 additions and 1 deletions
|
@ -137,7 +137,9 @@ def get_doc_files(path: str) -> list[str]:
|
|||
and not LICENSE_FILE_PATTERN.fullmatch(f)
|
||||
and not DOC_FILE_EXCLUDES.fullmatch(f)
|
||||
):
|
||||
results.append(os.path.relpath(os.path.join(root, f), path))
|
||||
relpath = os.path.relpath(os.path.join(root, f), path)
|
||||
if not relpath.startswith("target/"):
|
||||
results.append(relpath)
|
||||
|
||||
results.sort()
|
||||
return results
|
||||
|
|
Loading…
Reference in a new issue