Skip to content

Commit

Permalink
Make the docs build (locally at any rate)
Browse files Browse the repository at this point in the history
  • Loading branch information
jepler committed Nov 29, 2023
1 parent 91f7502 commit 43ef2d3
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 13 deletions.
6 changes: 2 additions & 4 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,8 @@ or individual libraries can be installed using



.. todo:: Describe the Adafruit product this library works with. For PCBs, you can also add the
image from the assets folder in the PCB's GitHub repo.

`Purchase one from the Adafruit shop <http://www.adafruit.com/products/9999>`_
.. ::
`Purchase one from the Adafruit shop <http://www.adafruit.com/products/9999>`_

Installing from PyPI
=====================
Expand Down
17 changes: 16 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,22 @@
# Uncomment the below if you use native CircuitPython modules such as
# digitalio, micropython and busio. List the modules you use. Without it, the
# autodoc module docs will fail to generate with a warning.
# autodoc_mock_imports = ["digitalio", "busio"]
autodoc_mock_imports = [
"bitmaptools",
"adafruit_aw9523",
"adafruit_lis3dh",
"displayio",
"espcamera",
"neopixel",
"sdcardio",
"storage",
"terminalio",
"adafruit_debouncer",
"adafruit_display_text",
"digitalio",
"busio",
"micropython",
]

autodoc_preserve_defaults = True

Expand Down
4 changes: 2 additions & 2 deletions docs/examples.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ Simple test

Ensure your device works with this simple test.

.. literalinclude:: ../examples/pycamera_simpletest.py
:caption: examples/pycamera_simpletest.py
.. literalinclude:: ../examples/camera/code.py
:caption: examples/camera/code.py
:linenos:
6 changes: 0 additions & 6 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,9 @@ Table of Contents
.. toctree::
:caption: Tutorials

.. todo:: Add any Learn guide links here. If there are none, then simply delete this todo and leave
the toctree above for use later.

.. toctree::
:caption: Related Products

.. todo:: Add any product links here. If there are none, then simply delete this todo and leave
the toctree above for use later.

.. toctree::
:caption: Other Links

Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@

Adafruit-Blinka
adafruit-circuitpython-busdevice
adafruit-circuitpython-aw9523

0 comments on commit 43ef2d3

Please sign in to comment.