Skip to content

Commit f612395

Browse files
authored
Merge pull request #279 from myoshi2891/coderabbitai/docstrings/5325f80
📝 Add docstrings to `dev-from-macmini`
2 parents 5325f80 + f08f06a commit f612395

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

generate_index.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,11 @@ def rewrite_html_content(self, content: str) -> str:
104104
return content
105105

106106
def generate_index(self) -> None:
107+
"""
108+
Generate a static index HTML page under the public directory listing repository HTML files grouped by category.
109+
110+
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.
111+
"""
107112
root_dir = "."
108113
output_dir = "public"
109114
index_file = "index.html"
@@ -887,4 +892,4 @@ def generate_index(self) -> None:
887892
print(f"Successfully updated {output_index_path} with vendored assets at {current_time}")
888893

889894
if __name__ == "__main__":
890-
Solution().generate_index()
895+
Solution().generate_index()

public/index.html

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

785785
<footer>
786786
<span class="footer-icon">🧪</span>
787-
Generated on 2026-02-20 03:22:46 UTC
787+
Generated on 2026-02-20 03:41:46 UTC
788788
</footer>
789789

790790
<script>

0 commit comments

Comments
 (0)