tshet-uinh-js icon indicating copy to clipboard operation
tshet-uinh-js copied to clipboard

文檔頁面連結中的漢字全被 TypeDoc 換成底線

Open graphemecluster opened this issue 2 years ago • 3 comments

推導方案   → /modules/____.html 表達式    → /modules/___.html 資料     → /modules/__.html 適配分析體系 → /modules/______.html 音韻地位   → /classes/____.html 音韻地位.屬於→ /classes/____.html#__-6

graphemecluster avatar May 06 '22 04:05 graphemecluster

推導方案   → /modules/____.html 表達式    → /modules/___.html 資料     → /modules/__.html 適配分析體系 → /modules/______.html 音韻地位   → /classes/____.html 音韻地位.屬於→ /classes/____.html#__-6

補充一下,而且在這當中,似乎類型和函數字數相同時還會撞名😂

syimyuzya avatar May 06 '22 04:05 syimyuzya

是這一行作怪 https://github.com/TypeStrong/typedoc/blob/e50cd273366977d1e06eac782806a5c6bc49f223/src/lib/models/reflections/abstract.ts#L412 https://github.com/TypeStrong/typedoc/issues/2059

graphemecluster avatar Oct 20 '22 16:10 graphemecluster

是這一行作怪 https://github.com/TypeStrong/typedoc/blob/e50cd273366977d1e06eac782806a5c6bc49f223/src/lib/models/reflections/abstract.ts#L412 TypeStrong/typedoc#2059

😂😂

【雖然看得出來這是規避①一些檔案系統不分大小寫以及②URL與檔名的編碼問題🙈 不過似乎可以試着給 typedoc PR/issue 一個「UTF-8 mode」之類的讓它可以選擇只替換掉 Windows 檔案系統不允許的特別字元,不過度替換非 ASCII 字元 (?)【想了想要做的處理還挺多的,比如允許更多字元後,頁面裡的 URL 和檔名格式就不一定相同了(檔名直接 Unicode 串,而 URL 需要用 % 跳脫序列

syimyuzya avatar Oct 21 '22 05:10 syimyuzya