From 8eafd8ec814ce9fef061c6164e0d8c6a8915023e Mon Sep 17 00:00:00 2001 From: Vega Date: Tue, 14 Jan 2025 17:10:48 -0800 Subject: [PATCH 1/8] feat(ai-unlimited): editions --- i18n/en/code.json | 27 ++++ package-lock.json | 6 +- src/components/HomepageFeatures/Editions.js | 19 +++ .../HomepageFeatures/MicrosoftFabric.js | 54 ++++++++ src/components/HomepageFeatures/cloud.js | 90 +++++++++++++ src/components/HomepageFeatures/index.js | 124 +----------------- .../HomepageFeatures/styles.module.css | 6 +- .../SelectComponent/SelectComponent.js | 46 +++++++ .../SelectComponent/styles.module.css | 9 ++ src/theme/DocSidebar/index.tsx | 16 +++ 10 files changed, 274 insertions(+), 123 deletions(-) create mode 100644 src/components/HomepageFeatures/Editions.js create mode 100644 src/components/HomepageFeatures/MicrosoftFabric.js create mode 100644 src/components/HomepageFeatures/cloud.js create mode 100644 src/components/SelectComponent/SelectComponent.js create mode 100644 src/components/SelectComponent/styles.module.css create mode 100644 src/theme/DocSidebar/index.tsx diff --git a/i18n/en/code.json b/i18n/en/code.json index 53694cf3f7..2642d4a322 100644 --- a/i18n/en/code.json +++ b/i18n/en/code.json @@ -261,6 +261,33 @@ "home_page.categories": { "message": "Categories" }, + "home_page.select_platform": { + "message": "Select platform" + }, + "home_page.select_platform_2": { + "message": "Get documentation based on the AI Unlimited platform." + }, + "home_page.edition_cloud": { + "message": "Cloud Service Provider" + }, + "home_page.edition_ms_fabric": { + "message": "Microsoft Fabric" + }, + "home_page.description.get_started":{ + "message": "Find the AI Unlimited Workload in Fabric, and prepare a notebook for trying your first use case." + }, + "home_page.ms_fabric_use_case": { + "message": "Try the use case" + }, + "home_page.description.use_cases":{ + "message": "Try the data preparation use case to start. Later you can try the financial customer journey and user segmentation use cases." + }, + "home_page.ms_fabric_analytic_function": { + "message": "Analytic functions" + }, + "home_page.description.analytic_function":{ + "message": "Review our full list of in-database analytics with links to resources on how to use them." + }, "home_page.featured_event": { "message": "Featured event" }, diff --git a/package-lock.json b/package-lock.json index 1736808d1c..83594e287a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -6352,9 +6352,9 @@ } }, "node_modules/@teradata-web/react-components": { - "version": "1.12.3", - "resolved": "https://registry.npmjs.org/@teradata-web/react-components/-/react-components-1.12.3.tgz", - "integrity": "sha512-t3lWmRFbP/dvDbAhFWGIrxnsMbZtSJA44JbXAiTnFpmL6tmJQhsqO0gTpRl+JwfEBJ964flu6pAvmdi+Q6GgRQ==" + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/@teradata-web/react-components/-/react-components-1.14.1.tgz", + "integrity": "sha512-UfMHWlpAExNesLfcS9y224DPbMfVsT2/3a7qpGywOm9jQZ57H9i16mRVn0ylXmlnTOPaCGB+GVKfM7m56ShYVg==" }, "node_modules/@trysound/sax": { "version": "0.2.0", diff --git a/src/components/HomepageFeatures/Editions.js b/src/components/HomepageFeatures/Editions.js new file mode 100644 index 0000000000..d40f4ce477 --- /dev/null +++ b/src/components/HomepageFeatures/Editions.js @@ -0,0 +1,19 @@ +import React from 'react'; +import { TabBar, Tab } from '@teradata-web/react-components'; +import { translate } from '@docusaurus/Translate'; +import Cloud from './cloud'; +import MicrosoftFabric from './MicrosoftFabric'; + +export default function Editions() { + return ( + + + + + + + + + + ); +} \ No newline at end of file diff --git a/src/components/HomepageFeatures/MicrosoftFabric.js b/src/components/HomepageFeatures/MicrosoftFabric.js new file mode 100644 index 0000000000..f192c0490d --- /dev/null +++ b/src/components/HomepageFeatures/MicrosoftFabric.js @@ -0,0 +1,54 @@ +import clsx from 'clsx'; +import Heading from '@theme/Heading'; +import styles from './styles.module.css'; +import Link from '@docusaurus/Link'; +import { Typography } from '@teradata-web/react-components'; +import { translate } from '@docusaurus/Translate'; + +const FeatureList = [ + { + head: 'home_page.edition_ms_fabric', + title: 'home_page.get_started', + description: 'home_page.description.get_started', + href: '/ai-unlimited/fabric/get-started/', + }, + { + head: 'home_page.edition_ms_fabric', + title: 'home_page.ms_fabric_use_case', + description: 'home_page.description.use_cases', + href: '/ai-unlimited/fabric/first-use-case/', + }, + { + head: 'home_page.edition_ms_fabric', + title: 'home_page.ms_fabric_analytic_function', + description: 'home_page.description.analytic_function', + href: '/ai-unlimited/fabric/in-db-functions/', + }, +]; + + +function Feature({ head, title, description, href }) { + return ( + +
+ + {translate({ message: head })} + + {translate({ message: title })} + {description &&

{translate({ message: description })}

} +
+ + ); +} + +export default function MicrosoftFabric() { + return ( +
+
+ {FeatureList.map((props, idx) => ( + + ))} +
+
+ ); +} \ No newline at end of file diff --git a/src/components/HomepageFeatures/cloud.js b/src/components/HomepageFeatures/cloud.js new file mode 100644 index 0000000000..aba3eabb6a --- /dev/null +++ b/src/components/HomepageFeatures/cloud.js @@ -0,0 +1,90 @@ +import clsx from 'clsx'; +import Heading from '@theme/Heading'; +import styles from './styles.module.css'; +import Link from '@docusaurus/Link'; +import { Card, Typography } from '@teradata-web/react-components'; +import { translate } from '@docusaurus/Translate'; + +const FeatureList = [ + { + head: 'home_page.edition_cloud', + title: 'home_page.get_started', + description: 'feature.description.get_started', + href: 'install-ai-unlimited/', + }, + { + head: 'home_page.edition_cloud', + title: 'feature.title.sample_use_cases', + description: 'feature.description.sample_use_cases', + href: '/ai-unlimited/explore-and-analyze-data/use-cases/', + }, + { + head: 'home_page.edition_cloud', + title: 'feature.title.whats_new', + description: 'feature.description.whats_new', + href: '/ai-unlimited/whats-new/', + }, + { + head: 'home_page.edition_cloud', + title: 'feature.title.explore_data', + description: 'feature.description.explore_data', + href: '/ai-unlimited/explore-and-analyze-data/', + }, + { + head: 'home_page.edition_cloud', + title: 'feature.title.analytic_functions', + description: 'feature.description.analytic_functions', + href: 'https://docs.teradata.com/r/Teradata-VantageCloud-Lake/Analyzing-Your-Data', + }, + { + head: 'home_page.edition_cloud', + title: 'feature.title.manage_projects', + description: 'feature.description.manage_projects', + href: '/ai-unlimited/manage-ai-unlimited/', + }, + { + head: 'home_page.edition_cloud', + title: 'feature.title.other_resources', + description: 'feature.description.other_resources', + href: '/ai-unlimited/resources/', + }, + { + head: 'home_page.edition_cloud', + title: 'feature.title.faq', + description: 'feature.description.faq', + href: '/ai-unlimited/faq/', + }, + { + head: 'home_page.edition_cloud', + title: 'feature.title.glossary', + description: 'feature.description.glossary', + href: '/ai-unlimited/glossary/', + }, +]; + + +function Feature({ head, title, description, href }) { + return ( + +
+ + {translate({ message: head })} + + {translate({ message: title })} + {description &&

{translate({ message: description })}

} +
+ + ); +} + +export default function Cloud() { + return ( +
+
+ {FeatureList.map((props, idx) => ( + + ))} +
+
+ ); +} \ No newline at end of file diff --git a/src/components/HomepageFeatures/index.js b/src/components/HomepageFeatures/index.js index a24e4bf919..5cd03377e0 100644 --- a/src/components/HomepageFeatures/index.js +++ b/src/components/HomepageFeatures/index.js @@ -1,132 +1,18 @@ import clsx from 'clsx'; -import Heading from '@theme/Heading'; import styles from './styles.module.css'; -import Link from '@docusaurus/Link'; -import PossibleImageUrl from '@site/static/img/possible_img.webp'; -import { Card, Typography } from '@teradata-web/react-components'; import { translate } from '@docusaurus/Translate'; +import Editions from './Editions'; -const FeatureTitle = 'home_page.categories'; - -const FeatureList = [ - { - title: 'home_page.get_started', - description: 'feature.description.get_started', - href: 'install-ai-unlimited/', - }, - { - title: 'feature.title.sample_use_cases', - description: 'feature.description.sample_use_cases', - href: '/ai-unlimited/explore-and-analyze-data/use-cases/', - }, - { - title: 'feature.title.whats_new', - description: 'feature.description.whats_new', - href: '/ai-unlimited/whats-new/', - }, - { - title: 'feature.title.explore_data', - description: 'feature.description.explore_data', - href: '/ai-unlimited/explore-and-analyze-data/', - }, - { - title: 'feature.title.analytic_functions', - description: 'feature.description.analytic_functions', - href: 'https://docs.teradata.com/r/Teradata-VantageCloud-Lake/Analyzing-Your-Data', - }, - { - title: 'feature.title.manage_projects', - description: 'feature.description.manage_projects', - href: '/ai-unlimited/manage-ai-unlimited/', - }, - { - title: 'feature.title.other_resources', - description: 'feature.description.other_resources', - href: '/ai-unlimited/resources/', - }, - { - title: 'feature.title.faq', - description: 'feature.description.faq', - href: '/ai-unlimited/faq/', - }, - { - title: 'feature.title.glossary', - description: 'feature.description.glossary', - href: '/ai-unlimited/glossary/', - }, -]; - -export function PossibleBanner() { - return ( - <> -
- - } - /> - -
- - ); -} - -function BannerContent() { - return ( -
-
- - - {translate({ message: 'home_page.featured_event' })} - - - - - {translate({ message: 'home_page.possible_banner_title' })} - - -
- -
- {translate({ message: 'home_page.register_now' })} -
-
-
- ); -} - -function Feature({ title, description, href }) { - return ( - -
- {translate({ message: title })} - {description &&

{translate({ message: description })}

} -
- - ); -} +const FeatureTitle = 'home_page.select_platform'; +const FeatureSubTitle = 'home_page.select_platform_2'; export default function HomepageFeatures() { return (

{translate({ message: FeatureTitle })}

-
- {FeatureList.map((props, idx) => ( - - ))} -
+

{translate({ message: FeatureSubTitle })}

+
); diff --git a/src/components/HomepageFeatures/styles.module.css b/src/components/HomepageFeatures/styles.module.css index 1523042e2b..a095a8d797 100644 --- a/src/components/HomepageFeatures/styles.module.css +++ b/src/components/HomepageFeatures/styles.module.css @@ -8,7 +8,7 @@ .features h2 { color: hsl(205, 100%, 12%); - margin-bottom: 40px; + margin-bottom: 0px; /* Desktop/H2 */ font-family: "Inter", sans-serif; @@ -19,6 +19,10 @@ letter-spacing: -1.26px; } +.marginTitle{ + margin-top: 16px; + margin-bottom: 8px; +} a.col { text-decoration: none; } diff --git a/src/components/SelectComponent/SelectComponent.js b/src/components/SelectComponent/SelectComponent.js new file mode 100644 index 0000000000..ea98c66459 --- /dev/null +++ b/src/components/SelectComponent/SelectComponent.js @@ -0,0 +1,46 @@ +import React, { useState } from 'react'; +import { Select, CvListItem } from '@teradata-web/react-components'; +import { useLocation } from 'react-router-dom'; +import styles from './styles.module.css'; + +export default function SelectComponent() { + const [selectedOption, setSelectedOption] = useState(''); + const location = useLocation(); + + const normalizePath = (path) => path.replace(/\/$/, ''); + const pathsNoAlert = normalizePath(`/quickstarts/`); + const currentPath = normalizePath(location.pathname); + const shouldDisplayAlert = !currentPath.includes(pathsNoAlert); + + const handleSelection = (event) => { + const selectedIndex = event.detail.index; + setSelectedOption(selectedIndex); + + if (selectedIndex === 0) { + window.location.href = '/ai-unlimited/install-ai-unlimited/'; + } else if (selectedIndex === 1) { + window.location.href = '/ai-unlimited/fabric/get-started/'; + } + }; + + if (!shouldDisplayAlert) return null; + + return ( +
+ +
+ ); +} \ No newline at end of file diff --git a/src/components/SelectComponent/styles.module.css b/src/components/SelectComponent/styles.module.css new file mode 100644 index 0000000000..d834f22531 --- /dev/null +++ b/src/components/SelectComponent/styles.module.css @@ -0,0 +1,9 @@ +.customContainer { + position: relative; + margin-top: 130px; + margin-bottom: -120px; + } + + .selectInput{ + display: inline; + } \ No newline at end of file diff --git a/src/theme/DocSidebar/index.tsx b/src/theme/DocSidebar/index.tsx new file mode 100644 index 0000000000..aa6517c0c7 --- /dev/null +++ b/src/theme/DocSidebar/index.tsx @@ -0,0 +1,16 @@ +import React from 'react'; +import DocSidebar from '@theme-original/DocSidebar'; +import type DocSidebarType from '@theme/DocSidebar'; +import type { WrapperProps } from '@docusaurus/types'; +import SelectComponent from '../../components/SelectComponent/SelectComponent'; + +type Props = WrapperProps; + +export default function DocSidebarWrapper(props: Props): JSX.Element { + return ( + <> + + + + ); +} \ No newline at end of file From 3d89f2bf1eb4d44917c2726c229d11e320e665ac Mon Sep 17 00:00:00 2001 From: Vega Date: Wed, 15 Jan 2025 13:43:33 -0800 Subject: [PATCH 2/8] fix/browseronly --- .../SelectComponent/SelectComponent.js | 39 ++++++++++++------- 1 file changed, 24 insertions(+), 15 deletions(-) diff --git a/src/components/SelectComponent/SelectComponent.js b/src/components/SelectComponent/SelectComponent.js index ea98c66459..6f2ba8c41d 100644 --- a/src/components/SelectComponent/SelectComponent.js +++ b/src/components/SelectComponent/SelectComponent.js @@ -1,5 +1,6 @@ import React, { useState } from 'react'; -import { Select, CvListItem } from '@teradata-web/react-components'; +import BrowserOnly from '@docusaurus/BrowserOnly'; +//import { Select, CvListItem } from '@teradata-web/react-components'; import { useLocation } from 'react-router-dom'; import styles from './styles.module.css'; @@ -27,20 +28,28 @@ export default function SelectComponent() { return (
- + + {() => { + const { Select, CvListItem } = require('@teradata-web/react-components'); + + return ( + + ); + }} +
); } \ No newline at end of file From 71b21040b7561df585a4da5118f501c8630827c6 Mon Sep 17 00:00:00 2001 From: Vega Date: Fri, 17 Jan 2025 15:35:12 -0800 Subject: [PATCH 3/8] fix/baseurl --- src/components/SelectComponent/SelectComponent.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/components/SelectComponent/SelectComponent.js b/src/components/SelectComponent/SelectComponent.js index 6f2ba8c41d..cc5ae21184 100644 --- a/src/components/SelectComponent/SelectComponent.js +++ b/src/components/SelectComponent/SelectComponent.js @@ -1,8 +1,9 @@ import React, { useState } from 'react'; import BrowserOnly from '@docusaurus/BrowserOnly'; -//import { Select, CvListItem } from '@teradata-web/react-components'; import { useLocation } from 'react-router-dom'; import styles from './styles.module.css'; +import useBaseUrl from '@docusaurus/useBaseUrl'; + export default function SelectComponent() { const [selectedOption, setSelectedOption] = useState(''); @@ -13,14 +14,17 @@ export default function SelectComponent() { const currentPath = normalizePath(location.pathname); const shouldDisplayAlert = !currentPath.includes(pathsNoAlert); + const aiUnlimitedUrl = useBaseUrl('/ai-unlimited/install-ai-unlimited/'); + const fabricUrl = useBaseUrl('/ai-unlimited/fabric/get-started/'); + const handleSelection = (event) => { const selectedIndex = event.detail.index; setSelectedOption(selectedIndex); if (selectedIndex === 0) { - window.location.href = '/ai-unlimited/install-ai-unlimited/'; + window.location.href = aiUnlimitedUrl; } else if (selectedIndex === 1) { - window.location.href = '/ai-unlimited/fabric/get-started/'; + window.location.href = fabricUrl; } }; From b22f697b6fa799a6e3847dcc9b666465b19cc2d7 Mon Sep 17 00:00:00 2001 From: Vega Date: Wed, 22 Jan 2025 12:44:05 -0800 Subject: [PATCH 4/8] fix mobile visibility --- src/components/SelectComponent/SelectComponent.js | 2 -- src/components/SelectComponent/styles.module.css | 6 ------ src/theme/DocSidebar/index.tsx | 5 ++++- src/theme/DocSidebar/styles.css | 5 +++++ src/theme/Navbar/index.tsx | 13 ++++++++++++- 5 files changed, 21 insertions(+), 10 deletions(-) create mode 100644 src/theme/DocSidebar/styles.css diff --git a/src/components/SelectComponent/SelectComponent.js b/src/components/SelectComponent/SelectComponent.js index cc5ae21184..6ed346e693 100644 --- a/src/components/SelectComponent/SelectComponent.js +++ b/src/components/SelectComponent/SelectComponent.js @@ -31,7 +31,6 @@ export default function SelectComponent() { if (!shouldDisplayAlert) return null; return ( -
{() => { const { Select, CvListItem } = require('@teradata-web/react-components'); @@ -54,6 +53,5 @@ export default function SelectComponent() { ); }} -
); } \ No newline at end of file diff --git a/src/components/SelectComponent/styles.module.css b/src/components/SelectComponent/styles.module.css index d834f22531..5d10a32996 100644 --- a/src/components/SelectComponent/styles.module.css +++ b/src/components/SelectComponent/styles.module.css @@ -1,9 +1,3 @@ -.customContainer { - position: relative; - margin-top: 130px; - margin-bottom: -120px; - } - .selectInput{ display: inline; } \ No newline at end of file diff --git a/src/theme/DocSidebar/index.tsx b/src/theme/DocSidebar/index.tsx index aa6517c0c7..4c3a2ab4a8 100644 --- a/src/theme/DocSidebar/index.tsx +++ b/src/theme/DocSidebar/index.tsx @@ -2,6 +2,7 @@ import React from 'react'; import DocSidebar from '@theme-original/DocSidebar'; import type DocSidebarType from '@theme/DocSidebar'; import type { WrapperProps } from '@docusaurus/types'; +import './styles.css'; import SelectComponent from '../../components/SelectComponent/SelectComponent'; type Props = WrapperProps; @@ -9,7 +10,9 @@ type Props = WrapperProps; export default function DocSidebarWrapper(props: Props): JSX.Element { return ( <> - +
+ +
); diff --git a/src/theme/DocSidebar/styles.css b/src/theme/DocSidebar/styles.css new file mode 100644 index 0000000000..74bc6b191d --- /dev/null +++ b/src/theme/DocSidebar/styles.css @@ -0,0 +1,5 @@ +.customContainer { + position: relative; + margin-top: 130px; + margin-bottom: -120px; + } diff --git a/src/theme/Navbar/index.tsx b/src/theme/Navbar/index.tsx index a8c35b6fa7..d258eb00eb 100644 --- a/src/theme/Navbar/index.tsx +++ b/src/theme/Navbar/index.tsx @@ -16,6 +16,7 @@ import useBaseUrl from '@docusaurus/useBaseUrl'; import { Partytown } from '@builder.io/partytown/react'; import SearchBar from '../SearchBar'; import MatDisclaimer from '../../components/MatDisclaimer'; +import SelectComponent from '../../components/SelectComponent/SelectComponent'; function translateNavItems(navItems: NavListItem[]): NavListItem[] { const location = useLocation(); @@ -72,7 +73,17 @@ export default function Navbar() { ]; const secondaryMenuDetails = { - menuElement: useNavbarSecondaryMenu().content as JSX.Element, + menuElement: ( + <> +
+ +
+ {useNavbarSecondaryMenu().content} + + ), title: translate({ message: 'sidenav.title', description: 'sidenav.title_description', From 3b0798995497d8acdb80546ab5acd5ccb42d641e Mon Sep 17 00:00:00 2001 From: Vega Date: Tue, 28 Jan 2025 10:50:14 -0800 Subject: [PATCH 5/8] fix issue when you select the option it does not stay selected --- .../SelectComponent/SelectComponent.js | 74 +++++++++---------- 1 file changed, 36 insertions(+), 38 deletions(-) diff --git a/src/components/SelectComponent/SelectComponent.js b/src/components/SelectComponent/SelectComponent.js index 6ed346e693..fa6c29ae91 100644 --- a/src/components/SelectComponent/SelectComponent.js +++ b/src/components/SelectComponent/SelectComponent.js @@ -1,57 +1,55 @@ -import React, { useState } from 'react'; +import React, { useEffect, useState } from 'react'; import BrowserOnly from '@docusaurus/BrowserOnly'; import { useLocation } from 'react-router-dom'; import styles from './styles.module.css'; import useBaseUrl from '@docusaurus/useBaseUrl'; - export default function SelectComponent() { const [selectedOption, setSelectedOption] = useState(''); const location = useLocation(); - const normalizePath = (path) => path.replace(/\/$/, ''); - const pathsNoAlert = normalizePath(`/quickstarts/`); const currentPath = normalizePath(location.pathname); - const shouldDisplayAlert = !currentPath.includes(pathsNoAlert); - - const aiUnlimitedUrl = useBaseUrl('/ai-unlimited/install-ai-unlimited/'); - const fabricUrl = useBaseUrl('/ai-unlimited/fabric/get-started/'); + const aiUnlimitedUrl = useBaseUrl('/ai-unlimited/install-ai-unlimited'); + const fabricUrl = useBaseUrl('/ai-unlimited/fabric/get-started'); + + useEffect(() => { + if (currentPath === aiUnlimitedUrl) { + setSelectedOption('0'); + } else if (currentPath === fabricUrl) { + setSelectedOption('1'); + } + }, [currentPath, aiUnlimitedUrl, fabricUrl]); const handleSelection = (event) => { - const selectedIndex = event.detail.index; - setSelectedOption(selectedIndex); - - if (selectedIndex === 0) { + const selectedIndex = event.detail.index?.toString(); + if (selectedIndex === '0' && currentPath !== aiUnlimitedUrl) { window.location.href = aiUnlimitedUrl; - } else if (selectedIndex === 1) { + } else if (selectedIndex === '1' && currentPath !== fabricUrl) { window.location.href = fabricUrl; } }; - if (!shouldDisplayAlert) return null; - return ( - - {() => { - const { Select, CvListItem } = require('@teradata-web/react-components'); - - return ( - - ); - }} - + + {() => { + const { Select, CvListItem } = require('@teradata-web/react-components'); + + return ( + + ); + }} + ); -} \ No newline at end of file +} From defb4b875a018e42a5fbd77b1118ac86037f9d9c Mon Sep 17 00:00:00 2001 From: Vega Date: Fri, 31 Jan 2025 13:01:22 -0800 Subject: [PATCH 6/8] fix the shadow effect cutting off --- src/theme/DocSidebar/styles.css | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/theme/DocSidebar/styles.css b/src/theme/DocSidebar/styles.css index 74bc6b191d..41f7e069c1 100644 --- a/src/theme/DocSidebar/styles.css +++ b/src/theme/DocSidebar/styles.css @@ -3,3 +3,13 @@ margin-top: 130px; margin-bottom: -120px; } + + + @media (min-width: 997px) { + .theme-doc-sidebar-container { + clip-path: unset !important; + } +} + + + \ No newline at end of file From c26389e6452b7b18c4dcdfff351ba0352a523736 Mon Sep 17 00:00:00 2001 From: Vega Date: Fri, 31 Jan 2025 13:57:15 -0800 Subject: [PATCH 7/8] remove inline css --- src/theme/DocSidebar/styles.css | 6 +++++- src/theme/Navbar/index.tsx | 6 ++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/theme/DocSidebar/styles.css b/src/theme/DocSidebar/styles.css index 41f7e069c1..de994dd9fb 100644 --- a/src/theme/DocSidebar/styles.css +++ b/src/theme/DocSidebar/styles.css @@ -9,7 +9,11 @@ .theme-doc-sidebar-container { clip-path: unset !important; } -} + } + + .customContainer2{ + margin-bottom: 10px; + } \ No newline at end of file diff --git a/src/theme/Navbar/index.tsx b/src/theme/Navbar/index.tsx index d258eb00eb..32a8435faa 100644 --- a/src/theme/Navbar/index.tsx +++ b/src/theme/Navbar/index.tsx @@ -17,6 +17,7 @@ import { Partytown } from '@builder.io/partytown/react'; import SearchBar from '../SearchBar'; import MatDisclaimer from '../../components/MatDisclaimer'; import SelectComponent from '../../components/SelectComponent/SelectComponent'; +import '../DocSidebar/styles.css'; function translateNavItems(navItems: NavListItem[]): NavListItem[] { const location = useLocation(); @@ -75,10 +76,7 @@ export default function Navbar() { const secondaryMenuDetails = { menuElement: ( <> -
+
{useNavbarSecondaryMenu().content} From 7cfcc80075c9111aafcefe1c4f5ca3fc5fe519ce Mon Sep 17 00:00:00 2001 From: Vega Date: Wed, 5 Feb 2025 09:03:20 -0800 Subject: [PATCH 8/8] add language strings --- i18n/de/code.json | 27 +++++++++++++++++++++++++++ i18n/es/code.json | 27 +++++++++++++++++++++++++++ i18n/fr/code.json | 27 +++++++++++++++++++++++++++ i18n/ja/code.json | 27 +++++++++++++++++++++++++++ i18n/ko/code.json | 27 +++++++++++++++++++++++++++ 5 files changed, 135 insertions(+) diff --git a/i18n/de/code.json b/i18n/de/code.json index 716894160a..807ad91d1a 100644 --- a/i18n/de/code.json +++ b/i18n/de/code.json @@ -260,6 +260,33 @@ "home_page.categories": { "message": "Kategorien" }, + "home_page.select_platform": { + "message": "Select platform" + }, + "home_page.select_platform_2": { + "message": "Get documentation based on the AI Unlimited platform." + }, + "home_page.edition_cloud": { + "message": "Cloud Service Provider" + }, + "home_page.edition_ms_fabric": { + "message": "Microsoft Fabric" + }, + "home_page.description.get_started":{ + "message": "Find the AI Unlimited Workload in Fabric, and prepare a notebook for trying your first use case." + }, + "home_page.ms_fabric_use_case": { + "message": "Try the use case" + }, + "home_page.description.use_cases":{ + "message": "Try the data preparation use case to start. Later you can try the financial customer journey and user segmentation use cases." + }, + "home_page.ms_fabric_analytic_function": { + "message": "Analytic functions" + }, + "home_page.description.analytic_function":{ + "message": "Review our full list of in-database analytics with links to resources on how to use them." + }, "home_page.featured_event": { "message": "Besonderes Ereignis" }, diff --git a/i18n/es/code.json b/i18n/es/code.json index be2b868aee..611bf3ecb7 100644 --- a/i18n/es/code.json +++ b/i18n/es/code.json @@ -260,6 +260,33 @@ "home_page.categories": { "message": "Categorías" }, + "home_page.select_platform": { + "message": "Select platform" + }, + "home_page.select_platform_2": { + "message": "Get documentation based on the AI Unlimited platform." + }, + "home_page.edition_cloud": { + "message": "Cloud Service Provider" + }, + "home_page.edition_ms_fabric": { + "message": "Microsoft Fabric" + }, + "home_page.description.get_started":{ + "message": "Find the AI Unlimited Workload in Fabric, and prepare a notebook for trying your first use case." + }, + "home_page.ms_fabric_use_case": { + "message": "Try the use case" + }, + "home_page.description.use_cases":{ + "message": "Try the data preparation use case to start. Later you can try the financial customer journey and user segmentation use cases." + }, + "home_page.ms_fabric_analytic_function": { + "message": "Analytic functions" + }, + "home_page.description.analytic_function":{ + "message": "Review our full list of in-database analytics with links to resources on how to use them." + }, "home_page.featured_event": { "message": "Evento destacado" }, diff --git a/i18n/fr/code.json b/i18n/fr/code.json index dc920cb330..2258a721be 100644 --- a/i18n/fr/code.json +++ b/i18n/fr/code.json @@ -260,6 +260,33 @@ "home_page.categories": { "message": "Catégories" }, + "home_page.select_platform": { + "message": "Select platform" + }, + "home_page.select_platform_2": { + "message": "Get documentation based on the AI Unlimited platform." + }, + "home_page.edition_cloud": { + "message": "Cloud Service Provider" + }, + "home_page.edition_ms_fabric": { + "message": "Microsoft Fabric" + }, + "home_page.description.get_started":{ + "message": "Find the AI Unlimited Workload in Fabric, and prepare a notebook for trying your first use case." + }, + "home_page.ms_fabric_use_case": { + "message": "Try the use case" + }, + "home_page.description.use_cases":{ + "message": "Try the data preparation use case to start. Later you can try the financial customer journey and user segmentation use cases." + }, + "home_page.ms_fabric_analytic_function": { + "message": "Analytic functions" + }, + "home_page.description.analytic_function":{ + "message": "Review our full list of in-database analytics with links to resources on how to use them." + }, "home_page.featured_event": { "message": "Événement en vedette" }, diff --git a/i18n/ja/code.json b/i18n/ja/code.json index 61ad4f3783..fac9d037c9 100644 --- a/i18n/ja/code.json +++ b/i18n/ja/code.json @@ -260,6 +260,33 @@ "home_page.categories": { "message": "カテゴリー" }, + "home_page.select_platform": { + "message": "Select platform" + }, + "home_page.select_platform_2": { + "message": "Get documentation based on the AI Unlimited platform." + }, + "home_page.edition_cloud": { + "message": "Cloud Service Provider" + }, + "home_page.edition_ms_fabric": { + "message": "Microsoft Fabric" + }, + "home_page.description.get_started":{ + "message": "Find the AI Unlimited Workload in Fabric, and prepare a notebook for trying your first use case." + }, + "home_page.ms_fabric_use_case": { + "message": "Try the use case" + }, + "home_page.description.use_cases":{ + "message": "Try the data preparation use case to start. Later you can try the financial customer journey and user segmentation use cases." + }, + "home_page.ms_fabric_analytic_function": { + "message": "Analytic functions" + }, + "home_page.description.analytic_function":{ + "message": "Review our full list of in-database analytics with links to resources on how to use them." + }, "home_page.featured_event": { "message": "注目のイベント" }, diff --git a/i18n/ko/code.json b/i18n/ko/code.json index 8c9411b458..da4f908fda 100644 --- a/i18n/ko/code.json +++ b/i18n/ko/code.json @@ -260,6 +260,33 @@ "home_page.categories": { "message": "카테고리" }, + "home_page.select_platform": { + "message": "Select platform" + }, + "home_page.select_platform_2": { + "message": "Get documentation based on the AI Unlimited platform." + }, + "home_page.edition_cloud": { + "message": "Cloud Service Provider" + }, + "home_page.edition_ms_fabric": { + "message": "Microsoft Fabric" + }, + "home_page.description.get_started":{ + "message": "Find the AI Unlimited Workload in Fabric, and prepare a notebook for trying your first use case." + }, + "home_page.ms_fabric_use_case": { + "message": "Try the use case" + }, + "home_page.description.use_cases":{ + "message": "Try the data preparation use case to start. Later you can try the financial customer journey and user segmentation use cases." + }, + "home_page.ms_fabric_analytic_function": { + "message": "Analytic functions" + }, + "home_page.description.analytic_function":{ + "message": "Review our full list of in-database analytics with links to resources on how to use them." + }, "home_page.featured_event": { "message": "추천 이벤트" },