<?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/</id>
  <title>Léon</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/atom.xml" rel="self" type="application/atom+xml" />
  <link href="https://cecilapp.github.io/theme-leon/fr/" 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/docs/getting-started/overview/</id>
    <title>Vue d&#039;ensemble</title>
    <published>2026-10-22T22:11:04+00:00</published>
    <link href="https://cecilapp.github.io/theme-leon/fr/docs/getting-started/overview/" rel="alternate" type="text/html" />
    <content type="html">
      <![CDATA[<p>Léon offre à votre documentation une mise en page calme et lisible : un en-tête à onglets, une barre latérale par onglet, une table des matières qui suit votre lecture, et des composants de contenu écrits en Markdown pur.</p>
<h2 id="demarrer">Démarrer</h2>
<p>Installez le thème avec Composer, puis activez-le dans la configuration de votre site.</p>
<div class="note note-code-group" id="note-code-group-1" data-leon-tabs>
  <div class="leon-tablist" role="tablist">
    <button type="button" class="leon-tab-button" id="note-code-group-1-tab-1" role="tab" aria-controls="note-code-group-1-panel-1" aria-selected="true">Composer</button>
    <button type="button" class="leon-tab-button" id="note-code-group-1-tab-2" role="tab" aria-controls="note-code-group-1-panel-2" aria-selected="false" tabindex="-1">Archive</button>
  </div>
  <div class="leon-tabpanel" id="note-code-group-1-panel-1" role="tabpanel" aria-labelledby="note-code-group-1-tab-1" tabindex="0">
    <p class="leon-tabpanel-title">Composer</p>
    <pre><code class="language-bash hljs bash" translate="no">composer require cecil/theme-leon</code></pre>
  </div>
  <div class="leon-tabpanel" id="note-code-group-1-panel-2" role="tabpanel" aria-labelledby="note-code-group-1-tab-2" tabindex="0">
    <p class="leon-tabpanel-title">Archive</p>
    <pre><code class="language-bash hljs bash" translate="no">curl -LO https://github.com/Cecilapp/theme-leon/releases/latest/download/leon.zip
unzip leon.zip -d themes/leon</code></pre>
  </div>
</div>
<p>Puis <a href="../quickstart/">continuez avec le Démarrage rapide →</a></p>
<aside class="note note-info"><p>Léon nécessite les thèmes composants <a href="https://github.com/Cecilapp/theme-flexsearch" rel="noopener noreferrer">FlexSearch</a> et <a href="https://github.com/Cecilapp/theme-darkmodetoggle" rel="noopener noreferrer">Dark mode toggle</a>.</p></aside>
<h2 id="ce-que-vous-pouvez-faire">Ce que vous pouvez faire</h2>
<div class="note note-accordion" id="note-accordion-2">
  <details class="leon-accordion">
    <summary>Rédiger du contenu riche en Markdown</summary>
    <div class="leon-accordion-content">
      <p>Encadrés, onglets, groupes de code, étapes, accordéons et cartes utilisent la syntaxe <code translate="no">:::</code> de Cecil : ni HTML, ni shortcodes.</p>
    </div>
  </details>
  <details class="leon-accordion">
    <summary>Permettre aux lecteurs de tout rechercher</summary>
    <div class="leon-accordion-content">
      <p>La recherche repose sur FlexSearch : l'index est généré au build, et la recherche s'exécute dans le navigateur.</p>
    </div>
  </details>
  <details class="leon-accordion">
    <summary>Nourrir votre assistant IA préféré</summary>
    <div class="leon-accordion-content">
      <p>Le bouton <strong>Copier la page</strong> copie la page en Markdown, et le fichier <code translate="no">llms.txt</code> liste toutes les pages du site.</p>
    </div>
  </details>
</div>
<h2 id="pour-aller-plus-loin">Pour aller plus loin</h2>
<div class="note note-cards" id="note-cards-3">
  <ul>
    <li><a href="../quickstart/">Démarrage rapide</a><div class="leon-card-description">créer un site de documentation de zéro</div></li>
    <li><a href="../../guides/writing-content/">Rédiger du contenu</a><div class="leon-card-description">tous les composants, par l'exemple</div></li>
    <li><a href="../../../reference/configuration/">Configuration</a><div class="leon-card-description">toutes les options du thème</div></li>
    <li><a href="../../../reference/front-matter/">Front matter</a><div class="leon-card-description">les variables par page</div></li>
  </ul>
</div>]]>
    </content>
  </entry>
  <entry xml:lang="fr">
    <id>https://cecilapp.github.io/theme-leon/fr/docs/guides/writing-content/</id>
    <title>Rédiger du contenu</title>
    <published>2026-10-22T22:11:04+00:00</published>
    <link href="https://cecilapp.github.io/theme-leon/fr/docs/guides/writing-content/" rel="alternate" type="text/html" />
    <content type="html">
      <![CDATA[<h2 id="encadres">Encadrés</h2>
<p>Les encadrés mettent une information en valeur. Utilisez <code translate="no">:::note</code>, <code translate="no">:::info</code>, <code translate="no">:::tip</code>, <code translate="no">:::warning</code>, <code translate="no">:::danger</code> ou <code translate="no">:::important</code> :</p>
<aside class="note note-note"><p>Une <strong>note</strong> apporte du contexte, et peut contenir n'importe quel Markdown : <code translate="no">code</code>, <a href="#encadres">liens</a>, listes…</p></aside>
<aside class="note note-info"><p>Les installations natives se mettent à jour automatiquement en arrière-plan.</p></aside>
<aside class="note note-tip"><p>Organisez votre contenu en dossiers imbriqués pour construire la barre latérale.</p></aside>
<aside class="note note-warning"><p>La clé <code translate="no">theme</code> de la configuration d'un thème est ignorée : déclarez tous les thèmes dans votre site.</p></aside>
<aside class="note note-danger"><p>Ne commitez jamais vos clés d'API.</p></aside>
<aside class="note note-important"><p>Les encadrés <code translate="no">important</code> utilisent la couleur d'accent du thème.</p></aside>
<pre><code class="language-markdown hljs markdown" translate="no">:::tip
Organisez votre contenu en dossiers imbriqués pour construire la barre latérale.
:::</code></pre>
<h2 id="onglets">Onglets</h2>
<p>Chaque titre <code translate="no">####</code> démarre un nouvel onglet. Les onglets de même libellé sont synchronisés sur toute la page, et le choix est mémorisé.</p>
<div class="note note-tabs" id="note-tabs-1" data-leon-tabs>
  <div class="leon-tablist" role="tablist">
    <button type="button" class="leon-tab-button" id="note-tabs-1-tab-1" role="tab" aria-controls="note-tabs-1-panel-1" aria-selected="true">macOS</button>
    <button type="button" class="leon-tab-button" id="note-tabs-1-tab-2" role="tab" aria-controls="note-tabs-1-panel-2" aria-selected="false" tabindex="-1">Windows</button>
    <button type="button" class="leon-tab-button" id="note-tabs-1-tab-3" role="tab" aria-controls="note-tabs-1-panel-3" aria-selected="false" tabindex="-1">Linux</button>
  </div>
  <div class="leon-tabpanel" id="note-tabs-1-panel-1" role="tabpanel" aria-labelledby="note-tabs-1-tab-1" tabindex="0">
    <p class="leon-tabpanel-title">macOS</p>
    <p>Installez avec Homebrew :</p>
<pre><code class="language-bash hljs bash" translate="no">brew install cecil</code></pre>
  </div>
  <div class="leon-tabpanel" id="note-tabs-1-panel-2" role="tabpanel" aria-labelledby="note-tabs-1-tab-2" tabindex="0">
    <p class="leon-tabpanel-title">Windows</p>
    <p>Installez avec Scoop :</p>
<pre><code class="language-powershell hljs powershell" translate="no">scoop install cecil</code></pre>
  </div>
  <div class="leon-tabpanel" id="note-tabs-1-panel-3" role="tabpanel" aria-labelledby="note-tabs-1-tab-3" tabindex="0">
    <p class="leon-tabpanel-title">Linux</p>
    <p>Téléchargez le Phar :</p>
<pre><code class="language-bash hljs bash" translate="no">curl -LO https://cecil.app/cecil.phar</code></pre>
  </div>
</div>
<pre><code class="language-markdown hljs markdown" translate="no">:::tabs
<span class="hljs-section">#### macOS</span>
Installez avec Homebrew :

<span class="hljs-code">```bash
brew install cecil
```</span>

<span class="hljs-section">#### Windows</span>
Installez avec Scoop :

<span class="hljs-code">```powershell
scoop install cecil
```</span>

<span class="hljs-section">#### Linux</span>
Téléchargez le Phar :

<span class="hljs-code">```bash
curl -LO https://cecil.app/cecil.phar
```</span>
:::</code></pre>
<h2 id="groupes-de-code">Groupes de code</h2>
<p>Un groupe de code présente des blocs de code alternatifs dans un même cadre :</p>
<div class="note note-code-group" id="note-code-group-2" data-leon-tabs>
  <div class="leon-tablist" role="tablist">
    <button type="button" class="leon-tab-button" id="note-code-group-2-tab-1" role="tab" aria-controls="note-code-group-2-panel-1" aria-selected="true">macOS</button>
    <button type="button" class="leon-tab-button" id="note-code-group-2-tab-2" role="tab" aria-controls="note-code-group-2-panel-2" aria-selected="false" tabindex="-1">Windows</button>
    <button type="button" class="leon-tab-button" id="note-code-group-2-tab-3" role="tab" aria-controls="note-code-group-2-panel-3" aria-selected="false" tabindex="-1">Linux</button>
  </div>
  <div class="leon-tabpanel" id="note-code-group-2-panel-1" role="tabpanel" aria-labelledby="note-code-group-2-tab-1" tabindex="0">
    <p class="leon-tabpanel-title">macOS</p>
    <pre><code class="language-bash hljs bash" translate="no">brew install cecil</code></pre>
  </div>
  <div class="leon-tabpanel" id="note-code-group-2-panel-2" role="tabpanel" aria-labelledby="note-code-group-2-tab-2" tabindex="0">
    <p class="leon-tabpanel-title">Windows</p>
    <pre><code class="language-powershell hljs powershell" translate="no">scoop install cecil</code></pre>
  </div>
  <div class="leon-tabpanel" id="note-code-group-2-panel-3" role="tabpanel" aria-labelledby="note-code-group-2-tab-3" tabindex="0">
    <p class="leon-tabpanel-title">Linux</p>
    <pre><code class="language-bash hljs bash" translate="no">curl -LO https://cecil.app/cecil.phar</code></pre>
  </div>
</div>
<pre><code class="language-markdown hljs markdown" translate="no">:::code-group
<span class="hljs-section">#### macOS</span>
<span class="hljs-code">```bash
brew install cecil
```</span>
<span class="hljs-section">#### Windows</span>
<span class="hljs-code">```powershell
scoop install cecil
```</span>
<span class="hljs-section">#### Linux</span>
<span class="hljs-code">```bash
curl -LO https://cecil.app/cecil.phar
```</span>
:::</code></pre>
<p>Sans titres, les onglets prennent le nom du langage de chaque bloc :</p>
<div class="note note-code-group" id="note-code-group-3" data-leon-tabs>
  <div class="leon-tablist" role="tablist">
    <button type="button" class="leon-tab-button" id="note-code-group-3-tab-1" role="tab" aria-controls="note-code-group-3-panel-1" aria-selected="true">YAML</button>
    <button type="button" class="leon-tab-button" id="note-code-group-3-tab-2" role="tab" aria-controls="note-code-group-3-panel-2" aria-selected="false" tabindex="-1">JSON</button>
  </div>
  <div class="leon-tabpanel" id="note-code-group-3-panel-1" role="tabpanel" aria-labelledby="note-code-group-3-tab-1" tabindex="0">
    <p class="leon-tabpanel-title">YAML</p>
    <pre><code class="language-yaml hljs yaml" translate="no"><span class="hljs-attr">theme:</span>
  <span class="hljs-bullet">-</span> <span class="hljs-string">leon</span></code></pre>
  </div>
  <div class="leon-tabpanel" id="note-code-group-3-panel-2" role="tabpanel" aria-labelledby="note-code-group-3-tab-2" tabindex="0">
    <p class="leon-tabpanel-title">JSON</p>
    <pre><code class="language-json hljs json" translate="no">{<span class="hljs-attr">"theme"</span>: [<span class="hljs-string">"leon"</span>]}</code></pre>
  </div>
</div>
<pre><code class="language-markdown hljs markdown" translate="no">:::code-group
<span class="hljs-code">```yaml
theme:
  - leon
```</span>
<span class="hljs-code">```json
{"theme": ["leon"]}
```</span>
:::</code></pre>
<h2 id="etapes">Étapes</h2>
<div class="note note-steps" id="note-steps-4">
  <ol class="leon-steps">
    <li class="leon-step">
      <h4>Écrire</h4>
      <p>Rédigez vos pages en Markdown.</p>
    </li>
    <li class="leon-step">
      <h4>Générer</h4>
      <p>Lancez <code translate="no">php cecil.phar build</code>.</p>
    </li>
    <li class="leon-step">
      <h4>Publier</h4>
      <p>Déployez le dossier <code translate="no">_site</code> où vous voulez.</p>
    </li>
  </ol>
</div>
<pre><code class="language-markdown hljs markdown" translate="no">:::steps
<span class="hljs-section">#### Écrire</span>
Rédigez vos pages en Markdown.

<span class="hljs-section">#### Générer</span>
Lancez <span class="hljs-code">`php cecil.phar build`</span>.

<span class="hljs-section">#### Publier</span>
Déployez le dossier <span class="hljs-code">`_site`</span> où vous voulez.
:::</code></pre>
<h2 id="accordeons">Accordéons</h2>
<div class="note note-accordion" id="note-accordion-5">
  <details class="leon-accordion">
    <summary>Qu'est-ce que Cecil ?</summary>
    <div class="leon-accordion-content">
      <p>Un générateur de site statique, écrit en PHP, qui transforme des fichiers Markdown en site web.</p>
    </div>
  </details>
  <details class="leon-accordion">
    <summary>Puis-je utiliser du HTML ?</summary>
    <div class="leon-accordion-content">
      <p>Oui, et un élément natif <code translate="no">&lt;details&gt;</code> est lui aussi mis en forme comme un accordéon.</p>
    </div>
  </details>
</div>
<pre><code class="language-markdown hljs markdown" translate="no">:::accordion
<span class="hljs-section">#### Qu'est-ce que Cecil ?</span>
Un générateur de site statique, écrit en PHP, qui transforme des fichiers Markdown en site web.

<span class="hljs-section">#### Puis-je utiliser du HTML ?</span>
Oui, et un élément natif <span class="hljs-code">`&lt;details&gt;`</span> est lui aussi mis en forme comme un accordéon.
:::</code></pre>
<h2 id="cartes">Cartes</h2>
<div class="note note-cards" id="note-cards-6">
  <ul>
    <li><a href="../../getting-started/quickstart/">Démarrage rapide</a><div class="leon-card-description">créer un site de zéro</div></li>
    <li><a href="../../../reference/configuration/">Configuration</a><div class="leon-card-description">toutes les options du thème</div></li>
  </ul>
</div>
<pre><code class="language-markdown hljs markdown" translate="no">:::cards
<span class="hljs-bullet">- </span>[<span class="hljs-string">Démarrage rapide</span>](<span class="hljs-link">../../getting-started/quickstart/</span>) : créer un site de zéro
<span class="hljs-bullet">- </span>[<span class="hljs-string">Configuration</span>](<span class="hljs-link">../../../reference/configuration/</span>) : toutes les options du thème
:::</code></pre>
<h2 id="imbrication">Imbrication</h2>
<p>Un bloc peut en contenir d'autres : sa clôture doit alors être plus longue que la leur (<code translate="no">::::steps</code> … <code translate="no">::::</code>).</p>
<div class="note note-steps" id="note-steps-7">
  <ol class="leon-steps">
    <li class="leon-step">
      <h4>Installer</h4>
      <div class="note note-code-group" id="note-code-group-8" data-leon-tabs>
  <div class="leon-tablist" role="tablist">
    <button type="button" class="leon-tab-button" id="note-code-group-8-tab-1" role="tab" aria-controls="note-code-group-8-panel-1" aria-selected="true">Bash</button>
    <button type="button" class="leon-tab-button" id="note-code-group-8-tab-2" role="tab" aria-controls="note-code-group-8-panel-2" aria-selected="false" tabindex="-1">PowerShell</button>
  </div>
  <div class="leon-tabpanel" id="note-code-group-8-panel-1" role="tabpanel" aria-labelledby="note-code-group-8-tab-1" tabindex="0">
    <p class="leon-tabpanel-title">Bash</p>
    <pre><code class="language-bash hljs bash" translate="no">brew install cecil</code></pre>
  </div>
  <div class="leon-tabpanel" id="note-code-group-8-panel-2" role="tabpanel" aria-labelledby="note-code-group-8-tab-2" tabindex="0">
    <p class="leon-tabpanel-title">PowerShell</p>
    <pre><code class="language-powershell hljs powershell" translate="no">scoop install cecil</code></pre>
  </div>
</div>
    </li>
    <li class="leon-step">
      <h4>Configurer</h4>
      <aside class="note note-tip"><p>Ajoutez <code translate="no">leon</code> à la liste <code translate="no">theme</code> de votre site.</p></aside>
    </li>
    <li class="leon-step">
      <h4>Générer</h4>
      <p>Lancez <code translate="no">cecil build</code>.</p>
    </li>
  </ol>
</div>
<pre><code class="language-markdown hljs markdown" translate="no">::::steps
<span class="hljs-section">#### Installer</span>
:::code-group
<span class="hljs-code">```bash
brew install cecil
```</span>
<span class="hljs-code">```powershell
scoop install cecil
```</span>
:::

<span class="hljs-section">#### Configurer</span>
:::tip
Ajoutez <span class="hljs-code">`leon`</span> à la liste <span class="hljs-code">`theme`</span> de votre site.
:::

<span class="hljs-section">#### Générer</span>
Lancez <span class="hljs-code">`cecil build`</span>.
::::</code></pre>
<div class="note note-tabs" id="note-tabs-9" data-leon-tabs>
  <div class="leon-tablist" role="tablist">
    <button type="button" class="leon-tab-button" id="note-tabs-9-tab-1" role="tab" aria-controls="note-tabs-9-panel-1" aria-selected="true">Composer</button>
    <button type="button" class="leon-tab-button" id="note-tabs-9-tab-2" role="tab" aria-controls="note-tabs-9-panel-2" aria-selected="false" tabindex="-1">Archive</button>
  </div>
  <div class="leon-tabpanel" id="note-tabs-9-panel-1" role="tabpanel" aria-labelledby="note-tabs-9-tab-1" tabindex="0">
    <p class="leon-tabpanel-title">Composer</p>
    <pre><code class="language-bash hljs bash" translate="no">composer require cecil/theme-leon</code></pre>
  </div>
  <div class="leon-tabpanel" id="note-tabs-9-panel-2" role="tabpanel" aria-labelledby="note-tabs-9-tab-2" tabindex="0">
    <p class="leon-tabpanel-title">Archive</p>
    <aside class="note note-warning"><p>Installez aussi les thèmes de composants requis.</p></aside>
  </div>
</div>
<pre><code class="language-markdown hljs markdown" translate="no">::::tabs
<span class="hljs-section">#### Composer</span>
<span class="hljs-code">```bash
composer require cecil/theme-leon
```</span>

<span class="hljs-section">#### Archive</span>
:::warning
Installez aussi les thèmes de composants requis.
:::
::::</code></pre>
<h2 id="code">Code</h2>
<p>Du <code translate="no">code</code> en ligne, des touches de clavier comme <kbd>Ctrl</kbd> + <kbd>K</kbd>, et des blocs avec coloration syntaxique :</p>
<pre><code class="language-php hljs php" translate="no"><span class="hljs-meta">&lt;?php</span>
<span class="hljs-comment">// génère le site</span>
$builder = Cecil\Builder::create($config);
$builder-&gt;build([<span class="hljs-string">'drafts'</span> =&gt; <span class="hljs-keyword">false</span>]);</code></pre>
<pre><code class="language-twig hljs twig" translate="no"><span class="hljs-template-tag">{% <span class="hljs-name"><span class="hljs-keyword">for</span></span> page in site.pages|sort_by_date %}</span><span class="xml">
  <span class="hljs-tag">&lt;<span class="hljs-name">a</span> <span class="hljs-attr">href</span>=<span class="hljs-string">"</span></span></span><span class="hljs-template-variable">{{ url(page) }}</span><span class="xml"><span class="hljs-tag"><span class="hljs-string">"</span>&gt;</span></span><span class="hljs-template-variable">{{ page.title }}</span><span class="xml"><span class="hljs-tag">&lt;/<span class="hljs-name">a</span>&gt;</span>
</span><span class="hljs-template-tag">{% <span class="hljs-name"><span class="hljs-keyword">endfor</span></span> %}</span></code></pre>
<h2 id="tableaux">Tableaux</h2>
<table>
<thead>
<tr>
<th>Ce que je veux faire</th>
<th>Meilleure option</th>
</tr>
</thead>
<tbody>
<tr>
<td>Rechercher dans la documentation</td>
<td>Appuyer sur <kbd>Ctrl</kbd> + <kbd>K</kbd></td>
</tr>
<tr>
<td>Lire une page en Markdown</td>
<td><strong>Copier la page</strong> → Voir en Markdown</td>
</tr>
<tr>
<td>Interroger un assistant IA</td>
<td><strong>Copier la page</strong> → Ouvrir dans Claude</td>
</tr>
</tbody>
</table>
<h2 id="diagrammes">Diagrammes</h2>
<pre><code class="language-mermaid" translate="no">flowchart LR
  A[Markdown] --&gt; B(Cecil)
  B --&gt; C{Léon}
  C --&gt; D[HTML]
  C --&gt; E[Markdown]
  C --&gt; F[llms.txt]</code></pre>
<h2 id="citations-et-listes">Citations et listes</h2>
<blockquote>
<p>La simplicité est la sophistication suprême.</p>
</blockquote>
<ol>
<li>Premier élément</li>
<li>Deuxième élément<ul>
<li>Élément imbriqué</li>
<li>Un autre</li>
</ul>
</li>
<li>Troisième élément</li>
</ol>]]>
    </content>
  </entry>
  <entry xml:lang="fr">
    <id>https://cecilapp.github.io/theme-leon/fr/docs/guides/advanced/customization/</id>
    <title>Personnalisation</title>
    <published>2026-10-22T22:11:04+00:00</published>
    <link href="https://cecilapp.github.io/theme-leon/fr/docs/guides/advanced/customization/" rel="alternate" type="text/html" />
    <content type="html">
      <![CDATA[<h2 id="design-tokens">Design tokens</h2>
<p>Chaque couleur est une propriété personnalisée CSS, définie pour les modes clair et sombre :</p>
<pre><code class="language-css hljs css" translate="no"><span class="hljs-selector-pseudo">:root</span> {
  <span class="hljs-attribute">--leon-accent</span>: <span class="hljs-number">#2563eb</span>;
}
<span class="hljs-selector-class">.dark</span> {
  <span class="hljs-attribute">--leon-page</span>: <span class="hljs-number">#000</span>;
}</code></pre>
<h2 id="templates">Templates</h2>
<p>Copiez n'importe quel template de <code translate="no">themes/leon/layouts/</code> dans le répertoire <code translate="no">layouts/</code> de votre site pour le surcharger.</p>]]>
    </content>
  </entry>
  <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/docs/getting-started/quickstart/</id>
    <title>Démarrage rapide</title>
    <published>2026-10-22T22:11:04+00:00</published>
    <link href="https://cecilapp.github.io/theme-leon/fr/docs/getting-started/quickstart/" rel="alternate" type="text/html" />
    <content type="html">
      <![CDATA[<p>Ce guide vous accompagne dans la création d'un site de documentation.</p>
<div class="note note-steps" id="note-steps-1">
  <ol class="leon-steps">
    <li class="leon-step">
      <h4>Créer un site</h4>
      <p>Téléchargez Cecil et créez un nouveau site :</p>
<pre><code class="language-bash hljs bash" translate="no">curl -LO https://cecil.app/cecil.phar
php cecil.phar new:site</code></pre>
    </li>
    <li class="leon-step">
      <h4>Installer le thème</h4>
      <pre><code class="language-bash hljs bash" translate="no">composer require cecil/theme-leon</code></pre>
    </li>
    <li class="leon-step">
      <h4>Activer les thèmes</h4>
      <p>Ajoutez Léon et ses composants à <code translate="no">cecil.yml</code> :</p>
<pre><code class="language-yaml hljs yaml" translate="no"><span class="hljs-attr">theme:</span>
  <span class="hljs-bullet">-</span> <span class="hljs-string">leon</span>
  <span class="hljs-bullet">-</span> <span class="hljs-string">flexsearch</span>
  <span class="hljs-bullet">-</span> <span class="hljs-string">darkmodetoggle</span></code></pre>
<p>Rien d'autre à configurer : Léon trie les pages par poids et ajoute leur version Markdown et le fichier <code translate="no">llms.txt</code> (voir <a href="/theme-leon/fr/reference/configuration/#options-de-cecil">Configuration</a>).</p>
    </li>
    <li class="leon-step">
      <h4>Prévisualiser</h4>
      <pre><code class="language-bash hljs bash" translate="no">php cecil.phar serve</code></pre>
<p>Ouvrez <a href="http://localhost:8000" rel="noopener noreferrer">http://localhost:8000</a> et commencez à écrire.</p>
    </li>
  </ol>
</div>
<aside class="note note-tip"><p>Organisez vos pages en dossiers : chaque dossier de premier niveau devient un onglet, et chaque sous-dossier un groupe de la barre latérale.</p></aside>]]>
    </content>
  </entry>
  <entry xml:lang="fr">
    <id>https://cecilapp.github.io/theme-leon/fr/docs/guides/search/</id>
    <title>Recherche</title>
    <published>2026-10-22T22:11:04+00:00</published>
    <link href="https://cecilapp.github.io/theme-leon/fr/docs/guides/search/" rel="alternate" type="text/html" />
    <content type="html">
      <![CDATA[<p>Appuyez sur <kbd>Ctrl</kbd> + <kbd>K</kbd> (ou <kbd>⌘</kbd> + <kbd>K</kbd>) pour ouvrir la recherche.</p>
<h2 id="groupes-de-resultats">Groupes de résultats</h2>
<p>Les résultats sont groupés par section, dans l'ordre de l'option <code translate="no">flexsearch.sections</code> :</p>
<pre><code class="language-yaml hljs yaml" translate="no"><span class="hljs-attr">flexsearch:</span>
  <span class="hljs-attr">sections:</span>
    <span class="hljs-attr">docs:</span>
      <span class="hljs-attr">limit:</span> <span class="hljs-number">6</span>
    <span class="hljs-attr">reference:</span>
      <span class="hljs-attr">limit:</span> <span class="hljs-number">4</span></code></pre>]]>
    </content>
  </entry>
  <entry xml:lang="fr">
    <id>https://cecilapp.github.io/theme-leon/fr/docs/guides/advanced/translations/</id>
    <title>Traductions</title>
    <published>2026-10-22T22:11:04+00:00</published>
    <link href="https://cecilapp.github.io/theme-leon/fr/docs/guides/advanced/translations/" rel="alternate" type="text/html" />
    <content type="html">
      <![CDATA[<p>Ajoutez vos propres traductions dans <code translate="no">translations/messages.&lt;locale&gt;.yml</code>.</p>
<h2 id="configuration-multilingue">Configuration multilingue</h2>
<p>Traduisez les options dans la clé <code translate="no">config</code> de chaque langue. Le bloc <code translate="no">leon</code> est fusionné avec celui de la langue par défaut : ne définissez que les clés traduites.</p>
<pre><code class="language-yaml hljs yaml" translate="no"><span class="hljs-attr">leon:</span>
  <span class="hljs-attr">header:</span>
    <span class="hljs-attr">cta:</span>
      <span class="hljs-attr">name:</span> <span class="hljs-string">Get</span> <span class="hljs-string">started</span>
      <span class="hljs-attr">url:</span> <span class="hljs-string">/docs/getting-started/quickstart/</span>
  <span class="hljs-attr">footer:</span> <span class="hljs-string">'Released under the MIT license.'</span>
<span class="hljs-attr">languages:</span>
  <span class="hljs-bullet">-</span> <span class="hljs-attr">code:</span> <span class="hljs-string">en</span>
    <span class="hljs-attr">name:</span> <span class="hljs-string">English</span>
    <span class="hljs-attr">locale:</span> <span class="hljs-string">en_US</span>
  <span class="hljs-bullet">-</span> <span class="hljs-attr">code:</span> <span class="hljs-string">fr</span>
    <span class="hljs-attr">name:</span> <span class="hljs-string">Français</span>
    <span class="hljs-attr">locale:</span> <span class="hljs-string">fr_FR</span>
    <span class="hljs-attr">config:</span>
      <span class="hljs-attr">leon:</span>
        <span class="hljs-attr">header:</span>
          <span class="hljs-attr">cta:</span>
            <span class="hljs-attr">name:</span> <span class="hljs-string">Commencer</span> <span class="hljs-comment"># l'`url` est héritée</span>
        <span class="hljs-attr">footer:</span> <span class="hljs-string">'Publié sous licence MIT.'</span></code></pre>
<aside class="note note-warning"><p>Les menus ne sont pas hérités : répétez intégralement les <code translate="no">menus</code> du site dans la clé <code translate="no">config</code> de chaque langue.</p></aside>
<h2 id="langue-du-navigateur">Langue du navigateur</h2>
<p>Avec <code translate="no">leon.language.suggest: true</code>, un bandeau suggère la traduction de la page correspondant à la langue du navigateur, rédigé dans cette langue. Il reste affiché jusqu'à ce que le visiteur le suive, le ferme ou choisisse une langue avec le sélecteur.</p>]]>
    </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>
  <entry xml:lang="fr">
    <id>https://cecilapp.github.io/theme-leon/fr/docs/getting-started/installation/</id>
    <title>Installation</title>
    <published>2026-10-22T22:11:04+00:00</published>
    <updated>2026-10-21T00:00:00+00:00</updated>
    <link href="https://cecilapp.github.io/theme-leon/fr/docs/getting-started/installation/" rel="alternate" type="text/html" />
    <content type="html">
      <![CDATA[<h2 id="avec-composer">Avec Composer</h2>
<pre><code class="language-bash hljs bash" translate="no">composer require cecil/theme-leon</code></pre>
<p>Composer installe Léon dans <code translate="no">themes/leon</code>, et ses dépendances dans <code translate="no">themes/flexsearch</code> et <code translate="no">themes/darkmodetoggle</code>.</p>
<h2 id="manuellement">Manuellement</h2>
<p>Téléchargez la <a href="https://github.com/Cecilapp/theme-leon/releases/latest/" rel="noopener noreferrer">dernière version</a> et décompressez-la dans <code translate="no">themes/leon</code>.</p>
<aside class="note note-warning"><p>Les dépendances de thèmes ne sont pas résolues automatiquement : téléchargez aussi les thèmes <a href="https://github.com/Cecilapp/theme-flexsearch" rel="noopener noreferrer">FlexSearch</a> et <a href="https://github.com/Cecilapp/theme-darkmodetoggle" rel="noopener noreferrer">Dark mode toggle</a>.</p></aside>
<h2 id="prerequis">Prérequis</h2>
<table>
<thead>
<tr>
<th>Logiciel</th>
<th>Version</th>
</tr>
</thead>
<tbody>
<tr>
<td>Cecil</td>
<td>9.18.0+</td>
</tr>
</tbody>
</table>]]>
    </content>
  </entry>
</feed>
