File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change 8
8
from typing import Awaitable , List , Optional
9
9
10
10
import aiohttp
11
- import fnmatch
12
11
import typer
13
12
14
13
from astropylibrarian .algolia .client import AlgoliaIndex
@@ -75,10 +74,15 @@ def tutorial_site(
75
74
..., help = "Name of the Algolia index." , envvar = "ALGOLIA_INDEX"
76
75
),
77
76
ignore : List [str ] = typer .Option (
78
- lambda : ["index.html" ],
77
+ lambda : [
78
+ "index.html" ,
79
+ "_static/webpack-macros.html" ,
80
+ "_static/sbt-webpack-macros.html" ,
81
+ ],
79
82
help = (
80
83
"List of HTML files to ignore from indexing. The root index.html "
81
- "file is always excluded."
84
+ "file and specific macro files generated by JupyterBook in the `_static_` "
85
+ "directory are always excluded."
82
86
),
83
87
),
84
88
) -> None :
@@ -127,10 +131,6 @@ async def run_index_tutorial_site(
127
131
relative_path = str (PosixPath (html_path .relative_to (site_dir )))
128
132
if relative_path in ignore_paths :
129
133
continue
130
- # allow wildcard matching with ignore_paths
131
- for pp in ignore_paths :
132
- if fnmatch .fnmatch (relative_path , pp ):
133
- continue
134
134
page_url = f"{ root_url } /{ relative_path } "
135
135
tasks .append (
136
136
index_tutorial_from_path (
You can’t perform that action at this time.
0 commit comments