Skip to content
Merged
Show file tree
Hide file tree
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
15 changes: 14 additions & 1 deletion generate_index.py
Original file line number Diff line number Diff line change
Expand Up @@ -889,6 +889,19 @@ def generate_index(self) -> None:
all_files_html = ""

def render_category_files(structure, sorted_categories):
"""
Builds HTML fragments for category tabs, per-category file lists, and an aggregated all-files list.

Parameters:
structure (Dict[str, List[Tuple[str, str]]]): Mapping from category name to a list of (title, relative_path) pairs for files in that category.
sorted_categories (List[str]): Ordered list of category names to render; determines the iteration order and tab order.

Returns:
Tuple[str, str, str]: A 3-tuple with:
- tabs_html: HTML for the category tab buttons (includes icon and item count for each category).
- tab_contents_html: HTML sections for each category containing the per-category file lists and a "no results" placeholder.
- all_files_html: Aggregated HTML list of all file items across all categories.
"""
tabs_html_list = []
files_html_sections = []
all_files_html_list = [] # Renamed to avoid conflict with outer scope all_files_html
Expand Down Expand Up @@ -942,4 +955,4 @@ def render_category_files(structure, sorted_categories):
print(f"Successfully updated {output_index_path} with vendored assets at {current_time}")

if __name__ == "__main__":
Solution().generate_index()
Solution().generate_index()
2 changes: 1 addition & 1 deletion public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -787,7 +787,7 @@ <h1 class="site-title">

<footer>
<span class="footer-icon">🧪</span>
Generated on 2026-02-21 02:34:10 UTC
Generated on 2026-02-21 02:38:18 UTC
</footer>

<script>
Expand Down