File tree 1 file changed +7
-3
lines changed
1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -119,9 +119,10 @@ def repo_grouping(
119
119
_repo_content = self .get_children (lookup_path )
120
120
121
121
# special treatment to quickstart tutorial
122
- quickstart_file = self ._pop_quickstart_from (_repo_content )
123
- if content_type .lower () == "tutorials" and quickstart_file :
124
- repo_nav ["Quickstart" ] = quickstart_file # type: ignore
122
+ if content_type .lower () == "tutorials" :
123
+ quickstart_file = self ._pop_quickstart_from (_repo_content )
124
+ if quickstart_file :
125
+ repo_nav ["Quickstart" ] = quickstart_file # type: ignore
125
126
126
127
# doesnt render content-type section if no files inside
127
128
if _repo_content :
@@ -134,6 +135,9 @@ def repo_grouping(
134
135
def _pop_quickstart_from (self , pathlist : t .List [str ]) -> t .Optional [str ]:
135
136
"""Get quickstart.md file from filelist with case and variations tolerance"""
136
137
for path in pathlist :
138
+ if not isinstance (path , str ):
139
+ continue
140
+
137
141
filename = path .split ("/" )[- 1 ]
138
142
if filename .lower () in ("quickstart.md" , "quick-start.md" ):
139
143
pathlist .remove (path )
You can’t perform that action at this time.
0 commit comments