mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-27 15:55:00 +00:00
refactored exclude_website_pats
This commit is contained in:
parent
b1feb53e9c
commit
9f7197974f
2 changed files with 8 additions and 9 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue