Skip to content

Commit e5d7148

Browse files
authored
Removed building locally section from README, replaced with documentation section
1 parent 436a062 commit e5d7148

File tree

1 file changed

+3
-45
lines changed

1 file changed

+3
-45
lines changed

README.rst

Lines changed: 3 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -58,49 +58,7 @@ Contributions are welcome! Please read our `Code of Conduct
5858
<https://github.com/adafruit/Adafruit_CircuitPython_DS2413/blob/master/CODE_OF_CONDUCT.md>`_
5959
before contributing to help this project stay welcoming.
6060

61-
Building locally
62-
================
63-
64-
To build this library locally you'll need to install the
65-
`circuitpython-build-tools <https://github.com/adafruit/circuitpython-build-tools>`_ package.
66-
67-
.. code-block:: shell
68-
69-
python3 -m venv .env
70-
source .env/bin/activate
71-
pip install circuitpython-build-tools
72-
73-
Once installed, make sure you are in the virtual environment:
74-
75-
.. code-block:: shell
76-
77-
source .env/bin/activate
78-
79-
Then run the build:
80-
81-
.. code-block:: shell
82-
83-
circuitpython-build-bundles --filename_prefix adafruit-circuitpython-ds2413 --library_location .
84-
85-
Sphinx documentation
86-
-----------------------
87-
88-
Sphinx is used to build the documentation based on rST files and comments in the code. First,
89-
install dependencies (feel free to reuse the virtual environment from above):
90-
91-
.. code-block:: shell
92-
93-
python3 -m venv .env
94-
source .env/bin/activate
95-
pip install Sphinx sphinx-rtd-theme
96-
97-
Now, once you have the virtual environment activated:
98-
99-
.. code-block:: shell
100-
101-
cd docs
102-
sphinx-build -E -W -b html . _build/html
61+
Documentation
62+
=============
10363

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