Skip to content

Commit 0142b7c

Browse files
committed
Use v3 subdomain for links from v3 codebase
1 parent eade9a7 commit 0142b7c

File tree

10 files changed

+23
-23
lines changed

10 files changed

+23
-23
lines changed

src/Eleventy.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1403,13 +1403,13 @@ Object.assign(HtmlBasePlugin, HtmlBasePluginExtras);
14031403

14041404
const EleventyServerlessBundlerPlugin = function () {
14051405
throw new Error(
1406-
"Following feedback from our Community Survey, low interest in this plugin prompted its removal from Eleventy core in 3.0 as we refocus on static sites. Learn more: https://www.11ty.dev/docs/plugins/serverless/",
1406+
"Following feedback from our Community Survey, low interest in this plugin prompted its removal from Eleventy core in 3.0 as we refocus on static sites. Learn more: https://v3.11ty.dev/docs/plugins/serverless/",
14071407
);
14081408
};
14091409

14101410
const EleventyEdgePlugin = function () {
14111411
throw new Error(
1412-
"Following feedback from our Community Survey, low interest in this plugin prompted its removal from Eleventy core in 3.0 as we refocus on static sites. Learn more: https://www.11ty.dev/docs/plugins/edge/",
1412+
"Following feedback from our Community Survey, low interest in this plugin prompted its removal from Eleventy core in 3.0 as we refocus on static sites. Learn more: https://v3.11ty.dev/docs/plugins/edge/",
14131413
);
14141414
};
14151415

