From 5b9c8cb903ff402c0ab3da4aa2b10b00f87f0af0 Mon Sep 17 00:00:00 2001 From: Tyler Mairose Date: Thu, 21 Mar 2024 10:08:53 -0400 Subject: [PATCH 1/2] Use css to style icons --- src/theme/DocCard/index.js | 12 +++--------- src/theme/DocCard/styles.module.css | 5 +++++ 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/src/theme/DocCard/index.js b/src/theme/DocCard/index.js index dbbcfa8350d..696b64b0ee9 100644 --- a/src/theme/DocCard/index.js +++ b/src/theme/DocCard/index.js @@ -9,8 +9,7 @@ import isInternalUrl from '@docusaurus/isInternalUrl'; import {translate} from '@docusaurus/Translate'; import styles from './styles.module.css'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' -import { faFolderOpen, faLink, faBook, faArrowUpRightFromSquare } from '@fortawesome/pro-duotone-svg-icons' -import { useColorMode } from '@docusaurus/theme-common'; +import { faFolderOpen, faBook, faArrowUpRightFromSquare } from '@fortawesome/pro-duotone-svg-icons' function CardContainer({href, children}) { return ( @@ -39,10 +38,6 @@ function CardLayout({href, icon, title, description}) { } function CardCategory({item}) { const href = findFirstCategoryLink(item); - const {colorMode} = useColorMode(); - //const icon = colorMode === 'dark' ? : ; - //const icon = ; - //console.log(item) // Unexpected: categories that don't have a link have been filtered upfront if (!href) { return null; @@ -50,7 +45,7 @@ function CardCategory({item}) { return ( } + icon={} //icon={icon} title={item.label} description={ @@ -69,8 +64,7 @@ function CardCategory({item}) { ); } function CardLink({item}) { - const {colorMode} = useColorMode(); - const icon = isInternalUrl(item.href) ? : ; + const icon = isInternalUrl(item.href) ? : ; const doc = useDocById(item.docId ?? undefined); return ( Date: Thu, 21 Mar 2024 10:12:05 -0400 Subject: [PATCH 2/2] Remove certifications from sidebar --- sidebars.js | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/sidebars.js b/sidebars.js index e051b50ac85..0f20053c505 100644 --- a/sidebars.js +++ b/sidebars.js @@ -202,11 +202,6 @@ const sidebars = { label: 'Product Documentation', href: 'https://documentation.sailpoint.com', }, - { - type: 'link', - label: 'Certifications', - href: 'https://university.sailpoint.com/Saba/Web_spf/NA10P1PRD075/guest/categorydetail/categ000000000003041/true/xxemptyxx/', - }, ], }, ], @@ -252,11 +247,6 @@ const sidebars = { label: 'Product Documentation', href: 'https://documentation.sailpoint.com/#identityiq', }, - { - type: 'link', - label: 'Certifications', - href: 'https://university.sailpoint.com/Saba/Web_spf/NA10P1PRD075/guest/categorydetail/categ000000000003042/true/xxemptyxx/', - }, ], }, ],