feat: 共通ヘッダーのメインメニュー限定化、グローバルサイドメニューへのマウント追加、およびコンテンツ追加時のサイドメニュー更新規則の策定

This commit is contained in:
armonica committed 2026-10-29 10:11:21 +09:00
1 parent 22970f4c7e
commit b20fdb934d
5 files changed
+66 -30

No files matched your search

+31 -13
View File
@@ -8,17 +8,10 @@
const WIKI_NAV_CONFIG = {
siteTitle: 'FINAL FANTASY XIV 総合攻略Wiki',
siteDesc: '光の戦士のための実戦立ち回り・XHB配置・マクロ詳細・育成ロードマップ集成 (パッチ7.x 黄金のレガシー対応)',
globalNav: [
{ title: 'トップ', path: 'index.html' },
{ title: 'XHB・操作', path: 'xhb/index.html' },
{ title: '🛡️ タンク', path: 'index.html#tank' },
{ title: '💚 ヒーラー', path: 'jobs/scholar/index.html' },
{ title: '⚔️ 近接DPS', path: 'jobs/samurai/index.html' },
{ title: '🏹 物理レンジ', path: 'jobs/bard/index.html' },
{ title: '🔮 キャスター', path: 'jobs/summoner/index.html' },
{ title: '🔨 ギャザクラ', path: 'crafter_gatherer/index.html' },
{ title: '📜 便利マクロ', path: 'macros/useful_macros.html' },
{ title: '👥 マルチプレイ', path: 'multiplayer/index.html' }
globalNav: [
{ title: '🏠 トップ', path: 'index.html' },
{ title: '⭐ フリートライアル最強装備', path: 'equipment/freetrial_gear_guide.html' },
{ title: '🐎 マウント完全攻略', path: 'mounts/index.html' }
],
sidebar: [
{
@@ -29,7 +22,9 @@ const WIKI_NAV_CONFIG = {
type: 'links',
title: 'メインメニュー',
links: [
{ text: '🏠 Wiki トップ', path: 'index.html' }
{ text: '🏠 Wiki トップ', path: 'index.html' },
{ text: '⭐ フリートライアル最強装備', path: 'equipment/freetrial_gear_guide.html' },
{ text: '🐎 マウント総合・全一覧', path: 'mounts/index.html' }
]
},
{
@@ -94,6 +89,29 @@ const WIKI_NAV_CONFIG = {
}
]
},
{
type: 'links',
title: '⭐ 装備・IL・育成',
links: [
{ text: 'フリトラ最強装備ガイド', path: 'equipment/freetrial_gear_guide.html' }
]
},
{
type: 'links',
title: '🐎 マウント完全攻略',
links: [
{ text: 'マウント総合トップ・全一覧', path: 'mounts/index.html' },
{ text: 'ストーリー・クエスト入手', path: 'mounts/quest_story.html' },
{ text: '友好部族(蛮族)マウント', path: 'mounts/tribal_quests.html' },
{ text: '極蛮神・連動マウント', path: 'mounts/extreme_trials.html' },
{ text: '高難易度レイド・零式', path: 'mounts/raids_savage.html' },
{ text: 'ゴールドソーサー(MGP)', path: 'mounts/gold_saucer.html' },
{ text: 'DD・特殊探索・VD', path: 'mounts/deep_dungeon_field.html' },
{ text: 'アチーブメント・PvP', path: 'mounts/achievements_pvp.html' },
{ text: '生活系・復興・無人島', path: 'mounts/life_island_hunt.html' },
{ text: 'オンラインストア・絶版', path: 'mounts/store_events.html' }
]
},
{
type: 'links',
title: '🔨 ギャザラー・クラフター',
@@ -144,7 +162,7 @@ function getWikiRootPrefix() {
}
const pathname = window.location.pathname.replace(/\\/g, '/');
if (pathname.includes('/jobs/')) return '../../';
if (pathname.includes('/crafter_gatherer/') || pathname.includes('/xhb/') || pathname.includes('/multiplayer/') || pathname.includes('/macros/') || pathname.includes('/common/')) return '../';
if (pathname.includes('/crafter_gatherer/') || pathname.includes('/xhb/') || pathname.includes('/multiplayer/') || pathname.includes('/macros/') || pathname.includes('/mounts/') || pathname.includes('/equipment/') || pathname.includes('/common/')) return '../';
return '';
}