Skip to content

Commit f09e3c3

Browse files
committed
ignore_paths
1 parent 63e7126 commit f09e3c3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

astropylibrarian/cli/index.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,9 @@ async def run_index_tutorial_site(
128128
if relative_path in ignore_paths:
129129
continue
130130
# allow wildcard matching with ignore_paths
131-
if fnmatch.fnmatch(relative_path, ignore_paths):
132-
continue
131+
for pp in ignore_paths:
132+
if fnmatch.fnmatch(relative_path, pp):
133+
continue
133134
page_url = f"{root_url}/{relative_path}"
134135
tasks.append(
135136
index_tutorial_from_path(

0 commit comments

Comments
 (0)