Skip to content

Commit f911008

Browse files
authored
Merge pull request #14 from adafruit/dherrada-patch-1
Removed building locally section from README, replaced with documenta…
2 parents a5095d0 + 00eb1cd commit f911008

File tree

1 file changed

+26
-46
lines changed

1 file changed

+26
-46
lines changed

README.rst

Lines changed: 26 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -30,65 +30,45 @@ Please ensure all dependencies are available on the CircuitPython filesystem.
3030
This is easily achieved by downloading
3131
`the Adafruit library and driver bundle <https://github.com/adafruit/Adafruit_CircuitPython_Bundle>`_.
3232

33-
Usage Example
34-
=============
35-
36-
See examples/ra8875_simpletest.py and examples/ra8875_bmptest.py for examples of the module's usage. When
37-
running the bmptest, be sure to upload the blinka.bmp image to the root folder as well.
38-
39-
Contributing
40-
============
41-
42-
Contributions are welcome! Please read our `Code of Conduct
43-
<https://github.com/adafruit/Adafruit_CircuitPython_RA8875/blob/master/CODE_OF_CONDUCT.md>`_
44-
before contributing to help this project stay welcoming.
45-
46-
Building locally
47-
================
48-
49-
Zip release files
50-
-----------------
51-
52-
To build this library locally you'll need to install the
53-
`circuitpython-build-tools <https://github.com/adafruit/circuitpython-build-tools>`_ package.
54-
55-
.. code-block:: shell
56-
57-
python3 -m venv .env
58-
source .env/bin/activate
59-
pip install circuitpython-build-tools
33+
Installing from PyPI
34+
====================
6035

61-
Once installed, make sure you are in the virtual environment:
36+
On supported GNU/Linux systems like the Raspberry Pi, you can install the driver locally `from
37+
PyPI <https://pypi.org/project/adafruit-circuitpython-ra8875/>`_. To install for current user:
6238

6339
.. code-block:: shell
6440
65-
source .env/bin/activate
66-
67-
Then run the build:
41+
pip3 install adafruit-circuitpython-ra8875
42+
43+
To install system-wide (this may be required in some cases):
6844

6945
.. code-block:: shell
7046
71-
circuitpython-build-bundles --filename_prefix adafruit-circuitpython-ra8875 --library_location .
72-
73-
Sphinx documentation
74-
-----------------------
75-
76-
Sphinx is used to build the documentation based on rST files and comments in the code. First,
77-
install dependencies (feel free to reuse the virtual environment from above):
47+
sudo pip3 install adafruit-circuitpython-ra8875
48+
49+
To install in a virtual environment in your current project:
7850

7951
.. code-block:: shell
8052
53+
mkdir project-name && cd project-name
8154
python3 -m venv .env
8255
source .env/bin/activate
83-
pip install Sphinx sphinx-rtd-theme
56+
pip3 install adafruit-circuitpython-ra8875
57+
58+
Usage Example
59+
=============
60+
61+
See examples/ra8875_simpletest.py and examples/ra8875_bmptest.py for examples of the module's usage. When
62+
running the bmptest, be sure to upload the blinka.bmp image to the root folder as well.
8463

85-
Now, once you have the virtual environment activated:
64+
Contributing
65+
============
8666

87-
.. code-block:: shell
67+
Contributions are welcome! Please read our `Code of Conduct
68+
<https://github.com/adafruit/Adafruit_CircuitPython_RA8875/blob/master/CODE_OF_CONDUCT.md>`_
69+
before contributing to help this project stay welcoming.
8870

89-
cd docs
90-
sphinx-build -E -W -b html . _build/html
71+
Documentation
72+
=============
9173

92-
This will output the documentation to ``docs/_build/html``. Open the index.html in your browser to
93-
view them. It will also (due to -W) error out on any warning like Travis will. This is a good way to
94-
locally verify it will pass.
74+
For information on building library documentation, please check out `this guide <https://learn.adafruit.com/creating-and-sharing-a-circuitpython-library/sharing-our-docs-on-readthedocs#sphinx-5-1>`_.

0 commit comments

Comments
 (0)