Skip to content

Commit 28867f2

Browse files
authored
ENG-6288: patch and update framework name (#1425)
* patch and update framework name * make redirect for framework
1 parent 2d9407f commit 28867f2

File tree

3 files changed

+8
-12
lines changed

3 files changed

+8
-12
lines changed

pcweb/components/docpage/navbar/navbar.py

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,12 @@ def link_item(name: str, url: str, active_str: str = ""):
7676

7777
elif active_str == "framework":
7878
# Check if path contains "docs" but excludes ai-builder, cloud, and hosting
79+
# OR if path contains "open-source" (for the main open source landing page)
7980
is_docs = router_path.contains("docs")
81+
is_open_source_page = router_path.contains("open-source")
8082
not_cloud = ~(router_path.contains("cloud") | router_path.contains("hosting"))
8183
not_ai_builder = ~router_path.contains("ai-builder")
82-
active = is_docs & not_cloud & not_ai_builder
84+
active = (is_docs & not_cloud & not_ai_builder) | is_open_source_page
8385

8486
elif active_str == "docs":
8587
active = rx.cond(
@@ -330,13 +332,6 @@ def _resource_section_column(
330332
_resource_section_column("Company", _company_items),
331333
# Grid cards
332334
rx.box(
333-
# grid_card(
334-
# "Blog",
335-
# "See what's new in the Reflex ecosystem.",
336-
# f"/blog",
337-
# "/blog/top_python_web_frameworks.png",
338-
# "absolute bottom-0 rounded-tl-md",
339-
# ),
340335
grid_card(
341336
"Customers",
342337
"Meet the teams who chose Reflex.",
@@ -405,7 +400,7 @@ def doc_section():
405400
0,
406401
),
407402
resource_item(
408-
"Framework Docs", getting_started.introduction.path, "frame", 0
403+
"Open Source Docs", getting_started.introduction.path, "frame", 0
409404
),
410405
resource_item(
411406
"Cloud Docs", hosting_page.deploy_quick_start.path, "server", 0
@@ -451,7 +446,7 @@ def new_component_section() -> rx.Component:
451446
),
452447
nav_menu.item(
453448
link_item(
454-
"Framework", getting_started.introduction.path, "framework"
449+
"Open Source", getting_started.introduction.path, "framework"
455450
),
456451
),
457452
nav_menu.item(
@@ -466,7 +461,7 @@ def new_component_section() -> rx.Component:
466461
# link_item("AI Builder", REFLEX_AI_BUILDER, "builder"),
467462
# ),
468463
nav_menu.item(
469-
link_item("Framework", framework.path, "framework"),
464+
link_item("Open Source", framework.path, "framework"),
470465
),
471466
nav_menu.item(
472467
link_item("Cloud", hosting_landing.path, "hosting"),

pcweb/pages/framework/framework.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
from pcweb.templates.mainpage import mainpage
1313

1414

15-
@mainpage(path="/framework", title="Reflex · Web apps in Pure Python", meta=meta_tags)
15+
@mainpage(path="/open-source", title="Reflex · Web apps in Pure Python", meta=meta_tags)
1616
def framework() -> rx.Component:
1717
"""Get the main Reflex landing page."""
1818
return rx.box(

pcweb/pcweb.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@
8787

8888
# Add redirects
8989
redirects = [
90+
("/framework", "/open-source"),
9091
("/docs", "/docs/getting-started/introduction"),
9192
("/docs/getting-started", "/docs/getting-started/introduction"),
9293
("/docs/state", "/docs/state/overview"),

0 commit comments

Comments
 (0)