From 2943be5e2993a6f061780dd08cb77d9a4b4b9b6c Mon Sep 17 00:00:00 2001 From: "coderabbitai[bot]" <136622811+coderabbitai[bot]@users.noreply.github.com> Date: Fri, 20 Feb 2026 03:41:29 +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/278#issuecomment-3931297875 The following files were modified: * `generate_index.py` --- generate_index.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/generate_index.py b/generate_index.py index 156babcb..c56f233f 100644 --- a/generate_index.py +++ b/generate_index.py @@ -104,6 +104,11 @@ def rewrite_html_content(self, content: str) -> str: return content def generate_index(self) -> None: + """ + Generate a static index HTML page under the public directory listing repository HTML files grouped by category. + + Scans the repository (excluding common build, VCS, virtualenv and vendor directories), copies required vendor assets into public/vendor, rewrites HTML files to reference local vendored assets, copies those files into the public tree, and produces a themed index at public/index.html with category tabs, search, pagination, per-category icons, total counts, and a UTC generation timestamp. Files in hidden categories (category name starting with '.') or in excluded directories are skipped. If reading or rewriting a file fails, the file is copied as a fallback. + """ root_dir = "." output_dir = "public" index_file = "index.html" @@ -887,4 +892,4 @@ def generate_index(self) -> None: 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 f08f06a4d8a8ae8a7f374f5ff4749353ebd03715 Mon Sep 17 00:00:00 2001 From: "coderabbitai[bot]" <136622811+coderabbitai[bot]@users.noreply.github.com> Date: Fri, 20 Feb 2026 03:41:47 +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 3e3be5bf..8ee79072 100644 --- a/public/index.html +++ b/public/index.html @@ -784,7 +784,7 @@