From 39e5ddaaaf1a9b32be34c5da16f642db2c8cd6c7 Mon Sep 17 00:00:00 2001 From: Takumi Sueda Date: Sun, 18 Oct 2020 03:19:05 +0900 Subject: [PATCH] Change splitter --- Linux_ビルド.md => Linux > ビルド.md | 0 ...ド_buildbrain.md => U-Boot > ビルド > buildbrain.md | 0 U-Boot_ビルド_手動.md => U-Boot > ビルド > 手動.md | 0 U-Boot_起動 (EBOOT).md => U-Boot > 起動 (EBOOT).md | 0 ...USB Recovery).md => U-Boot > 起動 (USB Recovery).md | 0 _Sidebar.md | 12 ++++++------ generate_toc.py | 4 ++-- 7 files changed, 8 insertions(+), 8 deletions(-) rename Linux_ビルド.md => Linux > ビルド.md (100%) rename U-Boot_ビルド_buildbrain.md => U-Boot > ビルド > buildbrain.md (100%) rename U-Boot_ビルド_手動.md => U-Boot > ビルド > 手動.md (100%) rename U-Boot_起動 (EBOOT).md => U-Boot > 起動 (EBOOT).md (100%) rename U-Boot_起動 (USB Recovery).md => U-Boot > 起動 (USB Recovery).md (100%) diff --git a/Linux_ビルド.md b/Linux > ビルド.md similarity index 100% rename from Linux_ビルド.md rename to Linux > ビルド.md diff --git a/U-Boot_ビルド_buildbrain.md b/U-Boot > ビルド > buildbrain.md similarity index 100% rename from U-Boot_ビルド_buildbrain.md rename to U-Boot > ビルド > buildbrain.md diff --git a/U-Boot_ビルド_手動.md b/U-Boot > ビルド > 手動.md similarity index 100% rename from U-Boot_ビルド_手動.md rename to U-Boot > ビルド > 手動.md diff --git a/U-Boot_起動 (EBOOT).md b/U-Boot > 起動 (EBOOT).md similarity index 100% rename from U-Boot_起動 (EBOOT).md rename to U-Boot > 起動 (EBOOT).md diff --git a/U-Boot_起動 (USB Recovery).md b/U-Boot > 起動 (USB Recovery).md similarity index 100% rename from U-Boot_起動 (USB Recovery).md rename to U-Boot > 起動 (USB Recovery).md diff --git a/_Sidebar.md b/_Sidebar.md index 973e159..91810a7 100644 --- a/_Sidebar.md +++ b/_Sidebar.md @@ -1,10 +1,10 @@ # Linux - - [ビルド](Linux_%E3%83%93%E3%83%AB%E3%83%89) + - [ビルド](Linux-%3E-%E3%83%92%E3%82%99%E3%83%AB%E3%83%88%E3%82%99) # U-Boot - - [起動 (EBOOT)](U-Boot_%E8%B5%B7%E5%8B%95-%28EBOOT%29) - - [起動 (USB Recovery)](U-Boot_%E8%B5%B7%E5%8B%95-%28USB-Recovery%29) -### ビルド - - [buildbrain](U-Boot_%E3%83%93%E3%83%AB%E3%83%89_buildbrain) - - [手動](U-Boot_%E3%83%93%E3%83%AB%E3%83%89_%E6%89%8B%E5%8B%95) + - [起動 (EBOOT)](U%E2%80%90Boot-%3E-%E8%B5%B7%E5%8B%95-%28EBOOT%29) + - [起動 (USB Recovery)](U%E2%80%90Boot-%3E-%E8%B5%B7%E5%8B%95-%28USB-Recovery%29) +### ビルド + - [buildbrain](U%E2%80%90Boot-%3E-%E3%83%92%E3%82%99%E3%83%AB%E3%83%88%E3%82%99-%3E-buildbrain) + - [手動](U%E2%80%90Boot-%3E-%E3%83%92%E3%82%99%E3%83%AB%E3%83%88%E3%82%99-%3E-%E6%89%8B%E5%8B%95) diff --git a/generate_toc.py b/generate_toc.py index 105e982..412722f 100644 --- a/generate_toc.py +++ b/generate_toc.py @@ -11,13 +11,13 @@ def main(): if fn.name in {'Home.md', '_Sidebar.md', '_Footer.md'}: continue - fn_tokens = fn.name[:-3].split('_') + fn_tokens = fn.name[:-3].split(' > ') ptr = fn_tree for t in fn_tokens: ptr[t] = ptr.get(t, dict()) ptr = ptr[t] - idfn[id(ptr)] = quote(fn.name[:-3].replace(' ', '-')) + idfn[id(ptr)] = quote(fn.name[:-3].replace('-', '\u2010').replace(' ', '-')) md = markdown.Markdown(extensions=['toc'])