From 1972d940a1e793a3ac1c0f8488b944731ff0e500 Mon Sep 17 00:00:00 2001 From: Steve Persch Date: Wed, 8 Jan 2025 11:54:46 -0600 Subject: [PATCH] certification to learning --- src/components/omniSidebarNav/getOmniItems.js | 5 ++--- .../{certification.js => learning.js} | 21 ++++++++----------- src/templates/certificationpage.js | 2 +- 3 files changed, 12 insertions(+), 16 deletions(-) rename src/components/omniSidebarNav/submenus/{certification.js => learning.js} (87%) diff --git a/src/components/omniSidebarNav/getOmniItems.js b/src/components/omniSidebarNav/getOmniItems.js index 4ff9db039a..1fb9b87758 100644 --- a/src/components/omniSidebarNav/getOmniItems.js +++ b/src/components/omniSidebarNav/getOmniItems.js @@ -1,7 +1,5 @@ -import CertificationItems from './submenus/certification'; import getStarted from './submenus/getStarted'; import goLive from './submenus/goLive'; -import pagesToDelete from './submenus/pagesToDelete'; import webInfrastructure from './submenus/webInfrastructure'; import accountManagement from './submenus/accountManagement'; import terminus from './submenus/terminus'; @@ -10,6 +8,7 @@ import workflows from './submenus/workflows'; import support from './submenus/support'; import security from './submenus/security'; import { simpleLink } from './helpers'; +import learning from './submenus/learning'; // Before we can merge we need to: // Todo: remove console logging from this component. @@ -30,7 +29,7 @@ const getOmniItems = () => { terminus(), support(), security(), - CertificationItems(), + learning(), about(), simpleLink('/release-notes', 'Release Notes'), // pagesToDelete(), diff --git a/src/components/omniSidebarNav/submenus/certification.js b/src/components/omniSidebarNav/submenus/learning.js similarity index 87% rename from src/components/omniSidebarNav/submenus/certification.js rename to src/components/omniSidebarNav/submenus/learning.js index e020c563b0..f23788aa2d 100644 --- a/src/components/omniSidebarNav/submenus/certification.js +++ b/src/components/omniSidebarNav/submenus/learning.js @@ -1,23 +1,18 @@ -import { simpleLink, getGuideDirectory } from './../helpers'; +import { getGuideDirectory, simpleLink } from './../helpers'; -/** - * Array of of links specific to the Certification section of the sidebar. - * @type {Array} - */ -const CertificationItems = () => { +const learning = () => { return { link: '/learning', title: 'Learning', children: [ + simpleLink('/learning', 'Learning about Pantheon'), + simpleLink('/certification', 'WebOps Certification', [ { link: '/certification', title: 'Certification', }, - { - link: '/certification/about', - title: 'About the Certification Program', - }, + { link: '/certification/exam', title: 'Taking the Exam', @@ -77,6 +72,8 @@ const CertificationItems = () => { title: 'Certification Directory', }, ]), + + simpleLink('/guides/wordpress-git', 'Tutorials', [ getGuideDirectory('guides/wordpress-git', 'WordPress and Git'), getGuideDirectory('guides/pagerduty', 'Incident Management'), @@ -93,9 +90,9 @@ const CertificationItems = () => { simpleLink('/guides', 'More Tutorials'), ]), simpleLink('/agency-tips', 'Agency Tips'), - simpleLink('https://learning.pantheon.io', 'Pantheon Learning'), + ], }; }; -export default CertificationItems; +export default learning; diff --git a/src/templates/certificationpage.js b/src/templates/certificationpage.js index 8d1b9146c0..3dfc4efbd4 100644 --- a/src/templates/certificationpage.js +++ b/src/templates/certificationpage.js @@ -45,7 +45,7 @@ class CertificationTemplate extends React.Component {