Skip to content

Commit

Permalink
Deployed 818b98f with MkDocs version: 1.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jkmnt committed Aug 7, 2024
1 parent 402f2db commit d17dcb2
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion api/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -601,7 +601,7 @@ <h2 id="attr">attr</h2>
Keywords overrides the dictionary.</p>
<ul>
<li><code>True</code> values are rendered as just the name, e.g <code>hidden</code></li>
<li><code>False</code> values are discarded</li>
<li><code>False</code> and <code>None</code> values are discarded</li>
<li>strings are rendered as name-value pairs, e.g. <code>type="checkbox"</code></li>
<li>numbers are interpolated, e.g. <code>tabindex="-1"</code></li>
</ul>
Expand Down
6 changes: 3 additions & 3 deletions lint/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -461,14 +461,14 @@ <h2 id="annotating-the-code">Annotating the code</h2>
<div class="htmf-code"><div><span style="color: #0000ff;">def</span><span style="color: #000000;"> </span><span style="color: #795e26;">Widget</span><span style="color: #000000;">(</span><span style="color: #001080;">header</span><span style="color: #000000;">: </span><span style="color: #267f99;">Safe</span><span style="color: #000000;">, </span><span style="color: #001080;">body</span><span style="color: #000000;">: </span><span style="color: #267f99;">Safe</span><span style="color: #000000;">) -&gt; </span><span style="color: #267f99;">Safe</span><span style="color: #000000;">:</span></div><div><span style="color: #000000;">&nbsp; &nbsp; </span><span style="color: #af00db;">return</span><span style="color: #000000;"> </span><span style="color: #267f99;">ht</span><span style="color: #000000;">.</span><span style="color: #001080;">m</span><span style="color: #000000;">(</span><span style="color: #0000ff;">f</span><span style="color: #a31515;">"</span><span style="color: #800000;">&lt;div&gt;</span><span style="color: #0000ff;font-style: italic;font-weight: bold;">{</span><span style="color: #000000;"> </span><span style="color: #001080;">header</span><span style="color: #000000;"> </span><span style="color: #0000ff;font-style: italic;font-weight: bold;">}</span><span style="color: #000000;"> </span><span style="color: #0000ff;font-style: italic;font-weight: bold;">{</span><span style="color: #000000;"> </span><span style="color: #001080;">body</span><span style="color: #000000;"> </span><span style="color: #0000ff;font-style: italic;font-weight: bold;">}</span><span style="color: #800000;">&lt;/div&gt;</span><span style="color: #a31515;">"</span><span style="color: #000000;">)</span></div></div></p>
</li>
<li>
<p><code>if/else</code> ternary if both branches are <code>Safe</code>
<p><code>if/else</code> ternary if both branches are safe
<!--
ht.m(f"<div>{ 'a' if some_conditional else 'b' }</div>")
-->
<div class="htmf-code"><div><span style="color: #267f99;">ht</span><span style="color: #000000;">.</span><span style="color: #001080;">m</span><span style="color: #000000;">(</span><span style="color: #0000ff;">f</span><span style="color: #a31515;">"</span><span style="color: #800000;">&lt;div&gt;</span><span style="color: #0000ff;font-style: italic;font-weight: bold;">{</span><span style="color: #000000;"> </span><span style="color: #a31515;">'a'</span><span style="color: #000000;"> </span><span style="color: #af00db;">if</span><span style="color: #000000;"> some_conditional </span><span style="color: #af00db;">else</span><span style="color: #000000;"> </span><span style="color: #a31515;">'b'</span><span style="color: #000000;"> </span><span style="color: #0000ff;font-style: italic;font-weight: bold;">}</span><span style="color: #800000;">&lt;/div&gt;</span><span style="color: #a31515;">"</span><span style="color: #000000;">)</span></div></div></p>
</li>
<li>
<p><code>or</code> expression if left operands are <code>Safe</code> (or <code>None</code>) and right operand is <code>Safe</code>
<p><code>or</code> expression if left operands are safe (or <code>None</code>) and right operand is safe
<!--
ht.m(f"<div>{ safe_or_none or another_safe_or_none or '?' }</div>")
-->
Expand All @@ -491,7 +491,7 @@ <h2 id="verifying-the-markup">Verifying the markup</h2>
<p>There are a few things to be aware of:</p>
<ul>
<li>
<p>The html5lib makes a distinction between complete HTML document and fragment. Well-formed document should contain the <code class="language-html highlight"><span class="cp">&lt;!DOCTYPE html&gt;</span><span class="p">&lt;</span><span class="nt">html</span><span class="p">&gt;</span>...<span class="p">&lt;/</span><span class="nt">html</span><span class="p">&gt;</span></code> tags. Use <code>ht.document</code> function to wrap the top-level template. Use <code>ht.m</code> for the partials/components.</p>
<p>The html5lib makes a distinction between HTML document and fragment. Well-formed document should contain the <code class="language-html highlight"><span class="cp">&lt;!DOCTYPE html&gt;</span><span class="p">&lt;</span><span class="nt">html</span><span class="p">&gt;</span>...<span class="p">&lt;/</span><span class="nt">html</span><span class="p">&gt;</span></code> tags. Use <code>ht.document</code> function to wrap the top-level template. Use <code>ht.m</code> for the partials/components.</p>
</li>
<li>
<p>html5lib will complain for some standalone fragments invalid outside of the parent tags. Notable example is the <code class="language-html highlight"><span class="p">&lt;</span><span class="nt">tr</span><span class="p">&gt;</span></code> tags allowed only inside <code class="language-html highlight"><span class="p">&lt;</span><span class="nt">table</span><span class="p">&gt;</span></code>.
Expand Down
12 changes: 6 additions & 6 deletions sitemap.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,32 +2,32 @@
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://jkmnt.github.io/htmf/</loc>
<lastmod>2024-08-06</lastmod>
<lastmod>2024-08-07</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://jkmnt.github.io/htmf/api/</loc>
<lastmod>2024-08-06</lastmod>
<lastmod>2024-08-07</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://jkmnt.github.io/htmf/format/</loc>
<lastmod>2024-08-06</lastmod>
<lastmod>2024-08-07</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://jkmnt.github.io/htmf/highlight/</loc>
<lastmod>2024-08-06</lastmod>
<lastmod>2024-08-07</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://jkmnt.github.io/htmf/lint/</loc>
<lastmod>2024-08-06</lastmod>
<lastmod>2024-08-07</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://jkmnt.github.io/htmf/rant/</loc>
<lastmod>2024-08-06</lastmod>
<lastmod>2024-08-07</lastmod>
<changefreq>daily</changefreq>
</url>
</urlset>
Binary file modified sitemap.xml.gz
Binary file not shown.

0 comments on commit d17dcb2

Please sign in to comment.