Implemented skip for files matching exclude_website_pats patterns.

This commit is contained in:
Paul Gauthier (aider) 2024-07-05 09:21:41 -03:00
parent e3877b9855
commit b1feb53e9c

View file

@ -76,7 +76,8 @@ def get_index():
nodes = []
for fname in tqdm(list(get_package_files())):
fname = Path(fname)
# todo: skip if matches exclude website pats
if any(fname.match(pat) for pat in exclude_website_pats):
continue
doc = Document(
text=importlib_resources.files("website").joinpath(fname).read_text(),
metadata=dict(