Skip to content

Commit

Permalink
i18n(fr): Update guides/markdown-content.mdx from #9333 (#9370)
Browse files Browse the repository at this point in the history
* i18n(fr): Update `guides/markdown-content.mdx` from #9333

Signed-off-by: Thomas Bonnet <thomasbnt@protonmail.com>

* i18n(fr): Update `guides/markdown-content.mdx` from #9344

Signed-off-by: Thomas Bonnet <thomasbnt@protonmail.com>

* Fix typo in <Steps>

Signed-off-by: Thomas Bonnet <thomasbnt@protonmail.com>

* Update src/content/docs/fr/guides/markdown-content.mdx

Co-authored-by: Armand Philippot <git@armand.philippot.eu>

* Update src/content/docs/fr/guides/markdown-content.mdx

Co-authored-by: Armand Philippot <git@armand.philippot.eu>

* Update src/content/docs/fr/guides/markdown-content.mdx

Co-authored-by: Armand Philippot <git@armand.philippot.eu>

* Update src/content/docs/fr/guides/markdown-content.mdx

Co-authored-by: Armand Philippot <git@armand.philippot.eu>

* Update src/content/docs/fr/guides/markdown-content.mdx

Co-authored-by: Armand Philippot <git@armand.philippot.eu>

* Update src/content/docs/fr/guides/markdown-content.mdx

Co-authored-by: Armand Philippot <git@armand.philippot.eu>

* Update src/content/docs/fr/guides/markdown-content.mdx

Co-authored-by: Armand Philippot <git@armand.philippot.eu>

* Update src/content/docs/fr/guides/markdown-content.mdx

Co-authored-by: Armand Philippot <git@armand.philippot.eu>

* Update src/content/docs/fr/guides/markdown-content.mdx

Co-authored-by: Armand Philippot <git@armand.philippot.eu>

* Update src/content/docs/fr/guides/markdown-content.mdx

Co-authored-by: Armand Philippot <git@armand.philippot.eu>

* Update src/content/docs/fr/guides/markdown-content.mdx

Co-authored-by: Armand Philippot <git@armand.philippot.eu>

* Update src/content/docs/fr/guides/markdown-content.mdx

Co-authored-by: Armand Philippot <git@armand.philippot.eu>

* Update src/content/docs/fr/guides/markdown-content.mdx

Co-authored-by: Armand Philippot <git@armand.philippot.eu>

* Update src/content/docs/fr/guides/markdown-content.mdx

Co-authored-by: Armand Philippot <git@armand.philippot.eu>

* Update src/content/docs/fr/guides/markdown-content.mdx

Co-authored-by: Armand Philippot <git@armand.philippot.eu>

* Update src/content/docs/fr/guides/markdown-content.mdx

Co-authored-by: Armand Philippot <git@armand.philippot.eu>

* Update src/content/docs/fr/guides/markdown-content.mdx

Co-authored-by: Armand Philippot <git@armand.philippot.eu>

* Update src/content/docs/fr/guides/markdown-content.mdx

Co-authored-by: Armand Philippot <git@armand.philippot.eu>

* Update src/content/docs/fr/guides/markdown-content.mdx

Co-authored-by: Armand Philippot <git@armand.philippot.eu>

* Update src/content/docs/fr/guides/markdown-content.mdx

Co-authored-by: Armand Philippot <git@armand.philippot.eu>

* Update src/content/docs/fr/guides/markdown-content.mdx

Co-authored-by: Armand Philippot <git@armand.philippot.eu>

* Update src/content/docs/fr/guides/markdown-content.mdx

Co-authored-by: Armand Philippot <git@armand.philippot.eu>

* Update src/content/docs/fr/guides/markdown-content.mdx

Co-authored-by: Armand Philippot <git@armand.philippot.eu>

* Update src/content/docs/fr/guides/markdown-content.mdx

Co-authored-by: Armand Philippot <git@armand.philippot.eu>

