Skip to content

Commit d1c51e3

Browse files
committed
FIX made the building of the docs slightly more robust. readme files in folders without examples kill it otherwise.
1 parent be62aa9 commit d1c51e3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

doc/sphinxext/gen_rst.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -591,6 +591,8 @@ def line_count_sort(file_list, target_dir):
591591
unsorted[count][0] = exmpl
592592
index = np.lexsort((unsorted[:, 0].astype(np.str),
593593
unsorted[:, 1].astype(np.float)))
594+
if not len(unsorted):
595+
return []
594596
return np.array(unsorted[index][:, 0]).tolist()
595597

596598

0 commit comments

Comments
 (0)