Skip to content

sphinx doc improvements #24

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

Merged
merged 10 commits into from
Dec 22, 2020
Merged

sphinx doc improvements #24

merged 10 commits into from
Dec 22, 2020

Conversation

ktdreyer
Copy link
Contributor

I've updated the Sphinx documentation to fix some bad copy-and-pastes and make things clearer.

Display the class' __init__ methods' docstrings in the online
documentation. This helps users to understand the class APIs.

Remove the docstring from the _XYZPacket parent class, because Sphinx
was rendering that for every child class (AccelerometerPacket,
GyroPacket, MagnetometerPacket, QuaternionPacket). Apparently the
"autodoc_inherit_docstrings = False" setting does not work in that case.
As alluded in the __init__() docstring, explain that the "pressed"
property is False when a button is released.
Some links went to the Adafruit_CircuitPython_ble project instead of
this Adafruit_CircuitPython_BluefruitConnect project (possibly a bad
copy-and-paste). Update those links to point to this project instead.
Remove the reference to the Feather nRF52840 Express, since this library
can be used on many boards now (eg. Circuit Playground BlueFruit).

Update BlueFruit Connect App link to point to Adafruit's main app web
page, rather than the iOS-specific page, since this app is available for
Andriod too now.

Remove the GitHub releases link and add a link to to circuitpython.org's
download page instead, because the GitHub release pages point there now.
Prior to this change, Sphinx incorrectly indented the "checksum" list item.
Wrap and indent the lines at a proper length so that Sphinx renders this
list item the same as the other items.
Explain that this attribute corresponds to whatever the user has pressed
or released.
Link to Python's documentation for the "tuple" built-in type so readers
can easily understand this term.
Explain that this comes from a user's choice in the application.
The QuaternionPacket's documentation was copy-pasted from the _XYZPacket
class. Write a new docstring for the QuaternionPacket class to describe
what it does.
Copy link
Member

@tannewt tannewt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@tannewt
Copy link
Member

tannewt commented Dec 22, 2020

Would you mind updating the issues PyLint flagged? I know they aren't from your PR but the build is failing with them.

@ktdreyer
Copy link
Contributor Author

Sure. I'm going to push a separate PR for those.

@ktdreyer
Copy link
Contributor Author

PyLint fix in #25

@jepler jepler merged commit 395c5a0 into adafruit:master Dec 22, 2020
adafruit-adabot added a commit to adafruit/Adafruit_CircuitPython_Bundle that referenced this pull request Dec 29, 2020
Updating https://github.com/adafruit/Adafruit_CircuitPython_BNO08X to 1.0.3 from 1.0.2:
  > Merge pull request adafruit/Adafruit_CircuitPython_BNO08x#11 from TwoTenPvP/patch-2
  > Merge pull request adafruit/Adafruit_CircuitPython_BNO08x#10 from TwoTenPvP/patch-1

Updating https://github.com/adafruit/Adafruit_CircuitPython_GPS to 3.6.6 from 3.6.5:
  > Merge pull request adafruit/Adafruit_CircuitPython_GPS#49 from d-c-d/master

Updating https://github.com/adafruit/Adafruit_CircuitPython_LSM9DS1 to 2.1.4 from 2.1.3:
  > Merge pull request adafruit/Adafruit_CircuitPython_LSM9DS1#27 from adafruit/spi_mag_auto_incr

Updating https://github.com/adafruit/Adafruit_CircuitPython_SHTC3 to 1.0.4 from 1.0.3:
  > Merge pull request adafruit/Adafruit_CircuitPython_SHTC3#5 from mshannon78660/master

Updating https://github.com/adafruit/Adafruit_CircuitPython_BluefruitConnect to 1.1.5 from 1.1.4:
  > Merge pull request adafruit/Adafruit_CircuitPython_BluefruitConnect#24 from ktdreyer/docs-fixes
  > Merge pull request adafruit/Adafruit_CircuitPython_BluefruitConnect#25 from ktdreyer/button-packet-length

Updating https://github.com/adafruit/Adafruit_CircuitPython_Slideshow to 1.5.3 from 1.5.2:
  > Merge pull request adafruit/Adafruit_CircuitPython_Slideshow#33 from ladyada/master
  > Merge pull request adafruit/Adafruit_CircuitPython_Slideshow#32 from adafruit/revert-30-join_paths_instead_of_concat
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants