From 594d6c78bc229c655e00e889a5ceb6d6d689da5a Mon Sep 17 00:00:00 2001 From: uduki Date: Thu, 29 Oct 2026 11:43:28 +0900 Subject: [PATCH] =?UTF-8?q?docs:=20=E3=83=88=E3=83=83=E3=83=97=E3=83=9D?= =?UTF-8?q?=E3=83=BC=E3=82=BF=E3=83=AB=EF=BC=88index.html=EF=BC=89?= =?UTF-8?q?=E3=81=AE=E5=80=8B=E5=88=A5=E6=94=BB=E7=95=A5=E3=83=AA=E3=83=B3?= =?UTF-8?q?=E3=82=AF=E3=81=8A=E3=82=88=E3=81=B3=E5=8F=8E=E9=8C=B2=E3=82=B3?= =?UTF-8?q?=E3=83=B3=E3=83=86=E3=83=B3=E3=83=84=E5=90=8C=E6=9C=9F=E6=9B=B4?= =?UTF-8?q?=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.html | 20 ++++++++++++ tools/update_links.py | 72 +++++++++++++++++++------------------------ 2 files changed, 51 insertions(+), 41 deletions(-) diff --git a/index.html b/index.html index 563e9ca..204c98a 100644 --- a/index.html +++ b/index.html @@ -133,6 +133,26 @@ 【アラルレ最頻出・メイン必須】 A/B/Cアラ役割、ボーンドラゴン骨誘導、キングベヒーモス(コメット隠れ)、ティターン(エンシェントフレア床踏み)。 開く ➜ + + クリスタルタワー:シルクスの塔 + 【アラルレ最頻出・メイン必須】 スキュラ(氷解凍・水たまり)、ガーディアン(跳躍台)、アモン(氷隠れ)、ザンデ(レビテト浮遊)。 + 開く ➜ + + + クリスタルタワー:闇の世界 + 【全滅多発難関レイド】 アンラ・マンユ(死の視線・宣告解除)、ケルベロス(小人化胃袋突入・鎖繋ぎ)、暗闇の雲(雲踏み阻止)。 + 開く ➜ + + + アルカディア:ライトヘビー級2〜4層 + 【黄金最新8人レイド】 LH2層ハニー・B・ラブリー(ハートスタック)、LH3層ブルートボンバー(ラリアット・爆弾)、LH4層ウィケッドサンダー(ウィッチハント・床破壊)。 + 開く ➜ + + + 黄金主要討滅戦(ヴァリガルマンダ / ゾラージャ / エターナル・クイーン) + 【Lv93・Lv99・Lv100ラスボス】 3属性天候変化、空間格子切断、仮想浮遊・重力反転、ドーン・エイジ完全攻略。 + 開く ➜ + diff --git a/tools/update_links.py b/tools/update_links.py index 0a877d0..adc002d 100644 --- a/tools/update_links.py +++ b/tools/update_links.py @@ -22,51 +22,41 @@ def clean_and_save(path, content): with open(path, 'wb') as f: f.write(b'\xef\xbb\xbf' + text.encode('utf-8')) -def update_world_of_darkness(): - # 1. raids/index.html - path_idx = 'raids/index.html' - with open(path_idx, 'rb') as f: +def update_top_index(): + path = 'index.html' + with open(path, 'rb') as f: c = f.read().decode('utf-8', errors='ignore') - if 'href="world_of_darkness.html"' not in c: - c = c.replace('\r\n', '\n') - target = '攻略を見る ➜\n ' - new_row = '''攻略を見る ➜ + c = c.replace('\r\n', '\n') + + # ダンジョン・討滅戦・レイドのピックアップを増強 + target = '開く ➜\n ' + new_rows = '''開く ➜ - クリスタルタワー:
闇の世界
- Lv50 (新生2.x / メイン必須) - 【全滅多発難関レイド】 アンラ・マンユ(死の視線)、ケルベロス(胃袋突入・鎖繋ぎ)、暗闇の雲。 - 攻略を見る ➜ + クリスタルタワー:シルクスの塔 + 【アラルレ最頻出・メイン必須】 スキュラ(氷解凍・水たまり)、ガーディアン(跳躍台)、アモン(氷隠れ)、ザンデ(レビテト浮遊)。 + 開く ➜ + + + クリスタルタワー:闇の世界 + 【全滅多発難関レイド】 アンラ・マンユ(死の視線・宣告解除)、ケルベロス(小人化胃袋突入・鎖繋ぎ)、暗闇の雲(雲踏み阻止)。 + 開く ➜ + + + アルカディア:ライトヘビー級2〜4層 + 【黄金最新8人レイド】 LH2層ハニー・B・ラブリー(ハートスタック)、LH3層ブルートボンバー(ラリアット・爆弾)、LH4層ウィケッドサンダー(ウィッチハント・床破壊)。 + 開く ➜ + + + 黄金主要討滅戦(ヴァリガルマンダ / ゾラージャ / エターナル・クイーン) + 【Lv93・Lv99・Lv100ラスボス】 3属性天候変化、空間格子切断、仮想浮遊・重力反転、ドーン・エイジ完全攻略。 + 開く ➜ ''' + if 'raids/syrcus_tower.html' not in c: if target in c: - c = c.replace(target, new_row) - else: - c = re.sub(r'(.*?\s*)', r'\1\n \n クリスタルタワー:
闇の世界
\n Lv50 (新生2.x / メイン必須)\n 【全滅多発難関レイド】 アンラ・マンユ(死の視線)、ケルベロス(胃袋突入・鎖繋ぎ)、暗闇の雲。\n
攻略を見る ➜\n ', c) - clean_and_save(path_idx, c) - print("Updated world_of_darkness in raids/index.html") - - # 2. common/sidebar.html - path_sb = 'common/sidebar.html' - with open(path_sb, 'rb') as f: - c = f.read().decode('utf-8', errors='ignore') - new_sb = '
  • 闇の世界 (Lv50)
  • ' - if new_sb not in c: - c = c.replace('\r\n', '\n') - c = re.sub(r'(
  • .*?
  • )', r'\1\n ' + new_sb, c) - clean_and_save(path_sb, c) - print("Added world_of_darkness to common/sidebar.html") - - # 3. common/js/wiki_common.js - path_js = 'common/js/wiki_common.js' - with open(path_js, 'rb') as f: - c = f.read().decode('utf-8', errors='ignore') - new_js = "{ text: '闇の世界 (Lv50)', path: 'raids/world_of_darkness.html' }" - if 'world_of_darkness.html' not in c: - c = c.replace('\r\n', '\n') - c = re.sub(r"(\{ text: 'シルクスの塔 \(Lv50\)', path: 'raids/syrcus_tower\.html' \})", r"\1,\n " + new_js, c) - clean_and_save(path_js, c) - print("Added world_of_darkness to common/js/wiki_common.js") + c = c.replace(target, new_rows) + clean_and_save(path, c) + print("Updated top index.html successfully") if __name__ == '__main__': - clean_and_save('raids/world_of_darkness.html', open('raids/world_of_darkness.html', 'r', encoding='utf-8', errors='ignore').read()) - update_world_of_darkness() + update_top_index()