From 647adc8b19836fb3d17874fcf85ef1507366481e Mon Sep 17 00:00:00 2001 From: Takumi Sueda Date: Mon, 19 Oct 2020 14:00:04 +0900 Subject: [PATCH] Replace hyphen to space in sidebar --- Home.md | 10 +++++----- _Sidebar.md | 10 +++++----- gen.py | 2 +- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/Home.md b/Home.md index 7562877..0c5b036 100644 --- a/Home.md +++ b/Home.md @@ -4,10 +4,10 @@ - [Wikiの編集方法](Wiki%E3%81%AE%E7%B7%A8%E9%9B%86%E6%96%B9%E6%B3%95) # Linux - - [ビルド](Linux-%EF%BC%9E-%E3%83%93%E3%83%AB%E3%83%89) + - [ビルド](Linux%EF%BC%9E%E3%83%93%E3%83%AB%E3%83%89) # U‐Boot - - [起動 (EBOOT)](U%E2%80%90Boot-%EF%BC%9E-%E8%B5%B7%E5%8B%95-%28EBOOT%29) - - [起動 (USB Recovery)](U%E2%80%90Boot-%EF%BC%9E-%E8%B5%B7%E5%8B%95-%28USB-Recovery%29) + - [起動 (EBOOT)](U%E2%80%90Boot%EF%BC%9E%E8%B5%B7%E5%8B%95-%28EBOOT%29) + - [起動 (USB Recovery)](U%E2%80%90Boot%EF%BC%9E%E8%B5%B7%E5%8B%95-%28USB-Recovery%29) ### ビルド - - [buildbrain](U%E2%80%90Boot-%EF%BC%9E-%E3%83%93%E3%83%AB%E3%83%89-%EF%BC%9E-buildbrain) - - [手動](U%E2%80%90Boot-%EF%BC%9E-%E3%83%93%E3%83%AB%E3%83%89-%EF%BC%9E-%E6%89%8B%E5%8B%95) + - [buildbrain](U%E2%80%90Boot%EF%BC%9E%E3%83%93%E3%83%AB%E3%83%89%EF%BC%9Ebuildbrain) + - [手動](U%E2%80%90Boot%EF%BC%9E%E3%83%93%E3%83%AB%E3%83%89%EF%BC%9E%E6%89%8B%E5%8B%95) diff --git a/_Sidebar.md b/_Sidebar.md index 1a2152c..6c22c24 100644 --- a/_Sidebar.md +++ b/_Sidebar.md @@ -4,10 +4,10 @@ - [Wikiの編集方法](Wiki%E3%81%AE%E7%B7%A8%E9%9B%86%E6%96%B9%E6%B3%95) # Linux - - [ビルド](Linux-%EF%BC%9E-%E3%83%93%E3%83%AB%E3%83%89) + - [ビルド](Linux%EF%BC%9E%E3%83%93%E3%83%AB%E3%83%89) # U‐Boot - - [起動 (EBOOT)](U%E2%80%90Boot-%EF%BC%9E-%E8%B5%B7%E5%8B%95-%28EBOOT%29) - - [起動 (USB Recovery)](U%E2%80%90Boot-%EF%BC%9E-%E8%B5%B7%E5%8B%95-%28USB-Recovery%29) + - [起動 (EBOOT)](U%E2%80%90Boot%EF%BC%9E%E8%B5%B7%E5%8B%95-%28EBOOT%29) + - [起動 (USB Recovery)](U%E2%80%90Boot%EF%BC%9E%E8%B5%B7%E5%8B%95-%28USB-Recovery%29) ### ビルド - - [buildbrain](U%E2%80%90Boot-%EF%BC%9E-%E3%83%93%E3%83%AB%E3%83%89-%EF%BC%9E-buildbrain) - - [手動](U%E2%80%90Boot-%EF%BC%9E-%E3%83%93%E3%83%AB%E3%83%89-%EF%BC%9E-%E6%89%8B%E5%8B%95) + - [buildbrain](U%E2%80%90Boot%EF%BC%9E%E3%83%93%E3%83%AB%E3%83%89%EF%BC%9Ebuildbrain) + - [手動](U%E2%80%90Boot%EF%BC%9E%E3%83%93%E3%83%AB%E3%83%89%EF%BC%9E%E6%89%8B%E5%8B%95) diff --git a/gen.py b/gen.py index 1932316..47c9fff 100644 --- a/gen.py +++ b/gen.py @@ -12,7 +12,7 @@ def main(): if fn.name in {'Home.md', '_Sidebar.md', '_Footer.md'}: continue - fn_tokens = fn.name[:-3].split('>') + fn_tokens = fn.name[:-3].replace('-', ' ').split('>') ptr = fn_tree for t in fn_tokens: ptr[t] = ptr.get(t, dict())