mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-29 00:35:00 +00:00
Implemented skip for files matching exclude_website_pats patterns.
This commit is contained in:
parent
e3877b9855
commit
b1feb53e9c
1 changed files with 2 additions and 1 deletions
|
@ -76,7 +76,8 @@ def get_index():
|
||||||
nodes = []
|
nodes = []
|
||||||
for fname in tqdm(list(get_package_files())):
|
for fname in tqdm(list(get_package_files())):
|
||||||
fname = Path(fname)
|
fname = Path(fname)
|
||||||
# todo: skip if matches exclude website pats
|
if any(fname.match(pat) for pat in exclude_website_pats):
|
||||||
|
continue
|
||||||
doc = Document(
|
doc = Document(
|
||||||
text=importlib_resources.files("website").joinpath(fname).read_text(),
|
text=importlib_resources.files("website").joinpath(fname).read_text(),
|
||||||
metadata=dict(
|
metadata=dict(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue