Skip to content

Commit 236b5ea

Browse files
Alek99Alek Petuskey
andauthored
Add dynamic rendering back to sidebar (#1232)
Co-authored-by: Alek Petuskey <[email protected]>
1 parent 29646eb commit 236b5ea

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

pcweb/pages/docs/__init__.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -165,14 +165,7 @@ def get_component(doc: str, title: str):
165165
return multi_docs(path=route, comp=d, component_list=clist, title=title2)
166166
if doc.startswith("docs/library"):
167167
clist = [title, *get_components_from_metadata(d)]
168-
if len(clist) > 1:
169-
if issubclass(
170-
clist[1][0],
171-
(RadixThemesComponent, RadixPrimitiveComponent),
172-
):
173-
component_list[category].append(clist)
174-
else:
175-
component_list[category].append(clist)
168+
component_list[category].append(clist)
176169
if should_skip_compile(doc):
177170
outblocks.append((d, route))
178171
return

0 commit comments

Comments
 (0)