Skip to content

Commit

Permalink
Deployed 8c18f19 with MkDocs version: 1.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
maxludden committed Jul 21, 2024
1 parent b7f70b7 commit ff263f3
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 9 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -770,7 +770,7 @@ <h3 id="v017-updated">v0.1.7 Updated<a class="headerlink" href="#v017-updated" t
<li>Updated Gradient.generate_subgradients() to default to returning a list containing a single simple gradient to allow
Gradients to work when only supplied with two colors.</li>
</ul>
<p><img alt="Two Color Gradient" src="img/two_color_gradient_example.svg" /></p>
<p><img alt="Two Color Gradient" src="https://raw.githubusercontent.com/maxludden/rich-gradient/3b6e2cb013eda3bcba9dbcdd14c65179d28532da/docs/img/simple_gradient_example.svg" /></p>
<h3 id="v017-added">v0.1.7 Added<a class="headerlink" href="#v017-added" title="Permanent link">&para;</a></h3>
<ul>
<li>Added len, int, str, and repr dunder methods to <code>rich-gradient.gradient.Gradient</code> (will simply refer to as <code>Gradient</code> from here on out).</li>
Expand Down
33 changes: 29 additions & 4 deletions gradient/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -389,6 +389,21 @@
</span>
</a>

<nav class="md-nav" aria-label="Specific Color Gradient">
<ul class="md-nav__list">

<li class="md-nav__item">
<a href="#two-color-gradint" class="md-nav__link">
<span class="md-ellipsis">
Two Color Gradint
</span>
</a>

</li>

</ul>
</nav>

</li>