src/EleventyFiles.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ class EleventyFiles {
368368
let fullVirtualPath = this.dirs.getInputPath(path);
369369
if (!this.extensionMap.getKey(fullVirtualPath)) {
370370
this.eleventyConfig.logger.warn(
371-
`The virtual template at ${fullVirtualPath} is using a template format that’s not valid for your project. Your project is using: "${this.formats}". Read more about formats: https://www.11ty.dev/docs/config/#template-formats`,
371+
`The virtual template at ${fullVirtualPath} is using a template format that’s not valid for your project. Your project is using: "${this.formats}". Read more about formats: https://v3.11ty.dev/docs/config/#template-formats`,
372372
);
373373
}
374374
return fullVirtualPath;

src/Engines/TemplateEngine.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ class TemplateEngine {
164164
throw new Error("compile() must be implemented by engine");
165165
}
166166

167-
// See https://www.11ty.dev/docs/watch-serve/#watch-javascript-dependencies
167+
// See https://v3.11ty.dev/docs/watch-serve/#watch-javascript-dependencies
168168
static shouldSpiderJavaScriptDependencies() {
169169
return false;
170170
}

src/Engines/TemplateEngineManager.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ class TemplateEngineManager {
5555
// Custom entries *can* overwrite default entries above
5656
if ("extensionMap" in this.config) {
5757
for (let entry of this.config.extensionMap) {
58-
// either the key does not already exist or it is not a simple alias and is an override: https://www.11ty.dev/docs/languages/custom/#overriding-an-existing-template-language
58+
// either the key does not already exist or it is not a simple alias and is an override: https://v3.11ty.dev/docs/languages/custom/#overriding-an-existing-template-language
5959
let existingTarget = this._keyToClassNameMap[entry.key];
6060
let isAlias = TemplateEngineManager.isAlias(entry);
6161

@@ -173,7 +173,7 @@ class TemplateEngineManager {
173173
// Warning about engine deprecation
174174
if (this.isEngineRemovedFromCore(name)) {
175175
throw new Error(
176-
`Per the 11ty Community Survey (2023), the "${name}" template language was moved from core to an officially supported plugin in v3.0. These plugins live here: https://github.com/11ty/eleventy-plugin-template-languages and are documented on their respective template language docs at https://www.11ty.dev/docs/languages/ You are also empowered to implement *any* template language yourself using https://www.11ty.dev/docs/languages/custom/`,
176+
`Per the 11ty Community Survey (2023), the "${name}" template language was moved from core to an officially supported plugin in v3.0. These plugins live here: https://github.com/11ty/eleventy-plugin-template-languages and are documented on their respective template language docs at https://v3.11ty.dev/docs/languages/ You are also empowered to implement *any* template language yourself using https://v3.11ty.dev/docs/languages/custom/`,
177177
);
178178
}
179179

src/Plugins/RenderPlugin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ async function renderShortcodeFn(fn, data) {
130130

131131
/**
132132
* A plugin to add shortcodes to render an Eleventy template
133-
* string (or file) inside of another template. {@link https://www.11ty.dev/docs/plugins/render/}
133+
* string (or file) inside of another template. {@link https://v3.11ty.dev/docs/plugins/render/}
134134
*
135135
* @since 1.0.0
136136
* @param {module:11ty/eleventy/UserConfig} eleventyConfig - User-land configuration instance.

src/Template.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ class Template extends TemplateContent {
386386
e.message.endsWith("not extensible"))
387387
) {
388388
throw new EleventyBaseError(
389-
`You attempted to set one of Eleventy’s reserved data property names${e.reservedNames ? `: ${e.reservedNames.join(", ")}` : ""}. You can opt-out of this behavior with \`eleventyConfig.setFreezeReservedData(false)\` or rename/remove the property in your data cascade that conflicts with Eleventy’s reserved property names (e.g. \`eleventy\`, \`pkg\`, and others). Learn more: https://www.11ty.dev/docs/data-eleventy-supplied/`,
389+
`You attempted to set one of Eleventy’s reserved data property names${e.reservedNames ? `: ${e.reservedNames.join(", ")}` : ""}. You can opt-out of this behavior with \`eleventyConfig.setFreezeReservedData(false)\` or rename/remove the property in your data cascade that conflicts with Eleventy’s reserved property names (e.g. \`eleventy\`, \`pkg\`, and others). Learn more: https://v3.11ty.dev/docs/data-eleventy-supplied/`,
390390
e,
391391
);
392392
}

src/TemplateConfig.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ class TemplateConfig {
387387
localConfig = configDefaultReturn;
388388
}
389389

390-
// Removed a check for `filters` in 3.0.0-alpha.6 (now using addTransform instead) https://www.11ty.dev/docs/config/#transforms
390+
// Removed a check for `filters` in 3.0.0-alpha.6 (now using addTransform instead) https://v3.11ty.dev/docs/config/#transforms
391391
} catch (err) {
392392
let isModuleError =
393393
err instanceof Error && (err?.message || "").includes("Cannot find module");

src/TemplateFileSlug.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class TemplateFileSlug {
1919
this.filenameNoExt = extensionMap.removeTemplateExtension(this.parsed.base);
2020
}
2121

22-
// `page.filePathStem` see https://www.11ty.dev/docs/data-eleventy-supplied/#page-variable
22+
// `page.filePathStem` see https://v3.11ty.dev/docs/data-eleventy-supplied/#page-variable
2323
getFullPathWithoutExtension() {
2424
return "/" + TemplatePath.join(...this.dirs, this._getRawSlug());
2525
}
@@ -38,7 +38,7 @@ class TemplateFileSlug {
3838
return slug;
3939
}
4040

41-
// `page.fileSlug` see https://www.11ty.dev/docs/data-eleventy-supplied/#page-variable
41+
// `page.fileSlug` see https://v3.11ty.dev/docs/data-eleventy-supplied/#page-variable
4242
getSlug() {
4343
let rawSlug = this._getRawSlug();
4444

test/EleventyTest.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -997,7 +997,7 @@ eleventy:
997997
elev.disableLogger();
998998

999999
let e = await t.throwsAsync(() => elev.toJSON(), {
1000-
message: 'You attempted to set one of Eleventy’s reserved data property names. You can opt-out of this behavior with `eleventyConfig.setFreezeReservedData(false)` or rename/remove the property in your data cascade that conflicts with Eleventy’s reserved property names (e.g. `eleventy`, `pkg`, and others). Learn more: https://www.11ty.dev/docs/data-eleventy-supplied/'
1000+
message: 'You attempted to set one of Eleventy’s reserved data property names. You can opt-out of this behavior with `eleventyConfig.setFreezeReservedData(false)` or rename/remove the property in your data cascade that conflicts with Eleventy’s reserved property names (e.g. `eleventy`, `pkg`, and others). Learn more: https://v3.11ty.dev/docs/data-eleventy-supplied/'
10011001
});
10021002

10031003
t.is(e.originalError.toString(), "TypeError: Cannot add property key1, object is not extensible");
@@ -1015,7 +1015,7 @@ pkg:
10151015
elev.disableLogger();
10161016

10171017
let e = await t.throwsAsync(() => elev.toJSON(), {
1018-
message: 'You attempted to set one of Eleventy’s reserved data property names. You can opt-out of this behavior with `eleventyConfig.setFreezeReservedData(false)` or rename/remove the property in your data cascade that conflicts with Eleventy’s reserved property names (e.g. `eleventy`, `pkg`, and others). Learn more: https://www.11ty.dev/docs/data-eleventy-supplied/'
1018+
message: 'You attempted to set one of Eleventy’s reserved data property names. You can opt-out of this behavior with `eleventyConfig.setFreezeReservedData(false)` or rename/remove the property in your data cascade that conflicts with Eleventy’s reserved property names (e.g. `eleventy`, `pkg`, and others). Learn more: https://v3.11ty.dev/docs/data-eleventy-supplied/'
10191019
});
10201020

10211021
t.is(e.originalError.toString(), "TypeError: Cannot add property myOwn, object is not extensible");
@@ -1053,7 +1053,7 @@ page: "My page value"
10531053
elev.disableLogger();
10541054

10551055
let e = await t.throwsAsync(() => elev.toJSON(), {
1056-
message: 'You attempted to set one of Eleventy’s reserved data property names: page. You can opt-out of this behavior with `eleventyConfig.setFreezeReservedData(false)` or rename/remove the property in your data cascade that conflicts with Eleventy’s reserved property names (e.g. `eleventy`, `pkg`, and others). Learn more: https://www.11ty.dev/docs/data-eleventy-supplied/'
1056+
message: 'You attempted to set one of Eleventy’s reserved data property names: page. You can opt-out of this behavior with `eleventyConfig.setFreezeReservedData(false)` or rename/remove the property in your data cascade that conflicts with Eleventy’s reserved property names (e.g. `eleventy`, `pkg`, and others). Learn more: https://v3.11ty.dev/docs/data-eleventy-supplied/'
10571057
});
10581058

10591059
t.is(e.originalError.toString(), "TypeError: Cannot override reserved Eleventy properties: page");
@@ -1070,7 +1070,7 @@ content: "My page value"
10701070
elev.disableLogger();
10711071

10721072
let e = await t.throwsAsync(() => elev.toJSON(), {
1073-
message: 'You attempted to set one of Eleventy’s reserved data property names: content. You can opt-out of this behavior with `eleventyConfig.setFreezeReservedData(false)` or rename/remove the property in your data cascade that conflicts with Eleventy’s reserved property names (e.g. `eleventy`, `pkg`, and others). Learn more: https://www.11ty.dev/docs/data-eleventy-supplied/'
1073+
message: 'You attempted to set one of Eleventy’s reserved data property names: content. You can opt-out of this behavior with `eleventyConfig.setFreezeReservedData(false)` or rename/remove the property in your data cascade that conflicts with Eleventy’s reserved property names (e.g. `eleventy`, `pkg`, and others). Learn more: https://v3.11ty.dev/docs/data-eleventy-supplied/'
10741074
});
10751075

10761076
t.is(e.originalError.toString(), "TypeError: Cannot override reserved Eleventy properties: content");
@@ -1087,7 +1087,7 @@ collections: []
10871087
elev.disableLogger();
10881088

10891089
let e = await t.throwsAsync(() => elev.toJSON(), {
1090-
message: 'You attempted to set one of Eleventy’s reserved data property names: collections. You can opt-out of this behavior with `eleventyConfig.setFreezeReservedData(false)` or rename/remove the property in your data cascade that conflicts with Eleventy’s reserved property names (e.g. `eleventy`, `pkg`, and others). Learn more: https://www.11ty.dev/docs/data-eleventy-supplied/'
1090+
message: 'You attempted to set one of Eleventy’s reserved data property names: collections. You can opt-out of this behavior with `eleventyConfig.setFreezeReservedData(false)` or rename/remove the property in your data cascade that conflicts with Eleventy’s reserved property names (e.g. `eleventy`, `pkg`, and others). Learn more: https://v3.11ty.dev/docs/data-eleventy-supplied/'
10911091
});
10921092

10931093
t.is(e.originalError.toString(), "TypeError: Cannot override reserved Eleventy properties: collections");
@@ -1175,7 +1175,7 @@ parkour:
11751175
t.is(elev.eleventyConfig.config.keys.package, "parkour");
11761176

11771177
let e = await t.throwsAsync(() => elev.toJSON(), {
1178-
message: 'You attempted to set one of Eleventy’s reserved data property names. You can opt-out of this behavior with `eleventyConfig.setFreezeReservedData(false)` or rename/remove the property in your data cascade that conflicts with Eleventy’s reserved property names (e.g. `eleventy`, `pkg`, and others). Learn more: https://www.11ty.dev/docs/data-eleventy-supplied/'
1178+
message: 'You attempted to set one of Eleventy’s reserved data property names. You can opt-out of this behavior with `eleventyConfig.setFreezeReservedData(false)` or rename/remove the property in your data cascade that conflicts with Eleventy’s reserved property names (e.g. `eleventy`, `pkg`, and others). Learn more: https://v3.11ty.dev/docs/data-eleventy-supplied/'
11791179
});
11801180

11811181
t.is(e.originalError.toString(), "TypeError: Cannot add property myOwn, object is not extensible");

test/TemplatePermalinkTest.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ test("Permalink generate apache content negotiation #761", (t) => {
173173
},
174174
]);
175175
t.is(tp1.toHref(), "/");
176-
// best paired with https://www.11ty.dev/docs/data-eleventy-supplied/#filepathstem for index.es.html
176+
// best paired with https://v3.11ty.dev/docs/data-eleventy-supplied/#filepathstem for index.es.html
177177
t.is(tp1.toOutputPath(), "index.es/index.html");
178178
});
179179

@@ -197,7 +197,7 @@ test("Permalink generate apache content negotiation with subdirectory #761", (t)
197197
]);
198198

199199
t.is(tp1.toHref(), "/test/");
200-
// best paired with https://www.11ty.dev/docs/data-eleventy-supplied/#filepathstem for test/index.es.html
200+
// best paired with https://v3.11ty.dev/docs/data-eleventy-supplied/#filepathstem for test/index.es.html
201201
t.is(tp1.toOutputPath(), "test/index.es/index.html");
202202
});
203203

@@ -220,7 +220,7 @@ test("Permalink generate with urlTransforms #761", (t) => {
220220
]);
221221

222222
t.is(tp.toHref(), "/permalinksubfolder/");
223-
// best paired with https://www.11ty.dev/docs/data-eleventy-supplied/#filepathstem for permalinksubfolder/index.es.html
223+
// best paired with https://v3.11ty.dev/docs/data-eleventy-supplied/#filepathstem for permalinksubfolder/index.es.html
224224
t.is(tp.toOutputPath(), "permalinksubfolder/index.es/index.html");
225225
});
226226

@@ -235,7 +235,7 @@ test("Permalink generate with urlTransforms (skip via undefined) #761", (t) => {
235235
]);
236236

237237
t.is(tp.toHref(), "/permalinksubfolder/index.es/");
238-
// best paired with https://www.11ty.dev/docs/data-eleventy-supplied/#filepathstem for permalinksubfolder/index.es.html
238+
// best paired with https://v3.11ty.dev/docs/data-eleventy-supplied/#filepathstem for permalinksubfolder/index.es.html
239239
t.is(tp.toOutputPath(), "permalinksubfolder/index.es/index.html");
240240
});
241241

@@ -252,7 +252,7 @@ test("Permalink generate with 2 urlTransforms #761", (t) => {
252252
]);
253253

254254
t.is(tp.toHref(), "/def/");
255-
// best paired with https://www.11ty.dev/docs/data-eleventy-supplied/#filepathstem for permalinksubfolder/index.es.html
255+
// best paired with https://v3.11ty.dev/docs/data-eleventy-supplied/#filepathstem for permalinksubfolder/index.es.html
256256
t.is(tp.toOutputPath(), "permalinksubfolder/index.es/index.html");
257257
});
258258

@@ -266,7 +266,7 @@ test("Permalink generate with urlTransforms returns index.html #761", (t) => {
266266
]);
267267

268268
t.is(tp.toHref(), "/abc/");
269-
// best paired with https://www.11ty.dev/docs/data-eleventy-supplied/#filepathstem for permalinksubfolder/index.es.html
269+
// best paired with https://v3.11ty.dev/docs/data-eleventy-supplied/#filepathstem for permalinksubfolder/index.es.html
270270
t.is(tp.toOutputPath(), "permalinksubfolder/index.es/index.html");
271271
});
272272

0 commit comments

Comments
 (0)