You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/content/docs/en/concepts/islands.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -114,7 +114,7 @@ import Avatar from "../components/Avatar.astro";
114
114
115
115
This breaks up your page with smaller areas of server-rendered content that each load in parallel.
116
116
117
-
Your page's main content can be rendered immediately with placeholder content, such as a generic avatar until your island's own content is available. With server islands, having small components of personalized content does not delay the rendering of an otherwise static page.
117
+
Your page's main content can be rendered immediately with placeholder content, such as a generic avatar, until your island's own content is available. With server islands, having small components of personalized content does not delay the rendering of an otherwise static page.
118
118
119
119
This rendering pattern was built to be portable. It does not depend on any server infrastructure so it will work with any host, from a Node.js server in a Docker container to the serverless provider of your choice.
Copy file name to clipboardExpand all lines: src/content/docs/en/guides/content-collections.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -256,7 +256,7 @@ You can provide your entries as an array of objects with an `id` property, or in
256
256
257
257
#### Parsing other data formats
258
258
259
-
Support for parsing single JSON, YAML, and TOML files into collection entries withe the `file()` loader is built-in (unless you have a [nested JSON document](#nested-json-documents)). To load your collection from unsupported file types, such as `.csv`, you will need to create a [parser function](/en/reference/content-loader-reference/#parser). This function can be made async if required (e.g. to fetch files from the web, or if your parser is asyncronous).
259
+
Support for parsing single JSON, YAML, and TOML files into collection entries with the `file()` loader is built-in (unless you have a [nested JSON document](#nested-json-documents)). To load your collection from unsupported file types, such as `.csv`, you will need to create a [parser function](/en/reference/content-loader-reference/#parser). This function can be made async if required (e.g. to fetch files from the web, or if your parser is asyncronous).
260
260
261
261
The following example shows importing a third-party CSV parser then passing a custom `parser` function to the `file()` loader:
Copy file name to clipboardExpand all lines: src/content/docs/en/guides/fonts.mdx
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -64,7 +64,7 @@ This example will demonstrate adding a custom font using the font file `DistantG
64
64
65
65
Astro supports [several font providers](/en/reference/font-provider-reference/#built-in-providers) out of the box, including support for [Fontsource](https://fontsource.org/) that simplifies using Google Fonts and other open-source fonts.
66
66
67
-
The following example will use Fontsource to add custom font support, but the process is similar for any of Astro's built-in font providers (e.g. [Adobe](https://fonts.adobe.com/), [Bunny](https://fonts.bunny)).
67
+
The following example will use Fontsource to add custom font support, but the process is similar for any of Astro's built-in font providers (e.g. [Adobe](https://fonts.adobe.com/), [Bunny](https://fonts.bunny.net/)).
68
68
69
69
<Steps>
70
70
@@ -102,7 +102,7 @@ After [a font is configured](#configuring-custom-fonts), it must be added to you
Copy file name to clipboardExpand all lines: src/content/docs/en/guides/integrations-guide/cloudflare.mdx
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -493,14 +493,14 @@ On-demand rendered pages are not affected by this option and continue to run in
493
493
494
494
The new workerd environment does not support CommonJS syntax, including Node.js specific syntax such as `require` and `module.exports`. This means that some of your project dependencies may throw errors in the development server or during the build.
495
495
496
-
If you have control over the dependency, you can create a Vite plugin and pre-compile the dependency using the `optimiseDeps.include` option.
496
+
If you have control over the dependency, you can create a Vite plugin and pre-compile the dependency using the `optimizeDeps.include` option.
497
497
498
498
For example, you can create a Vite plugin to pre-compile the dependency `postcss` in order to use the Expressive Code syntax highlighter:
Copy file name to clipboardExpand all lines: src/content/docs/en/guides/upgrade-to/v6.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -646,7 +646,7 @@ Replace both methods with [`getEntry()`](/en/reference/modules/astro-content/#ge
646
646
647
647
<details>
648
648
<summary>legacy collection querying and rendering methods that depend on a `slug` property / ([`ContentSchemaContainsSlugError`](/en/reference/errors/content-schema-contains-slug-error/))</summary>
649
-
Previously, the `id` was based on the filename, and there was a `slug` property that could be used in a URL. Now the [CollectionEntry](/en/reference/modules/astro-content/#collectionentry) `id` is a slug. If you need access to the filename (previously available as the `id`), use the `filePath` property. Replace instances of `slug` with `id`:
649
+
Previously, the `id` was based on the filename, and there was a `slug` property that could be used in a URL. Now the [`CollectionEntry`](/en/reference/modules/astro-content/#collectionentry) `id` is a slug. If you need access to the filename (previously available as the `id`), use the `filePath` property. Replace instances of `slug` with `id`:
Copy file name to clipboardExpand all lines: src/content/docs/en/reference/modules/astro-assets.mdx
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -569,7 +569,7 @@ With this component, you have control over which font family is used on which pa
569
569
import { Font } from "astro:assets";
570
570
---
571
571
572
-
<Font cssVariable="--font-roboto" preload />
572
+
<Font cssVariable="--font-roboto" />
573
573
```
574
574
575
575
The `<Font />` component accepts the following properties:
@@ -610,7 +610,7 @@ import { Font } from "astro:assets";
610
610
<Font cssVariable="--font-roboto" preload />
611
611
```
612
612
613
-
You may not always want to preload every font link, as this can block loading other important resources or may download fonts that are not needed for the current page.
613
+
Be very intentional about which fonts you preload. Preloading too many fonts can impact performance, as this can block loading other important resources or may download fonts that are not needed for the current page.
614
614
615
615
To selectively control which font files are preloaded, you can provide an array of objects describing any combination of font `weight`, `style`, or `subset` to preload:
Copy file name to clipboardExpand all lines: src/content/docs/fr/guides/cms/cloudcannon.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -144,7 +144,7 @@ L'exemple suivant créera un nouvel article de blog à partir de la collection
144
144
145
145
## Affichage du contenu de CloudCannon
146
146
147
-
Utilisez l'API des collections de contenu d'Astro pour [interroger et afficher vos articles et collections](/fr/guides/content-collections/#interroger-les-collections), comme vous le feriez dans n'importe quel projet Astro.
147
+
Utilisez l'API des collections de contenu d'Astro pour [interroger et afficher vos articles et collections](/fr/guides/content-collections/#interroger-les-collections-consommées-lors-de-la-compilation), comme vous le feriez dans n'importe quel projet Astro.
Copy file name to clipboardExpand all lines: src/content/docs/fr/guides/cms/keystatic.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -183,7 +183,7 @@ Visitez `http://127.0.0.1:4321/keystatic` dans le navigateur pour voir l'interfa
183
183
184
184
## Rendu du contenu Keystatic
185
185
186
-
[Interrogez et affichez vos articles et collections](/fr/guides/content-collections/#interroger-les-collections), comme vous le feriez dans n'importe quel projet Astro.
186
+
[Interrogez et affichez vos articles et collections](/fr/guides/content-collections/#interroger-les-collections-consommées-lors-de-la-compilation), comme vous le feriez dans n'importe quel projet Astro.
0 commit comments