Change splitter

Takumi Sueda 2020-10-18 03:19:05 +09:00
parent 1a1b79c70f
commit 39e5ddaaaf
7 changed files with 8 additions and 8 deletions

@ -1,10 +1,10 @@
<!-- This file is generated by generate_toc.py. DO NOT EDIT MANUALLY! --> <!-- This file is generated by generate_toc.py. DO NOT EDIT MANUALLY! -->
# Linux # 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 # U-Boot
- [起動 (EBOOT)](U-Boot_%E8%B5%B7%E5%8B%95-%28EBOOT%29) - [起動 (EBOOT)](U%E2%80%90Boot-%3E-%E8%B5%B7%E5%8B%95-%28EBOOT%29)
- [起動 (USB Recovery)](U-Boot_%E8%B5%B7%E5%8B%95-%28USB-Recovery%29) - [起動 (USB Recovery)](U%E2%80%90Boot-%3E-%E8%B5%B7%E5%8B%95-%28USB-Recovery%29)
### ビルド ### ビルド
- [buildbrain](U-Boot_%E3%83%93%E3%83%AB%E3%83%89_buildbrain) - [buildbrain](U%E2%80%90Boot-%3E-%E3%83%92%E3%82%99%E3%83%AB%E3%83%88%E3%82%99-%3E-buildbrain)
- [手動](U-Boot_%E3%83%93%E3%83%AB%E3%83%89_%E6%89%8B%E5%8B%95) - [手動](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)

@ -11,13 +11,13 @@ 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].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())
ptr = ptr[t] 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']) md = markdown.Markdown(extensions=['toc'])