From 30f9ad474f89bbbf3e5435b01bb1c65ccd2eedf7 Mon Sep 17 00:00:00 2001 From: Denis Ah-Kang Date: Thu, 1 Oct 2026 20:26:08 +0400 Subject: [PATCH] mdn-spec-links was moved from w3c to speced --- src/core/mdn-annotation.js | 6 +++--- tests/spec/core/mdn-annotation-spec.js | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/core/mdn-annotation.js b/src/core/mdn-annotation.js index 35f7f32592..68fffbd6e0 100644 --- a/src/core/mdn-annotation.js +++ b/src/core/mdn-annotation.js @@ -6,7 +6,7 @@ import { insertStyle } from "./insert-style.js"; export const name = "core/mdn-annotation"; -const BASE_JSON_PATH = "https://w3c.github.io/mdn-spec-links/"; +const BASE_JSON_PATH = "https://speced.github.io/mdn-spec-links/"; const MDN_URL_BASE = "https://developer.mozilla.org/en-US/docs/Web/"; const MDN_BROWSERS = { // The browser IDs here must match the ones in the imported JSON data. @@ -147,8 +147,8 @@ export async function run(conf) { const msg = `Could not find MDN data associated with key "${mdnKey}".`; const hint = conf.mdn === true - ? docLink`When using \`mdn: true\`, the key defaults to ${"[shortName]"} ("${mdnKey}"). Check that your shortName matches an entry in the [MDN spec links map](https://github.com/w3c/mdn-spec-links/blob/main/SPECMAP.json), or set ${"[mdn]"} to the correct key.` - : docLink`Search for your spec's URL in the [MDN spec links map](https://github.com/w3c/mdn-spec-links/blob/main/SPECMAP.json) to find the correct key, then set ${"[mdn]"} to it.`; + ? docLink`When using \`mdn: true\`, the key defaults to ${"[shortName]"} ("${mdnKey}"). Check that your shortName matches an entry in the [MDN spec links map](https://github.com/speced/mdn-spec-links/blob/main/SPECMAP.json), or set ${"[mdn]"} to the correct key.` + : docLink`Search for your spec's URL in the [MDN spec links map](https://github.com/speced/mdn-spec-links/blob/main/SPECMAP.json) to find the correct key, then set ${"[mdn]"} to it.`; showError(msg, name, { hint }); return; } diff --git a/tests/spec/core/mdn-annotation-spec.js b/tests/spec/core/mdn-annotation-spec.js index c0066aaca4..0d59dc61cd 100644 --- a/tests/spec/core/mdn-annotation-spec.js +++ b/tests/spec/core/mdn-annotation-spec.js @@ -144,7 +144,7 @@ describe("Core - MDN Annotation", () => { }); // Can't directly test `mdn: true` because it uses the default - // BASE_JSON_PATH (w3c.github.io), which isn't available in tests. + // BASE_JSON_PATH (speced.github.io), which isn't available in tests. // Instead, test the explicit-key hint via `mdn.key`. it("shows a helpful hint when an explicit mdn key is not found (404)", async () => { const ops = makeStandardOps({