From 60ba7185095dbe8a8d451fe3b2ebd397b3d51c22 Mon Sep 17 00:00:00 2001 From: myoshizumi Date: Fri, 20 Feb 2026 11:48:24 +0900 Subject: [PATCH 01/14] feat: add pagination to index.html with max 12 cards per tab --- generate_index.py | 101 +++++++++++++++++++++++++++++++++++++++++++ public/index.html | 107 ++++++++++++++++++++++++++++++++++++++++++++-- 2 files changed, 205 insertions(+), 3 deletions(-) diff --git a/generate_index.py b/generate_index.py index d2b5ab32..3536eebd 100644 --- a/generate_index.py +++ b/generate_index.py @@ -191,6 +191,12 @@ def generate_index(self) -> None: .file-link {{ text-decoration: none; color: #2c3e50; font-weight: 500; display: block; }} .file-path {{ font-size: 0.8em; color: #7f8c8d; margin-top: 5px; display: block; word-break: break-all; }} footer {{ margin-top: 50px; text-align: center; font-size: 0.9em; color: #777; border-top: 1px solid #ddd; padding-top: 20px; }} + .pagination {{ display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 30px; padding-bottom: 20px; }} + .page-button {{ padding: 8px 12px; border: 1px solid #ddd; background: white; cursor: pointer; border-radius: 5px; color: #007bff; font-weight: 500; transition: all 0.2s; }} + .page-button.active {{ background: #007bff; color: white; border-color: #007bff; }} + .page-button:hover:not(.active):not(:disabled) {{ background: #f0f8ff; }} + .page-button:disabled {{ opacity: 0.5; cursor: not-allowed; color: #999; border-color: #eee; }} + .hidden-item {{ display: none !important; }} @@ -214,6 +220,99 @@ def generate_index(self) -> None: """ diff --git a/public/index.html b/public/index.html index 1440e298..9b8db076 100644 --- a/public/index.html +++ b/public/index.html @@ -20,6 +20,12 @@ .file-link { text-decoration: none; color: #2c3e50; font-weight: 500; display: block; } .file-path { font-size: 0.8em; color: #7f8c8d; margin-top: 5px; display: block; word-break: break-all; } footer { margin-top: 50px; text-align: center; font-size: 0.9em; color: #777; border-top: 1px solid #ddd; padding-top: 20px; } + .pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 30px; padding-bottom: 20px; } + .page-button { padding: 8px 12px; border: 1px solid #ddd; background: white; cursor: pointer; border-radius: 5px; color: #007bff; font-weight: 500; transition: all 0.2s; } + .page-button.active { background: #007bff; color: white; border-color: #007bff; } + .page-button:hover:not(.active):not(:disabled) { background: #f0f8ff; } + .page-button:disabled { opacity: 0.5; cursor: not-allowed; color: #999; border-color: #eee; } + .hidden-item { display: none !important; } @@ -181,8 +187,8 @@

Algorithm Study Index

  • Moving Tiles - 重なり面積の時間逆算Mathematics/Fundamentals/HackerRank/Claude/Easy/moving-tiles-visualization.html
  • Robot Unique Paths - 技術解説Mathematics/Combination Calculation/leetcode/62. Unique Paths/Claude/README.html
  • Valid Number Problem - 有限状態機械アルゴリズム解説Mathematics/Finite State Machine/leetcode/65. Valid Number/Claude/README.html
  • -
  • pow(x, n) アルゴリズム解析Mathematics/Exponentiation by Squaring/leetcode/50. Pow(x, n)/Claude/README detailed.html
  • pow(x, n) アルゴリズム解析Mathematics/Exponentiation by Squaring/leetcode/50. Pow(x, n)/Claude/README.html
  • +
  • pow(x, n) アルゴリズム解析Mathematics/Exponentiation by Squaring/leetcode/50. Pow(x, n)/Claude/README detailed.html
  • 原始根の発見 - HackerRank問題解説Mathematics/Number Theory/HackerRank/Easy/Primitive_Problem.html
  • 整数を全て0にする問題 - 可視化デモMathematics/Other/atcoder/B45/README.html
  • 文字列掛け算アルゴリズムの詳細解析Mathematics/Multiply Strings/leetcode/43. Multiply Strings/Claude/README.html
  • @@ -354,8 +360,8 @@

    Algorithm Study Index

  • Moving Tiles - 重なり面積の時間逆算Mathematics/Fundamentals/HackerRank/Claude/Easy/moving-tiles-visualization.html
  • Robot Unique Paths - 技術解説Mathematics/Combination Calculation/leetcode/62. Unique Paths/Claude/README.html
  • Valid Number Problem - 有限状態機械アルゴリズム解説Mathematics/Finite State Machine/leetcode/65. Valid Number/Claude/README.html
  • -
  • pow(x, n) アルゴリズム解析Mathematics/Exponentiation by Squaring/leetcode/50. Pow(x, n)/Claude/README detailed.html
  • pow(x, n) アルゴリズム解析Mathematics/Exponentiation by Squaring/leetcode/50. Pow(x, n)/Claude/README.html
  • +
  • pow(x, n) アルゴリズム解析Mathematics/Exponentiation by Squaring/leetcode/50. Pow(x, n)/Claude/README detailed.html
  • 原始根の発見 - HackerRank問題解説Mathematics/Number Theory/HackerRank/Easy/Primitive_Problem.html
  • 整数を全て0にする問題 - 可視化デモMathematics/Other/atcoder/B45/README.html
  • 文字列掛け算アルゴリズムの詳細解析Mathematics/Multiply Strings/leetcode/43. Multiply Strings/Claude/README.html
  • @@ -371,10 +377,103 @@

    Algorithm Study Index

    \ No newline at end of file From 2813b100839f461d0a42961abd9a5a7c81da6cbe Mon Sep 17 00:00:00 2001 From: myoshi2891 <96483039+myoshi2891@users.noreply.github.com> Date: Fri, 20 Feb 2026 02:48:59 +0000 Subject: [PATCH 02/14] build: auto-generate public directory --- public/index.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/public/index.html b/public/index.html index 9b8db076..019af28e 100644 --- a/public/index.html +++ b/public/index.html @@ -187,8 +187,8 @@

    Algorithm Study Index

  • Moving Tiles - 重なり面積の時間逆算Mathematics/Fundamentals/HackerRank/Claude/Easy/moving-tiles-visualization.html
  • Robot Unique Paths - 技術解説Mathematics/Combination Calculation/leetcode/62. Unique Paths/Claude/README.html
  • Valid Number Problem - 有限状態機械アルゴリズム解説Mathematics/Finite State Machine/leetcode/65. Valid Number/Claude/README.html
  • -
  • pow(x, n) アルゴリズム解析Mathematics/Exponentiation by Squaring/leetcode/50. Pow(x, n)/Claude/README.html
  • pow(x, n) アルゴリズム解析Mathematics/Exponentiation by Squaring/leetcode/50. Pow(x, n)/Claude/README detailed.html
  • +
  • pow(x, n) アルゴリズム解析Mathematics/Exponentiation by Squaring/leetcode/50. Pow(x, n)/Claude/README.html
  • 原始根の発見 - HackerRank問題解説Mathematics/Number Theory/HackerRank/Easy/Primitive_Problem.html
  • 整数を全て0にする問題 - 可視化デモMathematics/Other/atcoder/B45/README.html
  • 文字列掛け算アルゴリズムの詳細解析Mathematics/Multiply Strings/leetcode/43. Multiply Strings/Claude/README.html
  • @@ -360,8 +360,8 @@

    Algorithm Study Index

  • Moving Tiles - 重なり面積の時間逆算Mathematics/Fundamentals/HackerRank/Claude/Easy/moving-tiles-visualization.html
  • Robot Unique Paths - 技術解説Mathematics/Combination Calculation/leetcode/62. Unique Paths/Claude/README.html
  • Valid Number Problem - 有限状態機械アルゴリズム解説Mathematics/Finite State Machine/leetcode/65. Valid Number/Claude/README.html
  • -
  • pow(x, n) アルゴリズム解析Mathematics/Exponentiation by Squaring/leetcode/50. Pow(x, n)/Claude/README.html
  • pow(x, n) アルゴリズム解析Mathematics/Exponentiation by Squaring/leetcode/50. Pow(x, n)/Claude/README detailed.html
  • +
  • pow(x, n) アルゴリズム解析Mathematics/Exponentiation by Squaring/leetcode/50. Pow(x, n)/Claude/README.html
  • 原始根の発見 - HackerRank問題解説Mathematics/Number Theory/HackerRank/Easy/Primitive_Problem.html
  • 整数を全て0にする問題 - 可視化デモMathematics/Other/atcoder/B45/README.html
  • 文字列掛け算アルゴリズムの詳細解析Mathematics/Multiply Strings/leetcode/43. Multiply Strings/Claude/README.html
  • @@ -377,7 +377,7 @@

    Algorithm Study Index

    """ + # HTML生成 tabs_html = "" tab_contents_html = "" all_files_html = "" @@ -341,24 +857,27 @@ def generate_index(self) -> None: for category in sorted_categories: files = structure[category] count = len(files) - tabs_html += f'\n' + icon = category_icons.get(category, '') + css_cat = category.lower() + + tabs_html += f'\n' file_list_html = '' - tab_contents_html += f'
    \n{file_list_html}\n
    \n' + tab_contents_html += f'
    \n{file_list_html}\n
    \U0001F50ENo results found
    \n
    \n' final_html = html_template.format( tabs=tabs_html, all_files=all_files_html, tab_contents=tab_contents_html, - timestamp=current_time + timestamp=current_time, + total_count=total_count, ) output_index_path = os.path.join(output_dir, index_file) diff --git a/public/index.html b/public/index.html index 9b8db076..b3eb1bea 100644 --- a/public/index.html +++ b/public/index.html @@ -1,392 +1,799 @@ - + - Algorithm Study Index + Algorithm Study Lab + + + -

    Algorithm Study Index

    + + + + +
    + 🔍 + + + +
    - - - - - - - + + + + + + +
    +
    🔎No results found
    +
    🔎No results found
    +
    🔎No results found
    +
    🔎No results found
    +
    🔎No results found
    +
    🔎No results found
    +
    🔎No results found
    \ No newline at end of file From 5325f80c644a1497e2b38b5dccab7b2ca2068441 Mon Sep 17 00:00:00 2001 From: myoshi2891 <96483039+myoshi2891@users.noreply.github.com> Date: Fri, 20 Feb 2026 03:22:47 +0000 Subject: [PATCH 04/14] build: auto-generate public directory --- public/index.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/public/index.html b/public/index.html index 21d573a4..3e3be5bf 100644 --- a/public/index.html +++ b/public/index.html @@ -586,8 +586,8 @@

  • 📐Moving Tiles - 重なり面積の時間逆算Mathematics/Fundamentals/HackerRank/Claude/Easy/moving-tiles-visualization.html
  • 📐Robot Unique Paths - 技術解説Mathematics/Combination Calculation/leetcode/62. Unique Paths/Claude/README.html
  • 📐Valid Number Problem - 有限状態機械アルゴリズム解説Mathematics/Finite State Machine/leetcode/65. Valid Number/Claude/README.html
  • -
  • 📐pow(x, n) アルゴリズム解析Mathematics/Exponentiation by Squaring/leetcode/50. Pow(x, n)/Claude/README.html
  • 📐pow(x, n) アルゴリズム解析Mathematics/Exponentiation by Squaring/leetcode/50. Pow(x, n)/Claude/README detailed.html
  • +
  • 📐pow(x, n) アルゴリズム解析Mathematics/Exponentiation by Squaring/leetcode/50. Pow(x, n)/Claude/README.html
  • 📐原始根の発見 - HackerRank問題解説Mathematics/Number Theory/HackerRank/Easy/Primitive_Problem.html
  • 📐整数を全て0にする問題 - 可視化デモMathematics/Other/atcoder/B45/README.html
  • 📐文字列掛け算アルゴリズムの詳細解析Mathematics/Multiply Strings/leetcode/43. Multiply Strings/Claude/README.html
  • @@ -764,8 +764,8 @@

  • 📐Moving Tiles - 重なり面積の時間逆算Mathematics/Fundamentals/HackerRank/Claude/Easy/moving-tiles-visualization.html
  • 📐Robot Unique Paths - 技術解説Mathematics/Combination Calculation/leetcode/62. Unique Paths/Claude/README.html
  • 📐Valid Number Problem - 有限状態機械アルゴリズム解説Mathematics/Finite State Machine/leetcode/65. Valid Number/Claude/README.html
  • -
  • 📐pow(x, n) アルゴリズム解析Mathematics/Exponentiation by Squaring/leetcode/50. Pow(x, n)/Claude/README.html
  • 📐pow(x, n) アルゴリズム解析Mathematics/Exponentiation by Squaring/leetcode/50. Pow(x, n)/Claude/README detailed.html
  • +
  • 📐pow(x, n) アルゴリズム解析Mathematics/Exponentiation by Squaring/leetcode/50. Pow(x, n)/Claude/README.html
  • 📐原始根の発見 - HackerRank問題解説Mathematics/Number Theory/HackerRank/Easy/Primitive_Problem.html
  • 📐整数を全て0にする問題 - 可視化デモMathematics/Other/atcoder/B45/README.html
  • 📐文字列掛け算アルゴリズムの詳細解析Mathematics/Multiply Strings/leetcode/43. Multiply Strings/Claude/README.html
  • @@ -784,7 +784,7 @@

    🧪 - Generated on 2026-02-20 03:21:54 UTC + Generated on 2026-02-20 03:22:46 UTC