Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
graphemecluster opened this issue May 6, 2022 · 3 comments
Open

Comments

@graphemecluster
Copy link
Member

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

@syimyuzya
Copy link
Member

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

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

@syimyuzya
Copy link
Member

syimyuzya commented Oct 21, 2022

是這一行作怪 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 需要用 % 跳脫序列

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants