Replace gt

Takumi Sueda 2020-10-19 13:31:26 +09:00
parent 0faa8c5a87
commit 96a3b47ac7
8 changed files with 12 additions and 12 deletions

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)
# UBoot # UBoot
- [起動 (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,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)
# UBoot # UBoot
- [起動 (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

@ -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'])