From 2285fa599a11345ca54d92dc8eabe95a7d8017a5 Mon Sep 17 00:00:00 2001 From: "coderabbitai[bot]" <136622811+coderabbitai[bot]@users.noreply.github.com> Date: Sat, 21 Feb 2026 02:38:04 +0000 Subject: [PATCH 1/2] =?UTF-8?q?=F0=9F=93=9D=20Add=20docstrings=20to=20`dev?= =?UTF-8?q?-from-macmini`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Docstrings generation was requested by @myoshi2891. * https://github.com/myoshi2891/Algorithm-DataStructures-Math-SQL/pull/281#issuecomment-3937767850 The following files were modified: * `generate_index.py` --- generate_index.py | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/generate_index.py b/generate_index.py index 9738e8a2..52097c01 100644 --- a/generate_index.py +++ b/generate_index.py @@ -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 @@ -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() \ No newline at end of file From 4e5c0c2e55c414ef2ce377b6663a95d26a482a00 Mon Sep 17 00:00:00 2001 From: "coderabbitai[bot]" <136622811+coderabbitai[bot]@users.noreply.github.com> Date: Sat, 21 Feb 2026 02:38:19 +0000 Subject: [PATCH 2/2] build: auto-generate public directory --- public/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/index.html b/public/index.html index 7379bb74..da5089a0 100644 --- a/public/index.html +++ b/public/index.html @@ -787,7 +787,7 @@