Skip to content

Adjust get started links to point to the "self hosting vs databricks" selector #309

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

Merged
merged 7 commits into from
Jun 17, 2025

Conversation

dbczumar
Copy link
Contributor

Adjust get started links to point to the "self hosting vs databricks" selector

dbczumar added 2 commits June 17, 2025 00:06
Signed-off-by: dbczumar <[email protected]>
Signed-off-by: dbczumar <[email protected]>
Copy link

github-actions bot commented Jun 17, 2025

Preview for 1d1756e

  • For faster build, the doc pages are not included in the preview.
  • Redirects are disabled in the preview.
Open in StackBlitz

Comment on lines -52 to -74
{variant !== "blue" ? (
<div className="flex flex-col gap-8 p-8 bg-[#fff]/4 rounded-2xl @container justify-between">
<div className="flex flex-col gap-8">
<div className="flex flex-row justify-between items-center gap-4">
<div className="flex flex-row justify-center items-end gap-3 flex-wrap">
<h3 className="m-0 text-white">Managed hosting </h3>
<span className="text-gray-500 text-sm">ON</span>
<DatabricksLogo />
</div>
</div>
<div className="flex flex-col gap-4">
{[
"Free and fully managed — experience MLflow without the setup hassle",
"Built and maintained by the original creators of MLflow",
"Full OSS compatibility",
].map((bulletPoint, index) => (
<div key={index} className="flex flex-row items-center gap-4">
<Checkmark className="shrink-0" />
<span className="text-md font-light text-gray-600">
{bulletPoint}
</span>
</div>
))}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We'll also show the databricks option on the classic ML page, but link to https://docs.databricks.com/aws/en/mlflow/mlflow-3-install. I'll add some info to https://docs.databricks.com/aws/en/mlflow/mlflow-3-install about how to sign up for lighthouse & use it for classic ML too!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cc @xq-yin

Signed-off-by: dbczumar <[email protected]>
@dbczumar dbczumar requested a review from daniellok-db June 17, 2025 07:11
Comment on lines 36 to 39
const location = useLocation();
const classicalMLPath = useBaseUrl("/classical-ml");
const isClassicalMLPage = location.pathname.startsWith(classicalMLPath);
const getStartedHref = isClassicalMLPage ? "/classical-ml#get-started" : "/#get-started";
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: should we extract this to a helper function and add handling for /genai? functionally i know the CTAs on the main / genai pages are the same but it's a little weird that clicking this button on classic keeps you on the page, but genai boots you back to the homepage

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, agreed - adding the /genai case and moving this into a reusable func

Copy link
Collaborator

@daniellok-db daniellok-db left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shippable but left a comment about the header button

variant !== "blue" ? "lg:col-span-2" : "",
)}
>
<div id="get-started" className={cn("grid grid-cols-1 lg:grid-cols-2 gap-8")}>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think you need to add something like this so docusarus knows that #get-started is an anchor:

useBrokenLinks().collectAnchor(id);

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks so much! Pushed a fix (hopefully :D)

Signed-off-by: dbczumar <[email protected]>
@dbczumar dbczumar requested a review from xq-yin June 17, 2025 07:43
Signed-off-by: dbczumar <[email protected]>
@@ -15,6 +17,20 @@ import { cva } from "class-variance-authority";

const MD_BREAKPOINT = 640;

// Helper function to determine the appropriate "Get started" link based on current page
function getStartedLinkForPage(pathname: string): string {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I saw this helper function several times in the codebase, think we could extract it out to be a util

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Definitely! Extracted!

Comment on lines 25 to 31
if (pathname.startsWith(classicalMLPath)) {
return "/classical-ml#get-started";
} else if (pathname.startsWith(genAIPath)) {
return "/genai#get-started";
} else {
return "/#get-started";
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if my TS/JS styling memory is still up to date, less indentation with early return is preferred

if (pathname.startsWith(classicalMLPath)) {
  return "/classical-ml#get-started";
}
if (pathname.startsWith(genAIPath)) {
  return "/genai#get-started";
}
return "/#get-started";

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Absolutely! Tidied this up :)

Copy link
Contributor

@xq-yin xq-yin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

dbczumar added 2 commits June 17, 2025 01:13
Signed-off-by: dbczumar <[email protected]>
Signed-off-by: dbczumar <[email protected]>
@dbczumar dbczumar merged commit dcf34da into mlflow:main Jun 17, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants