diff --git a/generate_index.py b/generate_index.py index 156babcb..c56f233f 100644 --- a/generate_index.py +++ b/generate_index.py @@ -104,6 +104,11 @@ def rewrite_html_content(self, content: str) -> str: return content def generate_index(self) -> None: + """ + Generate a static index HTML page under the public directory listing repository HTML files grouped by category. + + 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. + """ root_dir = "." output_dir = "public" index_file = "index.html" @@ -887,4 +892,4 @@ def generate_index(self) -> None: print(f"Successfully updated {output_index_path} with vendored assets at {current_time}") if __name__ == "__main__": - Solution().generate_index() + Solution().generate_index() \ No newline at end of file diff --git a/public/index.html b/public/index.html index 3e3be5bf..8ee79072 100644 --- a/public/index.html +++ b/public/index.html @@ -784,7 +784,7 @@