Skip to content

Commit 3ac8168

Browse files
Translate data-current-path HTML attribute docs (#5497)
Generated-By: mintlify-agent Co-authored-by: mintlify[bot] <109931778+mintlify[bot]@users.noreply.github.com>
1 parent b318512 commit 3ac8168

3 files changed

Lines changed: 24 additions & 0 deletions

File tree

es/customize/custom-scripts.mdx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -340,6 +340,14 @@ Pueden aparecer múltiples instancias de estos elementos en una página. Úsalos
340340
- `[data-badge]` — Cualquier elemento de badge.
341341
- `[data-badge][data-color="blue"]` — Badge filtrado por color.
342342
- `[data-badge][data-size="sm"]` — Badge filtrado por tamaño.
343+
344+
Ruta actual (`data-current-path`):
345+
346+
Usa `data-current-path` para aplicar CSS personalizado en páginas o subrutas específicas.
347+
348+
- `html[data-current-path="/"]` — Coincide con la página raíz.
349+
- `html[data-current-path="/quickstart"]` — Coincide con una página específica.
350+
- `html[data-current-path^="/api-reference/"]` — Coincide con cualquier página dentro de una sección.
343351
</Accordion>
344352
</AccordionGroup>
345353

fr/customize/custom-scripts.mdx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -340,6 +340,14 @@ Plusieurs instances de ces éléments peuvent apparaître sur une page. Utilisez
340340
- `[data-badge]` — Tout élément badge.
341341
- `[data-badge][data-color="blue"]` — Badge filtré par couleur.
342342
- `[data-badge][data-size="sm"]` — Badge filtré par taille.
343+
344+
Chemin actuel (`data-current-path`) :
345+
346+
Utilisez `data-current-path` pour appliquer du CSS personnalisé sur des pages ou des sous-chemins spécifiques.
347+
348+
- `html[data-current-path="/"]` — Correspond à la page racine.
349+
- `html[data-current-path="/quickstart"]` — Correspond à une page spécifique.
350+
- `html[data-current-path^="/api-reference/"]` — Correspond à toute page d'une section.
343351
</Accordion>
344352
</AccordionGroup>
345353

zh/customize/custom-scripts.mdx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -340,6 +340,14 @@ Mintlify 提供两种类型的 CSS 定位钩子:
340340
- `[data-badge]` — 任何 badge 元素。
341341
- `[data-badge][data-color="blue"]` — 按颜色筛选的 badge。
342342
- `[data-badge][data-size="sm"]` — 按尺寸筛选的 badge。
343+
344+
当前路径 (`data-current-path`):
345+
346+
使用 `data-current-path` 在特定页面或子路径上应用自定义 CSS 样式。
347+
348+
- `html[data-current-path="/"]` — 匹配根页面。
349+
- `html[data-current-path="/quickstart"]` — 匹配特定页面。
350+
- `html[data-current-path^="/api-reference/"]` — 匹配某个部分下的任何页面。
343351
</Accordion>
344352
</AccordionGroup>
345353

0 commit comments

Comments
 (0)