Skip to content

Commit e6446fc

Browse files
authored
Merge pull request #171 from dstansby/inheritance-graphs
Add inheritance graphs to docs
2 parents 993207e + 26c8bd0 commit e6446fc

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

Diff for: .github/workflows/docs.yml

+2
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ jobs:
2222
run: |
2323
python -m pip install --upgrade pip
2424
python -m pip install ".[docs]"
25+
sudo apt install graphviz --yes
26+
2527
- name: Build Docs
2628
uses: aganders3/headless-gui@v1
2729
with:

Diff for: docs/conf.py

+7-3
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@
4949
}
5050

5151
numpydoc_show_class_members = False
52-
automodapi_inheritance_diagram = False
52+
automodapi_inheritance_diagram = True
53+
inheritance_graph_attrs = {"rankdir": "TR"}
5354

5455
intersphinx_mapping = {
5556
"python": ("https://docs.python.org/3/", None),
@@ -60,11 +61,14 @@
6061
}
6162

6263
nitpicky = True
63-
# Can't work out how to link this properley using intersphinx and the PyQT6 docs.
64+
# Can't work out how to link this properly using intersphinx and the PyQT6 docs.
6465
# TODO: fix at some point
6566
nitpick_ignore = [
66-
("py:class", "PyQt6.QtWidgets.QWidget"),
6767
("py:class", "PyQt5.QtWidgets.QWidget"),
68+
("py:class", "PyQt5.QtCore.QObject"),
69+
("py:class", "PyQt5.QtGui.QPaintDevice"),
70+
("py:class", "sip.simplewrapper"),
71+
("py:class", "sip.wrapper"),
6872
]
6973

7074
# Add any paths that contain templates here, relative to this directory.

0 commit comments

Comments
 (0)