From 6b3cf18e99aea9cf7b9608d4060e7d33b345875d Mon Sep 17 00:00:00 2001 From: "coderabbitai[bot]" <136622811+coderabbitai[bot]@users.noreply.github.com> Date: Fri, 20 Feb 2026 07:19:46 +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 | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/generate_index.py b/generate_index.py index 0d0d50d9..1a56f0f7 100644 --- a/generate_index.py +++ b/generate_index.py @@ -76,7 +76,14 @@ def copy_vendor_files(self, output_dir: str) -> None: print(f"Copied FontAwesome webfonts: {fa_fonts_src} -> {fa_fonts_dest}") def rewrite_html_content(self, content: str) -> str: - """Replaces CDN links with local vendor links.""" + """ + Rewrite known CDN asset URLs in an HTML document to their corresponding local vendor paths. + + Replaces specific external CDN links (React, Babel, Tailwind, PrismJS, FontAwesome, etc.) with local /vendor/... paths so the returned HTML references vendored assets. + + Returns: + The input HTML string with matched CDN URLs substituted by local vendor URLs. + """ replacements = [ # React ('https://unpkg.com/react@18/umd/react.development.js', '/vendor/react/react.development.js'), From 5a8eca23c4bf04731603f2f3be2d4a3c241084ae Mon Sep 17 00:00:00 2001 From: "coderabbitai[bot]" <136622811+coderabbitai[bot]@users.noreply.github.com> Date: Fri, 20 Feb 2026 07:20:01 +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 b1682669..c8f71d87 100644 --- a/public/index.html +++ b/public/index.html @@ -785,7 +785,7 @@