Skip to content

Commit d035a68

Browse files
authored
Merge pull request #4652 from jposada202020/design_guide_changes
Referencing_documentation_other_libraries
2 parents 2a04379 + cb42ace commit d035a68

File tree

1 file changed

+33
-2
lines changed

1 file changed

+33
-2
lines changed

docs/design_guide.rst

Lines changed: 33 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -238,11 +238,34 @@ Module description
238238
After the license comment::
239239

240240
"""
241-
`<module name>` - <Short description>
241+
`<module name>`
242242
=================================================
243-
<Longer description.>
243+
244+
<Longer description>
245+
246+
* Author(s):
247+
248+
Implementation Notes
249+
--------------------
250+
251+
252+
**Hardware:**
253+
254+
* Adafruit `Device Description
255+
<hyperlink>`_ (Product ID: <Product Number>)
256+
257+
**Software and Dependencies:**
258+
259+
* Adafruit CircuitPython firmware for the supported boards:
260+
https://circuitpython.org/downloads
261+
* Adafruit's Bus Device library:
262+
https://github.com/adafruit/Adafruit_CircuitPython_BusDevice
263+
* Adafruit's Register library:
264+
https://github.com/adafruit/Adafruit_CircuitPython_Register
265+
244266
"""
245267

268+
246269
Class description
247270
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
248271

@@ -383,6 +406,14 @@ Renders as:
383406

384407
:param float degrees: Degrees to turn right
385408

409+
Documentation References to other Libraries
410+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
411+
When you need to make references to documentation in other libraries you should refer the class using single
412+
backticks ``:class:`~adafruit_motor.servo.Servo```. You must also add the reference in the ``conf.py`` file in the
413+
``intersphinx_mapping section`` by adding a new entry::
414+
415+
"adafruit_motor": ("https://circuitpython.readthedocs.io/projects/motor/en/latest/", None,),
416+
386417
Use BusDevice
387418
--------------------------------------------------------------------------------
388419

0 commit comments

Comments
 (0)