* Update src/content/docs/fr/guides/markdown-content.mdx

Co-authored-by: Armand Philippot <git@armand.philippot.eu>

* Update src/content/docs/fr/guides/markdown-content.mdx

Co-authored-by: Armand Philippot <git@armand.philippot.eu>

* Update src/content/docs/fr/guides/markdown-content.mdx

Co-authored-by: Armand Philippot <git@armand.philippot.eu>

* Update src/content/docs/fr/guides/markdown-content.mdx

Co-authored-by: Armand Philippot <git@armand.philippot.eu>

* Update src/content/docs/fr/guides/markdown-content.mdx

Co-authored-by: Armand Philippot <git@armand.philippot.eu>

* Update src/content/docs/fr/guides/markdown-content.mdx

Co-authored-by: Armand Philippot <git@armand.philippot.eu>

* Update src/content/docs/fr/guides/markdown-content.mdx

Co-authored-by: Armand Philippot <git@armand.philippot.eu>

* Update src/content/docs/fr/guides/markdown-content.mdx

Co-authored-by: Armand Philippot <git@armand.philippot.eu>

* Update src/content/docs/fr/guides/markdown-content.mdx

Co-authored-by: Armand Philippot <git@armand.philippot.eu>

* Update src/content/docs/fr/guides/markdown-content.mdx

Co-authored-by: Armand Philippot <git@armand.philippot.eu>

* Update src/content/docs/fr/guides/markdown-content.mdx

Co-authored-by: Armand Philippot <git@armand.philippot.eu>

* Update src/content/docs/fr/guides/markdown-content.mdx

Co-authored-by: Armand Philippot <git@armand.philippot.eu>

* Update src/content/docs/fr/guides/markdown-content.mdx

Co-authored-by: Armand Philippot <git@armand.philippot.eu>

* fix <Steps>

* fix </Steps>

* Update src/content/docs/fr/guides/markdown-content.mdx

Co-authored-by: Armand Philippot <git@armand.philippot.eu>

* Update src/content/docs/fr/guides/markdown-content.mdx

Co-authored-by: Armand Philippot <git@armand.philippot.eu>

* Update src/content/docs/fr/guides/markdown-content.mdx

Co-authored-by: Armand Philippot <git@armand.philippot.eu>

* Update src/content/docs/fr/guides/markdown-content.mdx

Co-authored-by: Armand Philippot <git@armand.philippot.eu>

* Update src/content/docs/fr/guides/markdown-content.mdx

Co-authored-by: Armand Philippot <git@armand.philippot.eu>

* Update src/content/docs/fr/guides/markdown-content.mdx

Co-authored-by: Armand Philippot <git@armand.philippot.eu>

* Update src/content/docs/fr/guides/markdown-content.mdx

Co-authored-by: Armand Philippot <git@armand.philippot.eu>

* Update src/content/docs/fr/guides/markdown-content.mdx

Co-authored-by: Armand Philippot <git@armand.philippot.eu>

* Update src/content/docs/fr/guides/markdown-content.mdx

Co-authored-by: Armand Philippot <git@armand.philippot.eu>

* Update src/content/docs/fr/guides/markdown-content.mdx

Co-authored-by: Armand Philippot <git@armand.philippot.eu>

* Update src/content/docs/fr/guides/markdown-content.mdx

Co-authored-by: Armand Philippot <git@armand.philippot.eu>

* Update src/content/docs/fr/guides/markdown-content.mdx

Co-authored-by: Armand Philippot <git@armand.philippot.eu>

* Update src/content/docs/fr/guides/markdown-content.mdx

Co-authored-by: Armand Philippot <git@armand.philippot.eu>

* Fix links only for content and content-collections

Signed-off-by: Thomas Bonnet <thomasbnt@protonmail.com>

* Update src/content/docs/fr/guides/markdown-content.mdx

Co-authored-by: Armand Philippot <git@armand.philippot.eu>

* Update src/content/docs/fr/guides/markdown-content.mdx

