Skip to content

Commit ccdcf80

Browse files
authored
Merge pull request #280 from myoshi2891/coderabbitai/docstrings/4887ca5
📝 Add docstrings to `dev-from-macmini`
2 parents 4887ca5 + 5a8eca2 commit ccdcf80

2 files changed

Lines changed: 9 additions & 2 deletions

File tree

generate_index.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,14 @@ def copy_vendor_files(self, output_dir: str) -> None:
7676
print(f"Copied FontAwesome webfonts: {fa_fonts_src} -> {fa_fonts_dest}")
7777

7878
def rewrite_html_content(self, content: str) -> str:
79-
"""Replaces CDN links with local vendor links."""
79+
"""
80+
Rewrite known CDN asset URLs in an HTML document to their corresponding local vendor paths.
81+
82+
Replaces specific external CDN links (React, Babel, Tailwind, PrismJS, FontAwesome, etc.) with local /vendor/... paths so the returned HTML references vendored assets.
83+
84+
Returns:
85+
The input HTML string with matched CDN URLs substituted by local vendor URLs.
86+
"""
8087
replacements = [
8188
# React
8289
('https://unpkg.com/react@18/umd/react.development.js', '/vendor/react/react.development.js'),

public/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -785,7 +785,7 @@ <h1 class="site-title">
785785

786786
<footer>
787787
<span class="footer-icon">🧪</span>
788-
Generated on 2026-02-20 07:18:20 UTC
788+
Generated on 2026-02-20 07:20:00 UTC
789789
</footer>
790790

791791
<script>

0 commit comments

Comments
 (0)