mirror of
https://github.com/brain-hackers/README
synced 2024-12-22 20:20:03 +09:00
Replace hyphen to space in sidebar
parent
ba9d2e1afe
commit
647adc8b19
10
Home.md
10
Home.md
@ -4,10 +4,10 @@
|
|||||||
|
|
||||||
- [Wikiの編集方法](Wiki%E3%81%AE%E7%B7%A8%E9%9B%86%E6%96%B9%E6%B3%95)
|
- [Wikiの編集方法](Wiki%E3%81%AE%E7%B7%A8%E9%9B%86%E6%96%B9%E6%B3%95)
|
||||||
# Linux
|
# 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
|
# U‐Boot
|
||||||
- [起動 (EBOOT)](U%E2%80%90Boot-%EF%BC%9E-%E8%B5%B7%E5%8B%95-%28EBOOT%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)
|
- [起動 (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)
|
- [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)
|
- [手動](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)
|
||||||
|
10
_Sidebar.md
10
_Sidebar.md
@ -4,10 +4,10 @@
|
|||||||
|
|
||||||
- [Wikiの編集方法](Wiki%E3%81%AE%E7%B7%A8%E9%9B%86%E6%96%B9%E6%B3%95)
|
- [Wikiの編集方法](Wiki%E3%81%AE%E7%B7%A8%E9%9B%86%E6%96%B9%E6%B3%95)
|
||||||
# Linux
|
# 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
|
# U‐Boot
|
||||||
- [起動 (EBOOT)](U%E2%80%90Boot-%EF%BC%9E-%E8%B5%B7%E5%8B%95-%28EBOOT%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)
|
- [起動 (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)
|
- [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)
|
- [手動](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)
|
||||||
|
2
gen.py
2
gen.py
@ -12,7 +12,7 @@ def main():
|
|||||||
if fn.name in {'Home.md', '_Sidebar.md', '_Footer.md'}:
|
if fn.name in {'Home.md', '_Sidebar.md', '_Footer.md'}:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
fn_tokens = fn.name[:-3].split('>')
|
fn_tokens = fn.name[:-3].replace('-', ' ').split('>')
|
||||||
ptr = fn_tree
|
ptr = fn_tree
|
||||||
for t in fn_tokens:
|
for t in fn_tokens:
|
||||||
ptr[t] = ptr.get(t, dict())
|
ptr[t] = ptr.get(t, dict())
|
||||||
|
Loading…
Reference in New Issue
Block a user