Synchronized build

This commit is contained in:
Lektor Bot 2023-05-23 00:26:21 +00:00
parent 596b2f7b46
commit 3dc9f994e4
7 changed files with 9 additions and 9 deletions

View File

@ -231,7 +231,7 @@ slightly different.</p>
an attachment named <code>docs/overview/screenshot.jpg</code> the <code>_id</code> will be the
filename of the attachment: <code>screenshot.jpg</code>.</p>
<p>Note that IDs are not globally unique! There is also the <code>_path</code> which is
the entire path if the record.</p>
the entire path of the record.</p>
<p>The <code>_id</code> is automatically set and cannot be overridden.</p>
<h2 id="example">Example</h2><div class="hll"><pre><span></span><span class="p">&lt;</span><span class="nt">ul</span> <span class="na">class</span><span class="o">=</span><span class="s">&quot;nav&quot;</span><span class="p">&gt;</span>
<span class="cp">{%</span> <span class="k">for</span> <span class="nv">item</span> <span class="k">in</span> <span class="nv">site.query</span><span class="o">(</span><span class="s1">&#39;/projects&#39;</span><span class="o">)</span> <span class="cp">%}</span>

View File

@ -223,7 +223,7 @@ the usefulness is limited.</p>
<a href="../../../build/program/" class="ref">Build Program</a> for more information)</li>
</ul>
<div class="admonition admonition-warning"><p>Note that currently both the builder as well as the build state are
undocumented and unsupported! This means that if a plugin choses to use those
undocumented and unsupported! This means that if a plugin chooses to use those
references to do something with it they should consider that they might break
in future versions.</p></div><h2 id="example">Example</h2><div class="hll"><pre><span></span><span class="k">def</span> <span class="nf">on_before_build</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">source</span><span class="p">,</span> <span class="n">prog</span><span class="p">,</span> <span class="o">**</span><span class="n">extra</span><span class="p">):</span>
<span class="nb">print</span><span class="p">(</span><span class="s1">&#39;building </span><span class="si">%s</span><span class="s1">&#39;</span> <span class="o">%</span> <span class="n">source</span><span class="o">.</span><span class="n">source_filename</span><span class="p">)</span>

View File

@ -155,7 +155,7 @@
<p><code>lektor clean</code></p>
<p>Cleans the entire build folder.</p>
<p>If not build folder is provided, the default build folder of the project
<p>If no build folder is provided, the default build folder of the project
in the Lektor cache is used.</p>
<h2 id="options">Options</h2><ul>
<li><code>-O, --output-path PATH</code>: The output path.</li>

View File

@ -171,7 +171,7 @@
</ul>
<p><code>lektor plugins remove NAME</code></p>
<p>This command can remove a plugion to the project again. The name
<p>This command can remove a plugin to the project again. The name
of the plugin is the only argument to the function.</p>
<h2 id="options">Options</h2><ul>
<li><code>--help</code>: print this help page.</li>

View File

@ -155,7 +155,7 @@
<p><code>lektor server</code></p>
<p>The server command will launch a local server for development.</p>
<p>Lektor's developemnt server will automatically build all files into
<p>Lektor's development server will automatically build all files into
pages similar to how the build command with the <code>--watch</code> switch
works, but also at the same time serve up the website on a local
HTTP server.</p>

View File

@ -319,7 +319,7 @@ more information about this refer to the guide.</p>
<span class="na">url_prefix</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="s">/fr/</span>
<span class="na">locale</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="s">fr</span>
</pre></div>
<h3 id="attachment-types"><code>[attachment_types]</code></h3><p>Lektor does some basic attachment type detection based on file extension. This is what powers the <code>this.attachemnts.images</code> and <code>this.attachments.videos</code> attributes for instance. If the built-in map does not cover your file extension you can extend it or add new attachement types on a project by project basis.</p>
<h3 id="attachment-types"><code>[attachment_types]</code></h3><p>Lektor does some basic attachment type detection based on file extension. This is what powers the <code>this.attachments.images</code> and <code>this.attachments.videos</code> attributes for instance. If the built-in map does not cover your file extension you can extend it or add new attachment types on a project by project basis.</p>
<p>Example:</p>
<div class="hll"><pre><span></span><span class="k">[attachment_types]</span>
<span class="c1">; &lt;.file-ext&gt; = &lt;type&gt;</span>

View File

@ -151,7 +151,7 @@ speak multiple languages and allow you to easily create localized websites.</li>
<div class="slideshow-wrapper">
<div class="slideshow">
<div class="slideshow-inner">
<div class="carousel slide" data-ride="carousel" data-interval="8500" id="carousel-85f261f339bb4613a491d687c19260ca">
<div class="carousel slide" data-ride="carousel" data-interval="8500" id="carousel-a75afb8d3c664ffa881c8e310fb41797">
<div class="carousel-inner" role="listbox">
@ -210,11 +210,11 @@ be completely customized.</p>
</div>
</div>
<a class="left carousel-control" href="#carousel-85f261f339bb4613a491d687c19260ca" role="button" data-slide="prev">
<a class="left carousel-control" href="#carousel-a75afb8d3c664ffa881c8e310fb41797" role="button" data-slide="prev">
<span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
<span class="sr-only">Previous</span>
</a>
<a class="right carousel-control" href="#carousel-85f261f339bb4613a491d687c19260ca" role="button" data-slide="next">
<a class="right carousel-control" href="#carousel-a75afb8d3c664ffa881c8e310fb41797" role="button" data-slide="next">
<span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
<span class="sr-only">Next</span>
</a>