Skip to content

Commit

Permalink
redistributing landing pages
Browse files Browse the repository at this point in the history
  • Loading branch information
stevector committed Dec 2, 2024
1 parent 587d719 commit 2f925f6
Show file tree
Hide file tree
Showing 7 changed files with 32 additions and 33 deletions.
1 change: 1 addition & 0 deletions src/components/omniSidebarNav/submenus/certification.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ const CertificationItems = () => {
// Build tools dependent, may not be relevant
simpleLink('/drupal-commerce', 'Drupal Commerce'),
// @todo, eventually pull guides/create-wp-site into this menu. and guides/drush/drupal-commandline/
simpleLink('/guides', 'More Tutorials'),
]),
simpleLink('/agency-tips', 'Agency Tips'),
simpleLink('https://learning.pantheon.io', 'Pantheon Learning'),
Expand Down
7 changes: 5 additions & 2 deletions src/components/omniSidebarNav/submenus/getStarted.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,13 @@ import { getGuideDirectory, simpleLink } from './../helpers';
const getStarted = () => {
return {
// @todo, implement sidebar on landing pages.
link: '/guides/getstarted',
link: '/get-started',
title: 'Get Started',
children: [
getGuideDirectory('guides/getstarted'),


simpleLink('/get-started', 'Overview'),
getGuideDirectory('guides/getstarted', "Getting Started Guide"),
// This page is kind of a landing page? Should it be in this menu?
simpleLink('/products', 'Products & Features'),
simpleLink('/required-reading', 'Required Reading'),
Expand Down
2 changes: 2 additions & 0 deletions src/components/omniSidebarNav/submenus/goLive.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ const goLive = () => {
link: '/go-live',
title: 'Going Live',
children: [
simpleLink('/go-live', 'Overview'),

getGuideDirectory('guides/domains', 'Domains'),
simpleLink('/dns-providers', 'DNS Providers', [
simpleLink('/1-and-1', '1 & 1'),
Expand Down
24 changes: 2 additions & 22 deletions src/components/omniSidebarNav/submenus/pagesToDelete.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,31 +41,11 @@ const pagesToDeleteorReconsider = () => {
simpleLink('/drupal-updates', 'Drupal Updates'),
]),

// Maybe we should keep some of these landing listing and just have
// no sidebar for them.
simpleLink('/guides', 'landing pages', [
simpleLink('/guides'),

simpleLink('/automate', 'Automate'),
simpleLink('/develop', 'Develop'),
simpleLink(
'/develop-wordpress',
'Developing with WordPress on Pantheon',
),
simpleLink('/get-started', 'Get Started'),
simpleLink('/guides/decoupled'),

simpleLink('/integrations'),
// We should probably delete/redirect this.
simpleLink('/manage'),

simpleLink('/manage'),
simpleLink('/platform'),
simpleLink('/troubleshoot'),

// This landing page could go elsewhere
simpleLink('/performance', 'Performance Consideration'),
// minimal landing page that should be kept or rebuilt as prose.
simpleLink('/addons'),
]),

// Pages that should be redirected
simpleLink('/overview', 'pages that should be redirected', [
Expand Down
8 changes: 5 additions & 3 deletions src/components/omniSidebarNav/submenus/support.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ const support = () => {
),
getGuideDirectory('guides/professional-services'),
// Todo: relocate this to the support guide

simpleLink('/basic-troubleshooting', 'Troubleshooting', [
simpleLink('/troubleshoot', 'Troubleshooting', [
simpleLink('/troubleshoot', 'Overview'),
simpleLink('/basic-troubleshooting', 'Basic Troubleshooting'),
simpleLink('/modules-plugins-known-issues', 'Known Issues', [
// @todo, combine some of these pages.
Expand All @@ -42,7 +42,9 @@ const support = () => {
simpleLink('/mime-types', 'MIME Types'),
simpleLink('/resetting-passwords', 'Resetting Passwords'),
]),
simpleLink('/debug-slow-performance', 'Performance Troubleshooting', [
simpleLink('/performance', 'Performance Troubleshooting', [
simpleLink('/performance', 'Overview'),
//simpleLink('/debug-slow-performance', 'Performance Troubleshooting', [
simpleLink('/debug-slow-performance', 'Debugging Slow Performance'),
simpleLink('/debug-cache', 'Debugging Caching'),
getGuideDirectory(
Expand Down
15 changes: 11 additions & 4 deletions src/components/omniSidebarNav/submenus/webInfrastructure.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@ import { getGuideDirectory, simpleLink } from './../helpers';

const webInfrastructure = () => {
return {
link: '/application-containers',
link: '/platform',
title: 'Web Infrastructure',
children: [
simpleLink('/platform', 'Overview'),

simpleLink('/application-containers', 'Application Containers', [
simpleLink(
'/application-containers',
Expand Down Expand Up @@ -123,19 +125,22 @@ const webInfrastructure = () => {
'Create a Drupal Site Using a Drupal Distribution',
),
]),
simpleLink('/guides/wordpress-pantheon', 'WordPress', [
simpleLink('/develop-wordpress', 'WordPress', [
simpleLink(
'/develop-wordpress',
'Overview',
),
// Todo: reconcile these 2:
getGuideDirectory('guides/wordpress-pantheon', 'WordPress on Pantheon'),
// Todo: relocate the aws s3 page to webinfra filesystem submenu
getGuideDirectory('guides/wordpress-developer'),

getGuideDirectory('guides/wordpress-configurations'),
getGuideDirectory('guides/multisite', 'WordPress Multisite'),
getGuideDirectory('guides/woocommerce', 'WooCommerce'),
// @todo: add installing from third party sources doc here
]),
{
link: '/guides/decoupled/overview',
link: '/guides/decoupled',
title: 'Front-End Sites and Starter Kits',
children: [
getGuideDirectory('guides/decoupled/overview'),
Expand All @@ -151,6 +156,8 @@ const webInfrastructure = () => {
),
],
},
simpleLink('/addons', 'Performance Add-ons'),
simpleLink('/integrations', 'Integrations'),
],
};
};
Expand Down
8 changes: 6 additions & 2 deletions src/components/omniSidebarNav/submenus/workflows.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ import { getGuideDirectory, simpleLink } from './../helpers';

const workflows = () => {
return {
link: '/pantheon-workflow',
link: '/develop',
title: 'Development Workflows',
children: [
simpleLink('/develop', 'Overview'),
// TODO: Report for Submenus and children lists that do not start with a sublink
simpleLink('/pantheon-workflow', 'Deployment Pipeline on Pantheon', [
simpleLink('/pantheon-workflow', 'Pantheon Workflow'),
Expand All @@ -20,6 +21,8 @@ const workflows = () => {
simpleLink('/workflow-logs', 'Workflow Logs'),
simpleLink('/content-staging', 'Content Staging'),
]),


simpleLink('/guides/integrated-composer', 'Integrated Composer', [
getGuideDirectory(
'guides/integrated-composer',
Expand All @@ -37,7 +40,8 @@ const workflows = () => {
),
]),
// This page is pretty short given the size of the topic.
simpleLink('/continuous-integration', 'Continuous Integration', [
simpleLink('/automate', 'Automation & CI', [
simpleLink('/automate', 'Overview'),
simpleLink('/continuous-integration', 'CI Solutions'),
getGuideDirectory('guides/build-tools', 'Build Tools'),
simpleLink('/deploybot', 'DeployBot'),
Expand Down

0 comments on commit 2f925f6

Please sign in to comment.