We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 620e37e commit cf2b5d3Copy full SHA for cf2b5d3
pcweb/components/docpage/sidebar/sidebar_items/component_lib.py
@@ -6,7 +6,10 @@
6
def get_component_link(category, clist, prefix="") -> str:
7
component_name = rx.utils.format.to_kebab_case(clist[0])
8
# construct the component link. The component name points to the name of the md file.
9
- return f"/docs/library/{prefix.strip('/')}/{category.lower().replace(' ', '-')}/{component_name.lower()}"
+ if prefix:
10
+ return f"/docs/library/{prefix.strip('/')}/{category.lower().replace(' ', '-')}/{component_name.lower()}"
11
+ else:
12
+ return f"/docs/library/{category.lower().replace(' ', '-')}/{component_name.lower()}"
13
14
15
def get_category_children(category, category_list, prefix=""):
0 commit comments