Skip to content

Commit

Permalink
i18n(fr): update reference/frontmatter.md (#829)
Browse files Browse the repository at this point in the history
  • Loading branch information
HiDeoo committed Oct 9, 2023
1 parent 351ed5c commit 64b473d
Showing 1 changed file with 29 additions and 1 deletion.
30 changes: 29 additions & 1 deletion docs/src/content/docs/fr/reference/frontmatter.md
Original file line number Diff line number Diff line change
Expand Up @@ -224,10 +224,22 @@ pagefind: false

### `sidebar`

**type:** `{ label?: string; order?: number; hidden?: boolean; badge?: string | BadgeConfig }`
**type:** [`SidebarConfig`](#sidebarconfig)

Contrôler l'affichage de cette page dans la [barre latérale](/fr/reference/configuration/#sidebar), lors de l'utilisation d'un groupe de liens généré automatiquement.

#### `SidebarConfig`

```ts
interface SidebarConfig {
label?: string;
order?: number;
hidden?: boolean;
badge?: string | BadgeConfig;
attrs?: Record<string, string | number | boolean | undefined>;
}
```

#### `label`

**type:** `string`
Expand Down Expand Up @@ -299,3 +311,19 @@ sidebar:
variant: caution
---
```

#### `attrs`

**type:** `Record<string, string | number | boolean | undefined>`

Attributs HTML à ajouter au lien de la page dans la barre latérale lorsqu'il est affiché dans un groupe de liens généré automatiquement.

```md
---
title: Page s'ouvrant dans un nouvel onglet
sidebar:
# Ouvre la page dans un nouvel onglet
attrs:
target: _blank
---
```

0 comments on commit 64b473d

Please sign in to comment.