refactored exclude_website_pats

This commit is contained in:
Paul Gauthier 2024-07-05 09:29:35 -03:00
parent b1feb53e9c
commit 9f7197974f
2 changed files with 8 additions and 9 deletions

View file

@ -6,7 +6,6 @@ import warnings
from pathlib import Path
import importlib_resources
from tqdm import tqdm
from aider.dump import dump # noqa: F401
@ -74,10 +73,11 @@ def get_index():
parser = MarkdownNodeParser()
nodes = []
for fname in tqdm(list(get_package_files())):
for fname in get_package_files():
fname = Path(fname)
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(