From 96ad3df12b5a4a043d06f2d95a2e404264b2643c Mon Sep 17 00:00:00 2001 From: "coderabbitai[bot]" <136622811+coderabbitai[bot]@users.noreply.github.com> Date: Thu, 26 Feb 2026 06:30:42 +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/308#issuecomment-3963232661 The following files were modified: * `generate_index.py` --- generate_index.py | 45 ++++++++++++++++++++++++++++++++++----------- 1 file changed, 34 insertions(+), 11 deletions(-) diff --git a/generate_index.py b/generate_index.py index fb6043ef..e9deb760 100644 --- a/generate_index.py +++ b/generate_index.py @@ -4,6 +4,7 @@ import html import urllib.parse import shutil +import typing from collections import defaultdict from typing import List, Tuple, Dict @@ -77,15 +78,31 @@ def copy_vendor_files(self, output_dir: str) -> None: def rewrite_html_content(self, content: str) -> str: """ - Rewrite CDN asset URLs in HTML to local /vendor/ paths. - - Replaces known external CDN links (React, Babel, Tailwind, PrismJS, FontAwesome, etc.) with corresponding /vendor/... paths and removes `integrity` and `crossorigin` attributes from `` and ` - - - - - - + + + + + + + - - - - - - + + + + + + +