Skip to content

Commit

Permalink
update docs for pypi installation (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
gisellerosetta authored Oct 11, 2023
1 parent 2bae2ee commit 274d109
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 13 deletions.
12 changes: 5 additions & 7 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -137,14 +137,12 @@ <h2 class="anchored" data-anchor-id="requirements">Requirements</h2>
</section>
<section id="installing-py_af_colours" class="level2">
<h2 class="anchored" data-anchor-id="installing-py_af_colours">Installing py_af_colours</h2>
<p>py_af_colours is now on <a href="https://pypi.org/project/py-af-colours/">PyPI</a>. To install the package:</p>
<ol type="1">
<li>Clone the github repository.<br>
</li>
<li>In anaconda powershell, navigate to the drive this is saved on.</li>
<li>Open the anaconda powershell;</li>
<li>Run:</li>
</ol>
<pre class="{shell}"><code>pip install -e &lt;path to py_af_colours folder&gt;</code></pre>
<p>This process may change when py_af_colours goes live on PyPI and artifactory.</p>
<pre class="{shell}"><code>pip install py-af-colours</code></pre>
</section>
<section id="how-to-obtain-colours" class="level2">
<h2 class="anchored" data-anchor-id="how-to-obtain-colours">How to obtain colours</h2>
Expand Down Expand Up @@ -179,7 +177,7 @@ <h2 class="anchored" data-anchor-id="basic-examples">Basic examples</h2>
<p>For example, to return the duo colour palette hex codes:</p>
<div class="cell" data-execution_count="3">
<div class="sourceCode" id="cb3"><pre class="sourceCode python cell-code code-with-copy"><code class="sourceCode python"><span id="cb3-1"><a href="#cb3-1" aria-hidden="true" tabindex="-1"></a>af_colours(<span class="st">"duo"</span>)</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<div class="cell-output-display" data-execution_count="23">
<div class="cell-output-display" data-execution_count="3">
<pre><code>['#12436D', '#F46A25']</code></pre>
</div>
</div>
Expand All @@ -191,7 +189,7 @@ <h2 class="anchored" data-anchor-id="basic-examples">Basic examples</h2>
<pre><code>UserWarning: It is best practice to limit graphs to four categories where possible to avoid graphs becoming cluttered.
af_colours("categorical", "rgb", 5)</code></pre>
</div>
<div class="cell-output-display" data-execution_count="24">
<div class="cell-output-display" data-execution_count="4">
<pre><code>[(18, 67, 109), (40, 161, 151), (128, 22, 80), (244, 106, 37), (61, 61, 61)]</code></pre>
</div>
</div>
Expand Down
11 changes: 5 additions & 6 deletions docs/index.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,15 @@ To run af_colours in Python, your system requires the following installations:


## Installing py_af_colours
1. Clone the github repository.
2. In anaconda powershell, navigate to the drive this is saved on.
3. Run:
py_af_colours is now on [PyPI](https://pypi.org/project/py-af-colours/). To install the package:

1. Open the anaconda powershell;
2. Run:

```{shell}
pip install -e <path to py_af_colours folder>
pip install py-af-colours
```

This process may change when py_af_colours goes live on PyPI and artifactory.

## How to obtain colours
In your python environment, import the af_colours function:

Expand Down

0 comments on commit 274d109

Please sign in to comment.