Skip to content

Commit d5bc120

Browse files
committed
Exposing API components in Readthedocs, adding examples to the ReadtheDocs API
1 parent c48372c commit d5bc120

File tree

5 files changed

+59
-2
lines changed

5 files changed

+59
-2
lines changed

adafruit_progressbar/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# SPDX-License-Identifier: MIT
44

55
"""
6-
`progressbar_base`
6+
`adafruit_progressbar`
77
================================================================================
88
99
Dynamic progress bar widget for CircuitPython displays

adafruit_progressbar/horizontalprogressbar.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ class HorizontalProgressBar(ProgressBarBase):
5757
Using the diagrams below, the bar will fill in the following directions::
5858
5959
--------------------------------
60-
| Left-to-right | 1-3 to 2-4 |
60+
| Left-to-right | 1-3 to 2-4 |
6161
--------------------------------
6262
| Right-to-left | 2-4 to 1-3 |
6363
--------------------------------

docs/api.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ API Definition
66
.. If your library file(s) are nested in a directory (e.g. /adafruit_foo/foo.py)
77
.. use this format as the module name: "adafruit_foo.foo"
88
9+
.. automodule:: adafruit_progressbar
10+
:members:
11+
912
.. automodule:: adafruit_progressbar.horizontalprogressbar
1013
:members:
1114
:show-inheritance:

docs/examples.rst

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,53 @@ Ensure your device works with this simple test.
66
.. literalinclude:: ../examples/progressbar_simpletest.py
77
:caption: examples/progressbar_simpletest.py
88
:linenos:
9+
10+
11+
Vertical Simple test
12+
--------------------
13+
14+
Simple test to show a vertical Progress bar
15+
16+
.. literalinclude:: ../examples/progressbar_vertical_simpletest.py
17+
:caption: examples/progressbar_vertical_simpletest.py
18+
:linenos:
19+
20+
21+
MatrixPortal Example
22+
--------------------
23+
24+
Progressbar using the MatrixPortal
25+
26+
.. literalinclude:: ../examples/progressbar_matrixportal.py
27+
:caption: examples/examples/progressbar_matrixportal.py
28+
:linenos:
29+
30+
31+
32+
MagTag Example
33+
---------------
34+
35+
Progressbar using the MagTag
36+
37+
.. literalinclude:: ../examples/progressbar_magtag_simpletest.py
38+
:caption: examples/progressbar_magtag_simpletest.py
39+
:linenos:
40+
41+
42+
DisplayIO Blinka
43+
----------------
44+
45+
Progressbar using DisplayIO in Blinka
46+
47+
.. literalinclude:: ../examples/progressbar_displayio_blinka.py
48+
:caption: examples/progressbar_displayio_blinka.py
49+
:linenos:
50+
51+
Combined ProgressBar
52+
--------------------
53+
54+
Example showing both a Vertical and an Horizontal ProgressBar
55+
56+
.. literalinclude:: ../examples/progressbar_combined.py
57+
:caption: examples/progressbar_combined.py
58+
:linenos:

docs/index.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ Table of Contents
2323
.. toctree::
2424
:caption: Tutorials
2525

26+
ProgressBar Basics <https://learn.adafruit.com/magtag-progress-displays/progressbar-basics>
27+
28+
Adafruit MagTag COVID Vaccination Percent Tracker <https://learn.adafruit.com/adafruit-magtag-covid-vaccination-percent-tracker>
29+
2630

2731
.. toctree::
2832
:caption: Related Products

0 commit comments

Comments
 (0)