Co-authored-by: Armand Philippot <git@armand.philippot.eu>

* Update src/content/docs/fr/guides/markdown-content.mdx

Co-authored-by: Armand Philippot <git@armand.philippot.eu>

* Update src/content/docs/fr/guides/markdown-content.mdx

Co-authored-by: Armand Philippot <git@armand.philippot.eu>

* Update src/content/docs/fr/guides/markdown-content.mdx

Co-authored-by: Armand Philippot <git@armand.philippot.eu>

* Update src/content/docs/fr/guides/markdown-content.mdx

Co-authored-by: Armand Philippot <git@armand.philippot.eu>

* Update src/content/docs/fr/guides/markdown-content.mdx

Co-authored-by: Armand Philippot <git@armand.philippot.eu>

* Update src/content/docs/fr/guides/markdown-content.mdx

Co-authored-by: Armand Philippot <git@armand.philippot.eu>

* Fix links

* Fix link again

---------

Signed-off-by: Thomas Bonnet <thomasbnt@protonmail.com>
Co-authored-by: Armand Philippot <git@armand.philippot.eu>
Co-authored-by: Yan <61414485+yanthomasdev@users.noreply.github.com>
  • Loading branch information
3 people committed Sep 11, 2024
1 parent 8b9386b commit f7b27a3
Show file tree
Hide file tree
Showing 7 changed files with 255 additions and 448 deletions.
2 changes: 1 addition & 1 deletion src/content/docs/fr/guides/content-collections.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -591,7 +591,7 @@ npm run astro build -- --force
**Déconseillé.** Les plugins Remark et rehype accèdent au _raw_ du frontmatter du document Markdown ou MDX. Cela signifie que le document `remarkPluginFrontmatter` est traité séparément de votre `schema` sécurisé, et ne reflétera pas les changements ou les valeurs par défaut appliqués par Astro. Utilisez-le à vos risques et périls !
:::

