Skip to content

Commit

Permalink
Systematize make_md prefix exclusion
Browse files Browse the repository at this point in the history
  • Loading branch information
mmore500 committed Dec 7, 2023
1 parent 3f156a9 commit a06b4fa
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions doc/make_md.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,13 @@ def format_heading(level, text):
just_dir = "/".join(h.split("/")[:-1]).lower()
last_dir = just_dir.split("/")[-1]
just_file = h.split("/")[-1]
if just_file.startswith("_"):
continue
if just_dir.startswith("in_progress"):
continue
if just_dir.startswith("polyfill"):

excluded_prefixes = [
"_",
"in_progress",
"polyfill",
]
if any(just_file.startswith(prefix) for prefix in excluded_prefixes):
continue
new_dir = "library/" + just_dir + "/api"
print(new_dir)
Expand Down

0 comments on commit a06b4fa

Please sign in to comment.