Skip to content

Commit d970fee

Browse files
committed
Add documentation to clarify collapsible section behavior
Document how the script handles: - Reverse chronological month ordering - Auto-collapse of previous months when new month starts - Chronological order within each month
1 parent c0d326f commit d970fee

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

update_readme.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,15 @@ def parse_table_entries(lines):
5757
return entries_by_month
5858

5959
def generate_collapsible_sections(entries_by_month, current_month_key):
60-
"""Generate HTML collapsible sections for each month."""
60+
"""
61+
Generate HTML collapsible sections for each month.
62+
63+
Behavior:
64+
- Months are displayed in reverse chronological order (newest first)
65+
- Only the current month is expanded (has 'open' attribute)
66+
- On the first day of a new month, the previous month automatically closes
67+
- Entries within each month remain in chronological order
68+
"""
6169
sections = []
6270

6371
# Sort months in descending order (most recent first)

0 commit comments

Comments
 (0)