Skip to content

Commit 208a25e

Browse files
committed
mock docs module. fix docs build
1 parent d65459e commit 208a25e

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

adafruit_displayio_layout/layouts/grid_layout.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -89,16 +89,14 @@ def _layout_sub_views(self):
8989
self.append(sub_view["view"])
9090

9191
def add_sub_view(self, new_view, grid_position, view_grid_size):
92-
"""
93-
Add a child to the grid.
92+
"""Add a child to the grid.
9493
9594
:param new_view: the child object to add e.g. label, button, etc...
9695
:param grid_position: where in the grid it should go. Tuple with
97-
x,y coordinates in grid cells. e.g. (1,0)
96+
x,y coordinates in grid cells. e.g. (1,0)
9897
:param view_grid_size: the size and shape of cells that the new
99-
child should occupy.
100-
:return: None
101-
"""
98+
child should occupy.
99+
:return: None"""
102100
sub_view_obj = {
103101
"view": new_view,
104102
"grid_position": grid_position,

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
# Uncomment the below if you use native CircuitPython modules such as
2626
# digitalio, micropython and busio. List the modules you use. Without it, the
2727
# autodoc module docs will fail to generate with a warning.
28-
# autodoc_mock_imports = ["digitalio", "busio"]
28+
autodoc_mock_imports = ["displayio"]
2929

3030

3131
intersphinx_mapping = {

0 commit comments

Comments
 (0)