Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 0 additions & 14 deletions scripts/generate_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,6 @@
from textwrap import shorten


skipped_files = [
"docs/preview",
"docs/1.2",
"docs/1.1",
"docs/1.0",
"docs/0.10",
"docs/0.9",
"docs/0.8",
]

SKIP_TYPES = [marko.block.HTMLBlock, marko.inline.Image, marko.inline.InlineHTML]


Expand Down Expand Up @@ -76,8 +66,6 @@ def get_url(fname):


def index_file(fname):
if fname in skipped_files:
return
if not fname.endswith(".md"):
return
with open(fname, "r") as f:
Expand Down Expand Up @@ -142,8 +130,6 @@ def index_file(fname):

def index_dir(dirname):
global file_list
if dirname in skipped_files:
return
files = os.listdir(dirname)
for file in files:
full_path = os.path.join(dirname, file)
Expand Down