Skip to content

Commit abde946

Browse files
authored
fix(core/mdn-annotation): mdn-spec-links has been transferred from w3c to speced (#5484)
1 parent 19d9a5b commit abde946

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎src/core/mdn-annotation.js‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { insertStyle } from "./insert-style.js";
66

77
export const name = "core/mdn-annotation";
88

9-
const BASE_JSON_PATH = "https://w3c.github.io/mdn-spec-links/";
9+
const BASE_JSON_PATH = "https://speced.github.io/mdn-spec-links/";
1010
const MDN_URL_BASE = "https://developer.mozilla.org/en-US/docs/Web/";
1111
const MDN_BROWSERS = {
1212
// The browser IDs here must match the ones in the imported JSON data.
@@ -147,8 +147,8 @@ export async function run(conf) {
147147
const msg = `Could not find MDN data associated with key "${mdnKey}".`;
148148
const hint =
149149
conf.mdn === true
150-
? 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.`
151-
: 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.`;
150+
? 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.`
151+
: 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.`;
152152
showError(msg, name, { hint });
153153
return;
154154
}

‎tests/spec/core/mdn-annotation-spec.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ describe("Core - MDN Annotation", () => {
144144
});
145145

146146
// Can't directly test `mdn: true` because it uses the default
147-
// BASE_JSON_PATH (w3c.github.io), which isn't available in tests.
147+
// BASE_JSON_PATH (speced.github.io), which isn't available in tests.
148148
// Instead, test the explicit-key hint via `mdn.key`.
149149
it("shows a helpful hint when an explicit mdn key is not found (404)", async () => {
150150
const ops = makeStandardOps({

0 commit comments

Comments
 (0)