Skip to content

Commit 7502de0

Browse files
committed
ignore protected private magic
1 parent 5552d6f commit 7502de0

File tree

1 file changed

+13
-7
lines changed

1 file changed

+13
-7
lines changed

docs/conf.py

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,10 @@
44
#
55
# needs_sphinx = "1.0"
66

7-
import sys
8-
import os
9-
107
from sphinx.ext.napoleon.docstring import NumpyDocstring
118

129
import sphinx_compas_theme
1310

14-
sys.path.insert(0, os.path.abspath("../src"))
15-
1611
# -- General configuration ------------------------------------------------
1712

1813
project = "COMPAS"
@@ -79,6 +74,17 @@
7974

8075
autoclass_content = "class"
8176

77+
78+
def skip(app, what, name, obj, would_skip, options):
79+
if name.startswith('_'):
80+
return True
81+
return would_skip
82+
83+
84+
def setup(app):
85+
app.connect("autodoc-skip-member", skip)
86+
87+
8288
# autosummary options
8389

8490
autosummary_generate = True
@@ -97,8 +103,8 @@
97103

98104
# graph options
99105

100-
inheritance_graph_attrs = dict(rankdir="TB", size='"16.0, 10.0"', ratio="auto", resolution=150)
101-
inheritance_node_attrs = dict(fontsize=10)
106+
inheritance_graph_attrs = dict(rankdir="LR", resolution=150)
107+
inheritance_node_attrs = dict(fontsize=8)
102108

103109
# napoleon options
104110

0 commit comments

Comments
 (0)