-
Notifications
You must be signed in to change notification settings - Fork 51
api doc's param & code-block display correctly #44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@2bndy5 Thanks for taking the time to do this, I have a few comments/changes to make before I can merge this in.
re: > Side-note: there are a lot more examples in this library that are not being displayed on RTD. Furthermore there are no module-level docstrings that would help identify the purpose of the examples (other than the example filename). I'm not too familiar with this library, so I didn't go crazy adding all the examples to examples.rst.
You're correct - we should add the purpose of these examples as docstrings to each of them. They've been increasing over time.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for making the requested changes, looks good
Updating https://github.com/adafruit/Adafruit_CircuitPython_DS3231 to 2.4.0 from 2.3.2: > Merge pull request adafruit/Adafruit_CircuitPython_DS3231#27 from jepler/calibration-and-temperature Updating https://github.com/adafruit/Adafruit_CircuitPython_PCF8523 to 1.5.0 from 1.4.2: > Merge pull request adafruit/Adafruit_CircuitPython_PCF8523#19 from jepler/calibration-registers Updating https://github.com/adafruit/Adafruit_CircuitPython_PM25 to 1.0.2 from 1.0.1: > Merge pull request adafruit/Adafruit_CircuitPython_PM25#3 from dglaude/patch-1 Updating https://github.com/adafruit/Adafruit_CircuitPython_PyPortal to 3.3.0 from 3.2.5: > Merge pull request adafruit/Adafruit_CircuitPython_PyPortal#82 from fede2cr/master Updating https://github.com/adafruit/Adafruit_CircuitPython_MiniMQTT to 3.2.2 from 3.2.1: > Merge pull request adafruit/Adafruit_CircuitPython_MiniMQTT#44 from 2bndy5/master Updating https://github.com/adafruit/Adafruit_CircuitPython_ProgressBar to 1.3.0 from 1.2.3: > Merge pull request adafruit/Adafruit_CircuitPython_ProgressBar#8 from FoamyGuy/performance_boost Updating https://github.com/adafruit/Adafruit_CircuitPython_Requests to 1.5.0 from 1.4.3: > Merge pull request adafruit/Adafruit_CircuitPython_Requests#29 from brentru/update-cellular-3g
api doc's param & code-block display correctly
I went to read the docs for this library and noticed all the parameters and example code-blocks were not displaying properly because there was no empty line that preceded them. Verified locally via
sphinx-build
that the changes generate properly.Upon further reading I noticed there was a (un-admonished) deprecation notice and a reference to an example that was not being displayed on RTD. I added the example to
examples.rst
as "Basic Forever Loop", and I changed the notice to an admonished "Note" so that it sticks out to the reader better.Side-note: there are a lot more examples in this library that are not being displayed on RTD. Furthermore there are no module-level docstrings that would help identify the purpose of the examples (other than the example filename). I'm not too familiar with this library, so I didn't go crazy adding all the examples to
examples.rst
.