From c50e88e61fe79d4134ab891cf33952d3c0a0a29c Mon Sep 17 00:00:00 2001 From: Sarah Rainsberger Date: Thu, 17 Aug 2023 18:10:07 -0300 Subject: [PATCH] Update image errors-data.ts for v3 --- packages/astro/src/core/errors/errors-data.ts | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/packages/astro/src/core/errors/errors-data.ts b/packages/astro/src/core/errors/errors-data.ts index c0aadaae7..6a7be8630 100644 --- a/packages/astro/src/core/errors/errors-data.ts +++ b/packages/astro/src/core/errors/errors-data.ts @@ -481,9 +481,9 @@ export const PageNumberParamNotFound = { /** * @docs * @see - * - [Assets (Experimental)](https://docs.astro.build/en/guides/assets/) - * - [Image component](https://docs.astro.build/en/guides/assets/#image--astroassets) - * - [Image component#alt](https://docs.astro.build/en/guides/assets/#alt-required) + * - [Images](https://docs.astro.build/en/guides/images/) + * - [Image component](https://docs.astro.build/en/guides/images/#image--astroassets) + * - [Image component#alt](https://docs.astro.build/en/guides/images/#alt-required) * @description * The `alt` property allows you to provide descriptive alt text to users of screen readers and other assistive technologies. In order to ensure your images are accessible, the `Image` component requires that an `alt` be specified. * @@ -515,8 +515,8 @@ export const InvalidImageService = { * @message * Missing width and height attributes for `IMAGE_URL`. When using remote images, both dimensions are always required in order to avoid cumulative layout shift (CLS). * @see - * - [Assets (Experimental)](https://docs.astro.build/en/guides/assets/) - * - [Image component#width-and-height](https://docs.astro.build/en/guides/assets/#width-and-height) + * - [Images](https://docs.astro.build/en/guides/images/) + * - [Image component#width-and-height-required](https://docs.astro.build/en/guides/images/#width-and-height-required-for-public-and-remote-images) * @description * For remote images, `width` and `height` cannot be inferred from the original file. As such, in order to avoid CLS, those two properties are always required. * @@ -536,10 +536,10 @@ export const MissingImageDimension = { * @description * The built-in image services do not currently support optimizing all image formats. * - * For unsupported formats such as SVGs and GIFs, you may be able to use an `img` tag directly: + * For unsupported formats such as GIFs, you may be able to use an `img` tag directly: * ```astro * --- - * import rocket from '../assets/images/rocket.svg'; + * import rocket from '../assets/images/rocket.gif'; * --- * * A rocketship in space. @@ -575,7 +575,7 @@ export const PrerenderDynamicEndpointPathCollide = { /** * @docs * @see - * - [Assets (Experimental)](https://docs.astro.build/en/guides/assets/) + * - [Images](https://docs.astro.build/en/guides/images/) * @description * An image's `src` property is not valid. The Image component requires the `src` attribute to be either an image that has been ESM imported or a string. This is also true for the first parameter of `getImage()`. * @@ -601,7 +601,7 @@ export const ExpectedImage = { /** * @docs * @see - * - [Assets (Experimental)](https://docs.astro.build/en/guides/assets/) + * - [Images](https://docs.astro.build/en/guides/images/) * @description * `getImage()`'s first parameter should be an object with the different properties to apply to your image. * @@ -625,7 +625,7 @@ export const ExpectedImageOptions = { * @message * Could not find requested image `IMAGE_PATH` at `FULL_IMAGE_PATH`. * @see - * - [Assets (Experimental)](https://docs.astro.build/en/guides/assets/) + * - [Images](https://docs.astro.build/en/guides/images/) * @description * Astro could not find an image you included in your Markdown content. Usually, this is simply caused by a typo in the path. * @@ -715,7 +715,7 @@ export const LocalsNotAnObject = { /** * @docs * @see - * - [Assets (Experimental)](https://docs.astro.build/en/guides/assets/) + * - [Images](https://docs.astro.build/en/guides/images/) * @description * When using the default image services, `Image`'s and `getImage`'s `src` parameter must be either an imported image or an URL, it cannot be a filepath. *