mirror of
https://github.com/brain-hackers/README
synced 2024-12-22 20:20:03 +09:00
Replace gt
parent
0faa8c5a87
commit
96a3b47ac7
10
Home.md
10
Home.md
@ -4,10 +4,10 @@
|
|||||||
|
|
||||||
- [Wikiの管理](Wiki%E3%81%AE%E7%AE%A1%E7%90%86)
|
- [Wikiの管理](Wiki%E3%81%AE%E7%AE%A1%E7%90%86)
|
||||||
# Linux
|
# Linux
|
||||||
- [ビルド](Linux---%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---%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---%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---%E3%83%93%E3%83%AB%E3%83%89---buildbrain)
|
- [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---%E3%83%93%E3%83%AB%E3%83%89---%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%AE%A1%E7%90%86)
|
- [Wikiの管理](Wiki%E3%81%AE%E7%AE%A1%E7%90%86)
|
||||||
# Linux
|
# Linux
|
||||||
- [ビルド](Linux---%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---%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---%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---%E3%83%93%E3%83%AB%E3%83%89---buildbrain)
|
- [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---%E3%83%93%E3%83%AB%E3%83%89---%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)
|
||||||
|
4
gen.py
4
gen.py
@ -12,14 +12,14 @@ 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]
|
||||||
|
|
||||||
normalized = normalize('NFC', fn.name[:-3])
|
normalized = normalize('NFC', fn.name[:-3])
|
||||||
idfn[id(ptr)] = quote(normalized.replace(' ', '-').replace('>', '-'), encoding='utf-8')
|
idfn[id(ptr)] = quote(normalized.replace(' ', '-'), encoding='utf-8')
|
||||||
|
|
||||||
md = markdown.Markdown(extensions=['toc'])
|
md = markdown.Markdown(extensions=['toc'])
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user