-
Notifications
You must be signed in to change notification settings - Fork 142
RDoc-3494 Feature-specific page #2125
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?
Conversation
templates/introduction.mdx
Outdated
@@ -0,0 +1,198 @@ | |||
import CardWithImage from '@site/src/components/Common/CardWithImage'; |
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.
import CardWithImage from '@site/src/components/Common/CardWithImage'; | |
--- | |
title: "AI Overview" | |
hide_table_of_contents: true | |
sidebar_label: AI Overview | |
--- | |
import CardWithImage from '@site/src/components/Common/CardWithImage'; |
src/components/Common/Button.tsx
Outdated
@@ -43,16 +49,21 @@ export default function Button({ | |||
); | |||
|
|||
if (url) { | |||
const external = !isInternalUrl(url); |
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.
const external = !isInternalUrl(url); | |
const isExternal = !isInternalUrl(url); |
const pluginId = "default"; | ||
const { activeVersion } = useActiveDocContext(pluginId); | ||
|
||
if (minimumVersion > activeVersion.label) { |
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.
You are comparing string values, not number. It can be very tricky
e.g. "7.0">"7" == true
Use number values to compare.
Also it looks like the naming or condition is wrong. When minimumVersion is greater than activeVersion we do not render children?
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.
@kalczur please verify the code, but it appears to be working just fine
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.
In these scenarios yes, but check e.g.
"10.1" > "9.9"
JavaScript compares the string sign by sign
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.
ping me if needed
src/components/OneColGrid.tsx
Outdated
lg: "gap-8", | ||
}; | ||
|
||
export default function OneColGrid({ |
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.
Can we make one component with colCount
props instead of creating new component for each scenario?
2f084ef
to
62babfd
Compare
No description provided.