-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Rename AI onboarding docs to Agent Toolkit #6510
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||
|---|---|---|---|---|
|
|
@@ -640,12 +640,14 @@ def breadcrumb(path: str, nav_sidebar: rx.Component, doc_content: str | None = N | |||
| docs_sidebar_drawer, | ||||
| ) | ||||
|
|
||||
| # Split the path into segments, removing 'docs' and capitalizing each segment | ||||
| segments = [ | ||||
| segment.capitalize() | ||||
| for segment in path.split("/") | ||||
| if segment and segment != "docs" | ||||
| ] | ||||
| # Split the path into segments, removing 'docs'. Some legacy URLs keep | ||||
| # their old slugs for compatibility while using newer public labels. | ||||
| segments = [segment for segment in path.split("/") if segment and segment != "docs"] | ||||
| segment_labels = { | ||||
| "ai": "AI", | ||||
| "ai-onboarding": "Agent Toolkit", | ||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The slug no longer exists, it redirects to agent-toolkit |
||||
| "agent-toolkit": "Agent Toolkit", | ||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nit: this line isn't needed —
Suggested change
|
||||
| } | ||||
|
|
||||
| # Initialize an empty list to store the breadcrumbs and their separators | ||||
| breadcrumbs = [] | ||||
|
|
@@ -658,7 +660,10 @@ def breadcrumb(path: str, nav_sidebar: rx.Component, doc_content: str | None = N | |||
| # Add the breadcrumb item to the list | ||||
| breadcrumbs.append( | ||||
| rx.el.a( | ||||
| to_title_case(to_snake_case(segment), sep=" "), | ||||
| segment_labels.get( | ||||
| segment, | ||||
| to_title_case(to_snake_case(segment), sep=" "), | ||||
| ), | ||||
| class_name="min-h-8 flex items-center text-sm font-[525] text-m-slate-12 dark:text-m-slate-3 last:text-m-slate-7 dark:last:text-m-slate-6 hover:text-primary-10 dark:hover:text-primary-9" | ||||
| + (" truncate" if i == len(segments) - 1 else ""), | ||||
| underline="none", | ||||
|
|
||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe wording can be improved here. Feels too listy.