<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="https://cecilapp.github.io/theme-leon/xsl/atom.xsl" media="all"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
  <id>https://cecilapp.github.io/theme-leon/reference/</id>
  <title>Léon - Reference</title>
  <subtitle><![CDATA[Léon is a documentation theme for Cecil, with a warm and editorial look.]]></subtitle>
  <link href="https://cecilapp.github.io/theme-leon/reference/atom.xml" rel="self" type="application/atom+xml" />
  <link href="https://cecilapp.github.io/theme-leon/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="en">
    <id>https://cecilapp.github.io/theme-leon/reference/configuration/</id>
    <title>Configuration</title>
    <published>2026-10-22T22:11:04+00:00</published>
    <link href="https://cecilapp.github.io/theme-leon/reference/configuration/" rel="alternate" type="text/html" />
    <content type="html">
      <![CDATA[<p>Léon options are namespaced under <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"># accent color (e.g. '#2563eb'), clay by default</span>
  <span class="hljs-attr">accent_dark:</span> <span class="hljs-string">''</span>    <span class="hljs-comment"># accent color in dark mode, derived from `accent` by default</span>
  <span class="hljs-attr">fonts:</span>
    <span class="hljs-attr">bundled:</span> <span class="hljs-literal">true</span>    <span class="hljs-comment"># loads the bundled fonts</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"># site title next to the logo</span>
    <span class="hljs-attr">cta:</span> <span class="hljs-string">{}</span>          <span class="hljs-comment"># e.g. {name: Get started, 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"># suggests the translation matching the browser language</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"># and/or 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>The logo is set by the <code translate="no">logo</code> key at the root of the site configuration (not under <code translate="no">leon</code>), with a path relative to <code translate="no">assets/</code> or <code translate="no">static/</code>. It is displayed before the site title, in the header and in the footer:</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>To use a different file in each color scheme:</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"># displayed on the light background</span>
  <span class="hljs-attr">dark:</span> <span class="hljs-string">images/logo-dark.svg</span>  <span class="hljs-comment"># displayed on the dark background</span></code></pre>
<aside class="note note-tip"><p>If the logo already contains the name of the site, hide the title with <code translate="no">leon.header.title: false</code>.</p></aside>
<h2 id="cecil-options">Cecil options</h2>
<p>Léon configures Cecil for a documentation site: your configuration can override each of these 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"># the `1-` prefix of the file name, or the `weight` variable</span>
  <span class="hljs-attr">pagination:</span>
    <span class="hljs-attr">enabled:</span> <span class="hljs-literal">false</span>   <span class="hljs-comment"># cards of a section list every child page</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"># Markdown version of the pages ("Copy 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"># `llms.txt` file</span></code></pre>
<p>To remove an output format, set it to <code translate="no">false</code>: a map of booleans adds or removes a format without replacing the others.</p>
<h2 id="syntax-highlighting">Syntax highlighting</h2>
<p>Code blocks are highlighted by highlight.php by default. Léon also styles the output of tempest/highlight, faster but limited to the languages of the 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` by default</span></code></pre>
<aside class="note note-note"><p>With tempest/highlight, the languages it doesn't know (Bash, PowerShell, Markdown…) are displayed without colors.</p></aside>]]>
    </content>
  </entry>
  <entry xml:lang="en">
    <id>https://cecilapp.github.io/theme-leon/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/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>Displayed under the title.</td>
</tr>
<tr>
<td><code translate="no">eyebrow</code></td>
<td>Text above the title (the group name by default).</td>
</tr>
<tr>
<td><code translate="no">sidebar_title</code></td>
<td>Title in the sidebar.</td>
</tr>
<tr>
<td><code translate="no">collapsed</code></td>
<td>Collapses a nested section in the sidebar.</td>
</tr>
<tr>
<td><code translate="no">toc</code></td>
<td><code translate="no">false</code> hides the table of contents.</td>
</tr>
<tr>
<td><code translate="no">copypage</code></td>
<td><code translate="no">false</code> hides the "Copy page" button.</td>
</tr>
<tr>
<td><code translate="no">updated</code></td>
<td>"Last updated" date.</td>
</tr>
<tr>
<td><code translate="no">cards</code></td>
<td>Cards of the home page (<code translate="no">title</code>, <code translate="no">description</code>, <code translate="no">url</code>).</td>
</tr>
</tbody>
</table>]]>
    </content>
  </entry>
</feed>
