From 380eaaad2c557116cfa02f9237102b7917fb08db Mon Sep 17 00:00:00 2001 From: "thally-labs[bot]" <304851104+thally-labs[bot]@users.noreply.github.com> Date: Wed, 25 Nov 2026 22:57:16 +0000 Subject: [PATCH] docs: reflect feat(docs): support links in Step titles --- src/content/components/steps.mdx | 29 ++++++++++++++- src/content/es/components/steps.mdx | 29 ++++++++++++++- src/content/fr/components/steps.mdx | 55 ++++++++++++++++++++++++----- 3 files changed, 103 insertions(+), 10 deletions(-) diff --git a/src/content/components/steps.mdx b/src/content/components/steps.mdx index 7b7eaae..aad4e1f 100644 --- a/src/content/components/steps.mdx +++ b/src/content/components/steps.mdx @@ -57,10 +57,37 @@ Use `` and `` to structure sequential instructions. Each step rende ```` +## Links in titles + +Write a Markdown link in a step's `title` to make part of the title clickable. Backticks still render as inline code, inside or outside the link. + + + + The link opens the page it points to. The rest of the title stays plain text. + + + A link label can hold inline code. + + + +```mdx + + + The link opens the page it points to. + + + A link label can hold inline code. + + +``` + +A link can point to a page (`/guides/writing-content`), an anchor (`#props`), or an `http`, `https`, `mailto` or `tel` address. The table of contents, the step's anchor, search and the plain-text views read the link's label, and the Markdown view of the page keeps the link. + ## Props ### `` | Prop | Type | Description | |---|---|---| -| `title` | `string` | Step heading displayed next to the number | +| `title` | `string` | Step heading displayed next to the number. Backticks render inline code and `[label](url)` renders a link | +| `id` | `string` | Anchor to link to the step. A heading title uses it as the heading id; a plain-text title (`titleSize="p"`) puts it on the step itself | diff --git a/src/content/es/components/steps.mdx b/src/content/es/components/steps.mdx index 89eeaba..14ebff2 100644 --- a/src/content/es/components/steps.mdx +++ b/src/content/es/components/steps.mdx @@ -57,10 +57,37 @@ Usa `` y `` para estructurar instrucciones secuenciales. Cada paso ```` +## Enlaces en títulos + +Escribe un enlace Markdown en el `title` de un paso para hacer parte del título clicable. Las comillas invertidas siguen renderizándose como código en línea, dentro o fuera del enlace. + + + + El enlace abre la página a la que apunta. El resto del título permanece como texto simple. + + + La etiqueta de un enlace puede contener código en línea. + + + +```mdx + + + El enlace abre la página a la que apunta. + + + La etiqueta de un enlace puede contener código en línea. + + +``` + +Un enlace puede apuntar a una página (`/guides/writing-content`), un ancla (`#props`), o una dirección `http`, `https`, `mailto` o `tel`. La tabla de contenidos, el ancla del paso, la búsqueda y las vistas de texto simple leen la etiqueta del enlace, y la vista Markdown de la página mantiene el enlace. + ## Props ### `` | Prop | Tipo | Descripción | |---|---|---| -| `title` | `string` | Encabezado del paso que se muestra junto al número | +| `title` | `string` | Encabezado del paso que se muestra junto al número. Las comillas invertidas renderizan código en línea y `[label](url)` renderiza un enlace | +| `id` | `string` | Ancla para vincular al paso. Un título de encabezado lo usa como id del encabezado; un título de texto simple (`titleSize="p"`) lo coloca en el paso mismo | diff --git a/src/content/fr/components/steps.mdx b/src/content/fr/components/steps.mdx index 3a78027..2865294 100644 --- a/src/content/fr/components/steps.mdx +++ b/src/content/fr/components/steps.mdx @@ -3,9 +3,6 @@ title: "Étapes" description: "Guides numérotés étape par étape pour le contenu de configuration et de tutoriel." --- -{/* thally:ai-translation locale=fr source-sha=214b90b2084a7dcef1375fedd1492cef6fb184011fc69c961f29e78f9cb6215f */} -{/* Remove the marker above before manual edits to opt out of automatic refresh. */} - Utilisez `` et `` pour structurer des instructions séquentielles. Chaque étape s'affiche sous forme d'élément numéroté avec une ligne de connecteur entre les étapes. ## Exemple @@ -34,21 +31,63 @@ Utilisez `` et `` pour structurer des instructions séquentielles. +````mdx + + + ```bash + npm install @company/sdk + ``` + + + Créez un fichier `.env` à la racine de votre projet : + + ```bash + API_KEY=sk-your-key-here + ``` + + + ```typescript + import { ApiClient } from '@company/sdk' + + const client = new ApiClient({ apiKey: process.env.API_KEY }) + const result = await client.pets.list() + console.log(result) + ``` + + +```` + +## Liens dans les titres + +Écrivez un lien Markdown dans le `title` d'une étape pour rendre une partie du titre cliquable. Les accents graves continuent de s'afficher comme du code en ligne, à l'intérieur ou à l'extérieur du lien. + + + + Le lien ouvre la page vers laquelle il pointe. Le reste du titre reste du texte simple. + + + Le libellé d'un lien peut contenir du code en ligne. + + + ```mdx - - Content for step one. + + Le lien ouvre la page vers laquelle il pointe. - - Content for step two. + + Le libellé d'un lien peut contenir du code en ligne. ``` +Un lien peut pointer vers une page (`/guides/writing-content`), une ancre (`#props`), ou une adresse `http`, `https`, `mailto` ou `tel`. La table des matières, l'ancre de l'étape, la recherche et les vues en texte simple lisent le libellé du lien, et la vue Markdown de la page conserve le lien. + ## Props ### `` | Prop | Type | Description | |---|---|---| -| `title` | `string` | En-tête de l'étape affiché à côté du numéro | +| `title` | `string` | En-tête de l'étape affiché à côté du numéro. Les accents graves affichent du code en ligne et `[label](url)` affiche un lien | +| `id` | `string` | Ancre pour lier à l'étape. Un titre de type en-tête l'utilise comme id de l'en-tête ; un titre en texte simple (`titleSize="p"`) le place sur l'étape elle-même |