Skip to content

Commit 47adef7

Browse files
committed
Fix documentation build issues related to class attributes and methods.
1 parent d0495d3 commit 47adef7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

docs/conf.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,12 @@
1919
basename = re.sub('_(\\w)', lambda x: x.group(1).upper(),
2020
package.__name__.title())
2121

22+
autodoc_member_order = 'bysource'
23+
autodoc_mock_imports = ['colour', 'cv2']
24+
2225
autosummary_generate = True
2326

24-
autodoc_mock_imports = ['colour', 'cv2']
27+
napoleon_custom_sections = ['Attributes', 'Methods']
2528

2629
# If extensions (or modules to document with autodoc) are in another directory,
2730
# add these directories to sys.path here. If the directory is relative to the

0 commit comments

Comments
 (0)