Skip to content

Commit 9a2f613

Browse files
authored
Merge pull request #2 from FoamyGuy/docs_diagram
adding inheritance diagram to docs
2 parents 5fb69e2 + 6e2df1c commit 9a2f613

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

.github/workflows/build.yml

+3
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ jobs:
4545
- name: Pip install pylint, Sphinx, pre-commit
4646
run: |
4747
pip install --force-reinstall pylint Sphinx sphinx-rtd-theme pre-commit
48+
- name: Load graphviz
49+
run: |
50+
sudo apt install graphviz
4851
- name: Library version
4952
run: git describe --dirty --always --tags
5053
- name: Setup problem matchers

docs/api.rst

+3
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,6 @@
77
.. automodule:: displayio_switchround
88
:members:
99
:member-order: bysource
10+
:inherited-members:
11+
12+
.. inheritance-diagram:: adafruit_displayio_layout.widgets.switch_round

docs/conf.py

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
"sphinx.ext.intersphinx",
2020
"sphinx.ext.napoleon",
2121
"sphinx.ext.todo",
22+
"sphinx.ext.inheritance_diagram",
2223
]
2324

2425
# TODO: Please Read!

0 commit comments

Comments
 (0)