Skip to content

Commit cc3ee04

Browse files
authored
Merge branch 'main' into ahmad/intro-vid
2 parents f23feac + db7da3f commit cc3ee04

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

pcweb/components/docpage/navbar/navbar.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,13 @@ def link_item(name: str, url: str, active_str: str = ""):
7474
elif active_str == "pricing":
7575
active = router_path.contains("pricing")
7676

77+
elif active_str == "framework":
78+
# Check if path contains "docs" but excludes ai-builder, cloud, and hosting
79+
is_docs = router_path.contains("docs")
80+
not_cloud = ~(router_path.contains("cloud") | router_path.contains("hosting"))
81+
not_ai_builder = ~router_path.contains("ai-builder")
82+
active = is_docs & not_cloud & not_ai_builder
83+
7784
elif active_str == "docs":
7885
active = rx.cond(
7986
router_path.contains("library"), False, router_path.contains("docs")
@@ -438,7 +445,7 @@ def new_component_section() -> rx.Component:
438445
rx.el.div(
439446
nav_menu.item(
440447
link_item(
441-
"AI Builder", ai_builder_pages.overview.path, "builder"
448+
"AI Builder", ai_builder_pages.overview.what_is_reflex_build.path, "builder"
442449
),
443450
),
444451
nav_menu.item(

pcweb/components/docpage/sidebar/sidebar.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,6 @@ def sidebar_comp(
453453
create_sidebar_section(
454454
"Overview",
455455
ai_builder_pages.overview.what_is_reflex_build.path,
456-
# ai_builder_pages.overview.path,
457456
ai_builder_overview_items,
458457
ai_builder_overview_index,
459458
url,

0 commit comments

Comments
 (0)