diff --git a/es/customize/custom-scripts.mdx b/es/customize/custom-scripts.mdx index 774929a6b..d57af8fb4 100644 --- a/es/customize/custom-scripts.mdx +++ b/es/customize/custom-scripts.mdx @@ -340,6 +340,14 @@ Pueden aparecer múltiples instancias de estos elementos en una página. Úsalos - `[data-badge]` — Cualquier elemento de badge. - `[data-badge][data-color="blue"]` — Badge filtrado por color. - `[data-badge][data-size="sm"]` — Badge filtrado por tamaño. + + Ruta actual (`data-current-path`): + + Usa `data-current-path` para aplicar CSS personalizado en páginas o subrutas específicas. + + - `html[data-current-path="/"]` — Coincide con la página raíz. + - `html[data-current-path="/quickstart"]` — Coincide con una página específica. + - `html[data-current-path^="/api-reference/"]` — Coincide con cualquier página dentro de una sección. diff --git a/fr/customize/custom-scripts.mdx b/fr/customize/custom-scripts.mdx index f87e9c86c..def39c091 100644 --- a/fr/customize/custom-scripts.mdx +++ b/fr/customize/custom-scripts.mdx @@ -340,6 +340,14 @@ Plusieurs instances de ces éléments peuvent apparaître sur une page. Utilisez - `[data-badge]` — Tout élément badge. - `[data-badge][data-color="blue"]` — Badge filtré par couleur. - `[data-badge][data-size="sm"]` — Badge filtré par taille. + + Chemin actuel (`data-current-path`) : + + Utilisez `data-current-path` pour appliquer du CSS personnalisé sur des pages ou des sous-chemins spécifiques. + + - `html[data-current-path="/"]` — Correspond à la page racine. + - `html[data-current-path="/quickstart"]` — Correspond à une page spécifique. + - `html[data-current-path^="/api-reference/"]` — Correspond à toute page d'une section. diff --git a/zh/customize/custom-scripts.mdx b/zh/customize/custom-scripts.mdx index 08ea68f4e..06cfede2b 100644 --- a/zh/customize/custom-scripts.mdx +++ b/zh/customize/custom-scripts.mdx @@ -340,6 +340,14 @@ Mintlify 提供两种类型的 CSS 定位钩子: - `[data-badge]` — 任何 badge 元素。 - `[data-badge][data-color="blue"]` — 按颜色筛选的 badge。 - `[data-badge][data-size="sm"]` — 按尺寸筛选的 badge。 + + 当前路径 (`data-current-path`): + + 使用 `data-current-path` 在特定页面或子路径上应用自定义 CSS 样式。 + + - `html[data-current-path="/"]` — 匹配根页面。 + - `html[data-current-path="/quickstart"]` — 匹配特定页面。 + - `html[data-current-path^="/api-reference/"]` — 匹配某个部分下的任何页面。