Skip to content

Commit

Permalink
Merge pull request #16 from williln/fix-main-toc
Browse files Browse the repository at this point in the history
🔧 Don't include the readmes in the table of contents
  • Loading branch information
williln authored Jun 13, 2024
2 parents e36988b + d0f3c87 commit 6c677ff
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions update_readme.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ def generate_index():
index.append("### {}\n".format(topic))
rows = sorted(by_topic[topic], key=lambda x: x["title"].lower())
for row in rows:
if "README.md" in row["path"]:
continue

index.append(
"* [{title}]({url}) - {date}".format(
date=row["created"].split("T")[0], **row
Expand Down

0 comments on commit 6c677ff

Please sign in to comment.