Skip to content

Commit 53d065a

Browse files
authored
Merge pull request #10 from adafruit/dherrada-patch-1
Removed building locally section from README, replaced with documenta…
2 parents 2e5aedf + 271610d commit 53d065a

File tree

1 file changed

+3
-45
lines changed

1 file changed

+3
-45
lines changed

README.rst

+3-45
Original file line numberDiff line numberDiff line change
@@ -74,49 +74,7 @@ Contributions are welcome! Please read our `Code of Conduct
7474
<https://github.com/adafruit/Adafruit_CircuitPython_thermistor/blob/master/CODE_OF_CONDUCT.md>`_
7575
before contributing to help this project stay welcoming.
7676

77-
Building locally
78-
================
79-
80-
To build this library locally you'll need to install the
81-
`circuitpython-build-tools <https://github.com/adafruit/circuitpython-build-tools>`_ package.
82-
83-
.. code-block:: shell
84-
85-
python3 -m venv .env
86-
source .env/bin/activate
87-
pip install circuitpython-build-tools
88-
89-
Once installed, make sure you are in the virtual environment:
90-
91-
.. code-block:: shell
92-
93-
source .env/bin/activate
94-
95-
Then run the build:
96-
97-
.. code-block:: shell
98-
99-
circuitpython-build-bundles --filename_prefix adafruit-circuitpython-thermistor --library_location .
100-
101-
Sphinx documentation
102-
-----------------------
103-
104-
Sphinx is used to build the documentation based on rST files and comments in the code. First,
105-
install dependencies (feel free to reuse the virtual environment from above):
106-
107-
.. code-block:: shell
108-
109-
python3 -m venv .env
110-
source .env/bin/activate
111-
pip install Sphinx sphinx-rtd-theme
112-
113-
Now, once you have the virtual environment activated:
114-
115-
.. code-block:: shell
116-
117-
cd docs
118-
sphinx-build -E -W -b html . _build/html
77+
Documentation
78+
=============
11979

120-
This will output the documentation to ``docs/_build/html``. Open the index.html in your browser to
121-
view them. It will also (due to -W) error out on any warning like Travis will. This is a good way to
122-
locally verify it will pass.
80+
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)