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 ` - - - - - - + + + + + + + - - - - - - + + + + + + +