88)
99from reflex_site_shared .components .inkeep import inkeep
1010from reflex_site_shared .components .marketing_button import button
11- from reflex_site_shared .constants import REFLEX_URL
1211from reflex_site_shared .views .sidebar import navbar_sidebar_button
1312
1413_REFLEX_NAV_LINKS = (
15- ("Overview" , f" { REFLEX_URL } docs/" ),
16- ("Build with AI" , f" { REFLEX_URL } docs/ai/overview/best-practices/" ),
17- ("Framework" , f" { REFLEX_URL } docs/getting-started/introduction/" ),
18- ("Cloud" , f" { REFLEX_URL } docs/hosting/deploy-quick-start/" ),
14+ ("Overview" , "/ docs/" ),
15+ ("Build with AI" , "/ docs/ai/overview/best-practices/" ),
16+ ("Framework" , "/ docs/getting-started/introduction/" ),
17+ ("Cloud" , "/ docs/hosting/deploy-quick-start/" ),
1918)
2019
2120
@@ -79,7 +78,7 @@ def _menu_item(label: str, href: str, *, active: bool = False) -> rx.Component:
7978 else ""
8079 )
8180 return ui .navigation_menu .item (
82- rx .el .a (
81+ rx .el .elements . a (
8382 button (label , size = "sm" , variant = "ghost" , native_button = False ),
8483 href = href ,
8584 class_name = "no-underline" ,
@@ -101,7 +100,7 @@ def _navigation_menu() -> rx.Component:
101100 return ui .navigation_menu .root (
102101 ui .navigation_menu .list (
103102 * (_menu_item (label , href ) for label , href in _REFLEX_NAV_LINKS ),
104- _menu_item ("XY" , "/" , active = True ),
103+ _menu_item ("XY" , "/docs/xy/ " , active = True ),
105104 class_name = "m-0 flex h-full list-none flex-row items-center gap-2" ,
106105 custom_attrs = {"role" : "menubar" },
107106 ),
@@ -139,9 +138,9 @@ def xy_docs_navbar() -> rx.Component:
139138 Official documentation navbar with an active XY section.
140139 """
141140 return docs_navbar_frame (
142- rx .el .a (
141+ rx .el .elements . a (
143142 xy_docs_logo (),
144- href = REFLEX_URL ,
143+ href = "/" ,
145144 class_name = "mr-10 flex shrink-0 items-center gap-2.5 no-underline" ,
146145 ),
147146 _navigation_menu (),
0 commit comments