Skip to content

Commit

Permalink
Keep the chapter layout in checklist
Browse files Browse the repository at this point in the history
  • Loading branch information
ruuda committed May 29, 2024
1 parent 53379eb commit 9e60291
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion export_checklist.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,14 @@ def main() -> None:
by_priority[rec.priority].append(rec)

for priority, recommendations in sorted(by_priority.items()):
print(f"## P{priority}\n")
print(f"## P{priority}")

chapter = ""
for rec in recommendations:
if rec.chapter != chapter:
print(f"\n#### {rec.chapter}")
chapter = rec.chapter

print(f" - [ ] [{rec.title}]({rec.get_url()})")

print()
Expand Down

0 comments on commit 9e60291

Please sign in to comment.