mirror of
https://github.com/brain-hackers/README
synced 2025-07-06 03:24:12 +09:00
Change splitter
parent
1a1b79c70f
commit
39e5ddaaaf
12
_Sidebar.md
12
_Sidebar.md
@ -1,10 +1,10 @@
|
||||
<!-- This file is generated by generate_toc.py. DO NOT EDIT MANUALLY! -->
|
||||
|
||||
# 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)
|
||||
|
@ -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'])
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user