</ul>
Expand Down Expand Up @@ -608,14 +623,24 @@ <h2 id="random-gradient">Random Gradient<a class="headerlink" href="#random-grad
<p><img alt="Random Gradient" src="../img/random_gradient_example.svg" /></p>
<h2 id="specific-color-gradient">Specific Color Gradient<a class="headerlink" href="#specific-color-gradient" title="Permanent link">&para;</a></h2>
<p>You can specify the colors you want to use in your gradient by passing a list of color names, hex color codes, rgb color codes, or <a href="../color/"><code>rich_gradient.color.Color</code></a> to the <code>colors</code> parameter.</p>
<h3 id="two-color-gradint">Two Color Gradint<a class="headerlink" href="#two-color-gradint" title="Permanent link">&para;</a></h3>
<div class="language-python highlight"><pre><span></span><code><span id="__span-1-1"><a id="__codelineno-1-1" name="__codelineno-1-1" href="#__codelineno-1-1"></a> <span class="n">console</span><span class="o">.</span><span class="n">print</span><span class="p">(</span>
</span><span id="__span-1-2"><a id="__codelineno-1-2" name="__codelineno-1-2" href="#__codelineno-1-2"></a> <span class="n">Gradient</span><span class="p">(</span>
</span><span id="__span-1-3"><a id="__codelineno-1-3" name="__codelineno-1-3" href="#__codelineno-1-3"></a> <span class="s2">&quot;This a gradient with specific colors.&quot;</span><span class="p">,</span>
</span><span id="__span-1-4"><a id="__codelineno-1-4" name="__codelineno-1-4" href="#__codelineno-1-4"></a> <span class="n">colors</span><span class="o">=</span><span class="p">[</span><span class="s2">&quot;red&quot;</span><span class="p">,</span> <span class="s2">&quot;#ff9900&quot;</span><span class="p">,</span> <span class="s2">&quot;#ff0&quot;</span><span class="p">,</span> <span class="s2">&quot;Lime&quot;</span><span class="p">],</span>
</span><span id="__span-1-5"><a id="__codelineno-1-5" name="__codelineno-1-5" href="#__codelineno-1-5"></a> <span class="n">justify</span><span class="o">=</span><span class="s2">&quot;center&quot;</span>
</span><span id="__span-1-6"><a id="__codelineno-1-6" name="__codelineno-1-6" href="#__codelineno-1-6"></a> <span class="p">)</span>
</span><span id="__span-1-3"><a id="__codelineno-1-3" name="__codelineno-1-3" href="#__codelineno-1-3"></a> <span class="s2">&quot;This a gradient with two colors.&quot;</span><span class="p">,</span>
</span><span id="__span-1-4"><a id="__codelineno-1-4" name="__codelineno-1-4" href="#__codelineno-1-4"></a> <span class="n">colors</span><span class="o">=</span><span class="p">[</span><span class="s2">&quot;red&quot;</span><span class="p">,</span> <span class="s2">&quot;orange&quot;</span><span class="p">]</span>
</span><span id="__span-1-5"><a id="__codelineno-1-5" name="__codelineno-1-5" href="#__codelineno-1-5"></a> <span class="p">),</span>
</span><span id="__span-1-6"><a id="__codelineno-1-6" name="__codelineno-1-6" href="#__codelineno-1-6"></a> <span class="n">justify</span><span class="o">=</span><span class="s2">&quot;center&quot;</span>
</span><span id="__span-1-7"><a id="__codelineno-1-7" name="__codelineno-1-7" href="#__codelineno-1-7"></a> <span class="p">)</span>
</span></code></pre></div>
<p><img alt="two color gradient" src="https://raw.githubusercontent.com/maxludden/rich-gradient/3b6e2cb013eda3bcba9dbcdd14c65179d28532da/docs/img/simple_gradient_example.svg" /></p>
<div class="language-python highlight"><pre><span></span><code><span id="__span-2-1"><a id="__codelineno-2-1" name="__codelineno-2-1" href="#__codelineno-2-1"></a> <span class="n">console</span><span class="o">.</span><span class="n">print</span><span class="p">(</span>
</span><span id="__span-2-2"><a id="__codelineno-2-2" name="__codelineno-2-2" href="#__codelineno-2-2"></a> <span class="n">Gradient</span><span class="p">(</span>
</span><span id="__span-2-3"><a id="__codelineno-2-3" name="__codelineno-2-3" href="#__codelineno-2-3"></a> <span class="s2">&quot;This a gradient with specific colors.&quot;</span><span class="p">,</span>
</span><span id="__span-2-4"><a id="__codelineno-2-4" name="__codelineno-2-4" href="#__codelineno-2-4"></a> <span class="n">colors</span><span class="o">=</span><span class="p">[</span><span class="s2">&quot;red&quot;</span><span class="p">,</span> <span class="s2">&quot;#ff9900&quot;</span><span class="p">,</span> <span class="s2">&quot;#ff0&quot;</span><span class="p">,</span> <span class="s2">&quot;Lime&quot;</span><span class="p">],</span>
</span><span id="__span-2-5"><a id="__codelineno-2-5" name="__codelineno-2-5" href="#__codelineno-2-5"></a> <span class="n">justify</span><span class="o">=</span><span class="s2">&quot;center&quot;</span>
</span><span id="__span-2-6"><a id="__codelineno-2-6" name="__codelineno-2-6" href="#__codelineno-2-6"></a> <span class="p">)</span>
</span><span id="__span-2-7"><a id="__codelineno-2-7" name="__codelineno-2-7" href="#__codelineno-2-7"></a> <span class="p">)</span>
</span></code></pre></div>
<p><img alt="specific color gradient" src="../img/specific_color_gradient.svg" /></p>


Expand Down
6 changes: 3 additions & 3 deletions gradient_rule/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -615,7 +615,7 @@ <h2 id="usage">Usage<a class="headerlink" href="#usage" title="Permanent link">&
</span><span id="__span-0-8"><a id="__codelineno-0-8" name="__codelineno-0-8" href="#__codelineno-0-8"></a> <span class="p">)</span>
</span><span id="__span-0-9"><a id="__codelineno-0-9" name="__codelineno-0-9" href="#__codelineno-0-9"></a><span class="p">)</span>
</span></code></pre></div>
<p><img alt="GradientRule" src="../img/rule_example1.svg" /></p>
<p><img alt="GradientRule" src="https://raw.githubusercontent.com/maxludden/rich-gradient/3b6e2cb013eda3bcba9dbcdd14c65179d28532da/docs/img/rule_example1.svg" /></p>
<h2 id="alignment">Alignment<a class="headerlink" href="#alignment" title="Permanent link">&para;</a></h2>
<p>The <code>GradientRule</code> class supports the same alignment options as the <code>Rule</code> class.</p>
<div class="language-python highlight"><pre><span></span><code><span id="__span-1-1"><a id="__codelineno-1-1" name="__codelineno-1-1" href="#__codelineno-1-1"></a><span class="n">console</span><span class="o">.</span><span class="n">print</span><span class="p">(</span>
Expand All @@ -625,7 +625,7 @@ <h2 id="alignment">Alignment<a class="headerlink" href="#alignment" title="Perma
</span><span id="__span-1-5"><a id="__codelineno-1-5" name="__codelineno-1-5" href="#__codelineno-1-5"></a> <span class="p">)</span>
</span><span id="__span-1-6"><a id="__codelineno-1-6" name="__codelineno-1-6" href="#__codelineno-1-6"></a><span class="p">)</span>
</span></code></pre></div>
<p><img alt="GradientRule Alignment" src="../img/rule_example2.svg" /></p>
<p><img alt="GradientRule Alignment" src="https://raw.githubusercontent.com/maxludden/rich-gradient/3b6e2cb013eda3bcba9dbcdd14c65179d28532da/docs/img/rule_example2.svg" /></p>
<h2 id="thickness">Thickness<a class="headerlink" href="#thickness" title="Permanent link">&para;</a></h2>
<p>The <code>GradientRule</code> class add the ability to determine the thickness of the rule. Valid values are <code>thin</code>, <code>medium</code>, and <code>thick</code>. Defaults to <code>medium</code>.</p>
<div class="language-python highlight"><pre><span></span><code><span id="__span-2-1"><a id="__codelineno-2-1" name="__codelineno-2-1" href="#__codelineno-2-1"></a><span class="n">console</span><span class="o">.</span><span class="n">print</span><span class="p">(</span>
Expand All @@ -635,7 +635,7 @@ <h2 id="thickness">Thickness<a class="headerlink" href="#thickness" title="Perma
</span><span id="__span-2-5"><a id="__codelineno-2-5" name="__codelineno-2-5" href="#__codelineno-2-5"></a> <span class="p">)</span>
</span><span id="__span-2-6"><a id="__codelineno-2-6" name="__codelineno-2-6" href="#__codelineno-2-6"></a><span class="p">)</span>
</span></code></pre></div>
<p><img alt="GradientRule Thickness" src="../img/rule_example3.svg" /></p>
<p><img alt="GradientRule Thickness" src="https://raw.githubusercontent.com/maxludden/rich-gradient/3b6e2cb013eda3bcba9dbcdd14c65179d28532da/docs/img/rule_example3.svg" /></p>



Expand Down
2 changes: 1 addition & 1 deletion search/search_index.json

Large diffs are not rendered by default.

0 comments on commit ff263f3

Please sign in to comment.