<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="https://cecilapp.github.io/theme-leon/fr/xsl/atom.xsl" media="all"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="fr">
  <id>https://cecilapp.github.io/theme-leon/fr/reference/</id>
  <title>Léon - Référence</title>
  <subtitle><![CDATA[Léon est un thème de documentation pour Cecil, à l'allure chaleureuse et éditoriale.]]></subtitle>
  <link href="https://cecilapp.github.io/theme-leon/fr/reference/atom.xml" rel="self" type="application/atom+xml" />
  <link href="https://cecilapp.github.io/theme-leon/fr/reference/" rel="alternate" type="text/html" />
  <updated>2026-10-22T22:11:10+00:00</updated>
  <author>
    <name>Cecil</name>
    <uri>https://cecil.app</uri>
  </author>
  <entry xml:lang="fr">
    <id>https://cecilapp.github.io/theme-leon/fr/reference/configuration/</id>
    <title>Configuration</title>
    <published>2026-10-22T22:11:04+00:00</published>
    <link href="https://cecilapp.github.io/theme-leon/fr/reference/configuration/" rel="alternate" type="text/html" />
    <content type="html">
      <![CDATA[<p>Les options de Léon sont regroupées sous <code translate="no">leon</code> :</p>
<pre><code class="language-yaml hljs yaml" translate="no"><span class="hljs-attr">leon:</span>
  <span class="hljs-attr">accent:</span> <span class="hljs-string">''</span>         <span class="hljs-comment"># couleur d'accent (ex. '#2563eb'), argile par défaut</span>
  <span class="hljs-attr">accent_dark:</span> <span class="hljs-string">''</span>    <span class="hljs-comment"># couleur d'accent en mode sombre, dérivée de `accent` par défaut</span>
  <span class="hljs-attr">fonts:</span>
    <span class="hljs-attr">bundled:</span> <span class="hljs-literal">true</span>    <span class="hljs-comment"># charge les polices embarquées</span>
    <span class="hljs-attr">sans:</span> <span class="hljs-string">''</span>
    <span class="hljs-attr">serif:</span> <span class="hljs-string">''</span>
    <span class="hljs-attr">mono:</span> <span class="hljs-string">''</span>
  <span class="hljs-attr">header:</span>
    <span class="hljs-attr">title:</span> <span class="hljs-literal">true</span>      <span class="hljs-comment"># titre du site à côté du logo</span>
    <span class="hljs-attr">cta:</span> <span class="hljs-string">{}</span>          <span class="hljs-comment"># ex. {name: Commencer, url: /docs/}</span>
  <span class="hljs-attr">tabs:</span>
    <span class="hljs-attr">enabled:</span> <span class="hljs-literal">true</span>
    <span class="hljs-attr">sections:</span> <span class="hljs-string">[]</span>
  <span class="hljs-attr">sidebar:</span>
    <span class="hljs-attr">collapsed:</span> <span class="hljs-literal">false</span>
  <span class="hljs-attr">language:</span>
    <span class="hljs-attr">suggest:</span> <span class="hljs-literal">false</span>   <span class="hljs-comment"># suggère la traduction correspondant à la langue du navigateur</span>
  <span class="hljs-attr">toc:</span>
    <span class="hljs-attr">enabled:</span> <span class="hljs-literal">true</span>
  <span class="hljs-attr">copypage:</span>
    <span class="hljs-attr">enabled:</span> <span class="hljs-literal">true</span>
    <span class="hljs-attr">assistants:</span> <span class="hljs-string">[claude,</span> <span class="hljs-string">chatgpt]</span> <span class="hljs-comment"># et/ou perplexity</span>
  <span class="hljs-attr">github:</span>
    <span class="hljs-attr">repo:</span> <span class="hljs-string">''</span>
    <span class="hljs-attr">branch:</span> <span class="hljs-string">main</span>
    <span class="hljs-attr">path:</span> <span class="hljs-string">pages</span>
  <span class="hljs-attr">lastupdated:</span> <span class="hljs-literal">false</span>
  <span class="hljs-attr">footer:</span> <span class="hljs-string">''</span></code></pre>
<h2 id="logo">Logo</h2>
<p>Le logo se définit avec la clé <code translate="no">logo</code> à la racine de la configuration du site (pas sous <code translate="no">leon</code>), avec un chemin relatif à <code translate="no">assets/</code> ou <code translate="no">static/</code>. Il est affiché avant le titre du site, dans l'en-tête et dans le pied de page :</p>
<pre><code class="language-yaml hljs yaml" translate="no"><span class="hljs-attr">logo:</span> <span class="hljs-string">images/logo.svg</span></code></pre>
<p>Pour utiliser un fichier différent selon le mode de couleur :</p>
<pre><code class="language-yaml hljs yaml" translate="no"><span class="hljs-attr">logo:</span>
  <span class="hljs-attr">light:</span> <span class="hljs-string">images/logo.svg</span>      <span class="hljs-comment"># affiché sur le fond clair</span>
  <span class="hljs-attr">dark:</span> <span class="hljs-string">images/logo-dark.svg</span>  <span class="hljs-comment"># affiché sur le fond sombre</span></code></pre>
<aside class="note note-tip"><p>Si le logo contient déjà le nom du site, masquez le titre avec <code translate="no">leon.header.title: false</code>.</p></aside>
<h2 id="options-de-cecil">Options de Cecil</h2>
<p>Léon configure Cecil pour un site de documentation : votre configuration peut surcharger chacune de ces options.</p>
<pre><code class="language-yaml hljs yaml" translate="no"><span class="hljs-attr">pages:</span>
  <span class="hljs-attr">sortby:</span> <span class="hljs-string">weight</span>     <span class="hljs-comment"># le préfixe `1-` du nom de fichier, ou la variable `weight`</span>
  <span class="hljs-attr">pagination:</span>
    <span class="hljs-attr">enabled:</span> <span class="hljs-literal">false</span>   <span class="hljs-comment"># les cartes d'une section listent toutes ses pages</span>
<span class="hljs-attr">output:</span>
  <span class="hljs-attr">pagetypeformats:</span>
    <span class="hljs-attr">page:</span>
      <span class="hljs-attr">markdown:</span> <span class="hljs-literal">true</span> <span class="hljs-comment"># version Markdown des pages (« Copier la page »)</span>
    <span class="hljs-attr">section:</span>
      <span class="hljs-attr">markdown:</span> <span class="hljs-literal">true</span>
    <span class="hljs-attr">homepage:</span>
      <span class="hljs-attr">llms:</span> <span class="hljs-literal">true</span>     <span class="hljs-comment"># fichier `llms.txt`</span></code></pre>
<p>Pour retirer un format de sortie, passez-le à <code translate="no">false</code> : un tableau de booléens ajoute ou retire un format sans remplacer les autres.</p>
<h2 id="coloration-syntaxique">Coloration syntaxique</h2>
<p>Les blocs de code sont colorés par highlight.php par défaut. Léon met aussi en forme le résultat de tempest/highlight, plus rapide mais limité aux langages du web :</p>
<pre><code class="language-yaml hljs yaml" translate="no"><span class="hljs-attr">pages:</span>
  <span class="hljs-attr">body:</span>
    <span class="hljs-attr">highlight:</span>
      <span class="hljs-attr">engine:</span> <span class="hljs-string">tempest</span> <span class="hljs-comment"># `highlightjs` par défaut</span></code></pre>
<aside class="note note-note"><p>Avec tempest/highlight, les langages qu'il ne connaît pas (Bash, PowerShell, Markdown…) sont affichés sans couleurs.</p></aside>]]>
    </content>
  </entry>
  <entry xml:lang="fr">
    <id>https://cecilapp.github.io/theme-leon/fr/reference/front-matter/</id>
    <title>Front matter</title>
    <published>2026-10-22T22:11:04+00:00</published>
    <link href="https://cecilapp.github.io/theme-leon/fr/reference/front-matter/" rel="alternate" type="text/html" />
    <content type="html">
      <![CDATA[<table>
<thead>
<tr>
<th>Variable</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><code translate="no">description</code></td>
<td>Affichée sous le titre.</td>
</tr>
<tr>
<td><code translate="no">eyebrow</code></td>
<td>Texte au-dessus du titre (le nom du groupe par défaut).</td>
</tr>
<tr>
<td><code translate="no">sidebar_title</code></td>
<td>Titre dans la barre latérale.</td>
</tr>
<tr>
<td><code translate="no">collapsed</code></td>
<td>Replie une section imbriquée dans la barre latérale.</td>
</tr>
<tr>
<td><code translate="no">toc</code></td>
<td><code translate="no">false</code> masque la table des matières.</td>
</tr>
<tr>
<td><code translate="no">copypage</code></td>
<td><code translate="no">false</code> masque le bouton « Copier la page ».</td>
</tr>
<tr>
<td><code translate="no">updated</code></td>
<td>Date de « Mis à jour le ».</td>
</tr>
<tr>
<td><code translate="no">cards</code></td>
<td>Cartes de la page d'accueil (<code translate="no">title</code>, <code translate="no">description</code>, <code translate="no">url</code>).</td>
</tr>
</tbody>
</table>]]>
    </content>
  </entry>
</feed>