Astro supporte les plugins remark ou rehype qui [modifient votre frontmatter directement](/fr/guides/markdown-content/#modifier-le-frontmatter-par-un-programme). Vous pouvez accéder à ce frontmatter modifié à l'intérieur d'un contenu en utilisant la propriété `remarkPluginFrontmatter` renvoyée par `render()` :
Astro supporte les plugins remark ou rehype qui [modifient votre frontmatter directement](/fr/guides/markdown-content/#modification-programmatique-du-frontmatter). Vous pouvez accéder à ce frontmatter modifié à l'intérieur d'un contenu en utilisant la propriété `remarkPluginFrontmatter` renvoyée par `render()` :

```astro "{ remarkPluginFrontmatter }"
---
Expand Down
4 changes: 2 additions & 2 deletions src/content/docs/fr/guides/content.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,15 @@ Les fichiers Markdown et MDX qui résident dans votre dossier `src/pages` géné

### Contenu local

Vous pouvez également choisir de garder vos fichiers Markdown et MDX en dehors du dossier `src/pages` et, à la place, d'[importer leur contenu](/fr/guides/markdown-content/#importer-du-contenu-markdown) dans vos pages `.astro`.
Vous pouvez également choisir de garder vos fichiers Markdown et MDX en dehors du dossier `src/pages` et, à la place, d'[importer leur contenu](/fr/guides/markdown-content/#importation-de-markdown) dans vos pages `.astro`.

### Collections de contenu

Les [collections de contenu](/fr/guides/content-collections/) d'Astro fournissent un moyen puissant et garantissant la validité des types pour travailler avec du contenu Markdown, MDX ou Markdoc organisé dans le dossier `src/content/`.

### Contenu distant

Vous pouvez aussi [récupérer du Markdown à distance](/fr/guides/markdown-content/#récupérer-du-markdown-distant) provenant d'une source extérieure à votre projet. Cela nécessitera votre propre parseur Markdown, ou une intégration communautaire (par exemple [`astro-remote`](https://github.com/natemoo-re/astro-remote)).
Vous pouvez aussi [récupérer du Markdown à distance](/fr/guides/markdown-content/#récupérer-du-markdown-à-distance) provenant d'une source extérieure à votre projet. Cela nécessitera votre propre parseur Markdown, ou une intégration communautaire (par exemple [`astro-remote`](https://github.com/natemoo-re/astro-remote)).

## Présenter votre contenu

Expand Down
689 changes: 248 additions & 441 deletions src/content/docs/fr/guides/markdown-content.mdx

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/content/docs/fr/guides/upgrade-to/v3.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ import Markdown from '@astrojs/markdown-component';
Pour continuer à utiliser un composant `<Markdown />` similaire dans votre code, envisagez d'utiliser les [intégrations communautaires](https://astro.build/integrations/) comme [`astro-remote`](https://github.com/natemoo-re/astro-remote). Assurez-vous de mettre à jour vos importations et attributs de composants `<Markdown />` si nécessaire, conformément à la propre documentation de l'intégration.
Sinon, supprimez toutes les références d'importation du composant `<Markdown />` d'Astro et du composant lui-même dans vos fichiers `.astro`. Vous devrez réécrire votre contenu directement au format HTML ou [importer Markdown](/fr/guides/markdown-content/#importer-du-contenu-markdown) à partir d'un fichier `.md`.
Sinon, supprimez toutes les références d'importation du composant `<Markdown />` d'Astro et du composant lui-même dans vos fichiers `.astro`. Vous devrez réécrire votre contenu directement au format HTML ou [importer Markdown](/fr/guides/markdown-content/#importation-de-markdown) à partir d'un fichier `.md`.
### Supprimé : API obsolètes de la v1.x
Expand Down
2 changes: 1 addition & 1 deletion src/content/docs/fr/recipes/reading-time.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ Créez un [plugin remark](https://github.com/remarkjs/remark) qui ajoute une pro
</html>
```
Si vous utilisez une [mise en page Markdown](/fr/guides/markdown-content/#pages-markdown-et-mdx), utilisez la propriété `minutesRead` du frontmatter de `Astro.props` dans votre template.
Si vous utilisez une [mise en page Markdown](/fr/basics/layouts/#mises-en-page-markdown), utilisez la propriété `minutesRead` du frontmatter de `Astro.props` dans votre template.
```astro title="src/layouts/BlogLayout.astro" "const { minutesRead } = Astro.props.frontmatter;" "<p>{minutesRead}</p>"
---
Expand Down
2 changes: 1 addition & 1 deletion src/content/docs/fr/reference/api-reference.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -1679,7 +1679,7 @@ Une fonction pour compiler un document Markdown ou MDX donné à afficher. Cela

- `<Content />` - Un composant utilisé pour restituer le contenu du document dans un fichier Astro.
- `headings` - Une liste générée de titres, [reflétant l'utilitaire `getHeadings()` d'Astro](/fr/guides/markdown-content/#propriétés-disponibles) sur les importations Markdown et MDX.
- `remarkPluginFrontmatter` - L'objet frontmatter modifié après [l'application de plugins Remark or Rehype](/fr/guides/markdown-content/#modifier-le-frontmatter-par-un-programme). Définit sur le type `any`.
- `remarkPluginFrontmatter` - L'objet frontmatter modifié après [l'application de plugins Remark or Rehype](/fr/guides/markdown-content/#modification-programmatique-du-frontmatter). Définit sur le type `any`.

```astro
---
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ Un plugin remark ou rehype a tenté d'injecter du frontmatter invalide. Cela se

**Voir aussi :**

- [Modifier le frontmatter par un programme](/fr/guides/markdown-content/#modifier-le-frontmatter-par-un-programme)
- [Modifier le frontmatter par un programme](/fr/guides/markdown-content/#modification-programmatique-du-frontmatter)

0 comments on commit f7b27a3

Please sign in to comment.