javascript-tutorial / javascript-tutorial/en.javascript.info

resolveMdn no longer trustworthy?

未關閉
#2,471 3 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

主要語言
HTML
星號
25.5k
分支
4k
PR 合併指標
30 天內沒有已合併 PR

描述

I have to replace many ` [ ](mdn: ) ` links and insert the full url in the spanish repo because they lead to 404

* some work ok,
* some give 404 and the lucky english link to click
* some give just the 404 and no other clue

it can not be solved by the engine
because some URL are translated too (some lang keep the same url, but Spanish and French translate some MDN url too)

I tested just one Arab article ( https://ar.javascript.info/prototype-inheritance ),
I got the same issue,

mdn: link obj.hasOwnProperty transforms to
https://developer.mozilla.org/ar/docs/Web/JavaScript/Reference/Global_Objects/Object/hasOwnProperty

404 with the lucky link this time.

貢獻指南

這個儲存庫沒有索引到貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

研究方向

首先從阿拉伯語文章中重現 `mdn: obj.hasOwnProperty` 連結,並將產生的 URL 與所描述的西班牙語和法語情況進行比較。檢查針對在地化 MDN 路徑的 `resolveMdn` 處理;當翻譯後的連結不再導向無法解釋的 404s,或被可靠的完整 URL 取代時,即表示完成。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
javascript
領域
documentation, localization
Issue 類型
缺陷
難度
4/5
預估耗時
3-5 天
活躍度
停滯
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。