Skip to content

Commit

Permalink
Merge c1719bd into f76798b
Browse files Browse the repository at this point in the history
  • Loading branch information
stevector authored Dec 2, 2024
2 parents f76798b + c1719bd commit bde3a80
Show file tree
Hide file tree
Showing 48 changed files with 6,315 additions and 614 deletions.
1,599 changes: 1,599 additions & 0 deletions all-written-paths.txt

Large diffs are not rendered by default.

349 changes: 196 additions & 153 deletions gatsby-node.js

Large diffs are not rendered by default.

42 changes: 29 additions & 13 deletions gatsby-ssr.js
Original file line number Diff line number Diff line change
@@ -1,26 +1,42 @@
import React from 'react'
import React from 'react';

// Import PDS Global wrapper for applying global context providers.
import { GlobalWrapper } from "@pantheon-systems/pds-toolkit-react"
import { MOBILE_MENU_BREAKPOINT } from './src/vars/responsive'
import { GlobalWrapper } from '@pantheon-systems/pds-toolkit-react';
import { MOBILE_MENU_BREAKPOINT } from './src/vars/responsive';

/*
* Add global scripts to ensure Bootstrap and jQuery JS is included
*/
export const onRenderBody = ({ setPostBodyComponents }) => {
setPostBodyComponents([
<script key="jquery" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/1.12.1/jquery.min.js" />,
<script key="bootstrap" src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" />,
<script
key="jquery"
src="https://cdnjs.cloudflare.com/ajax/libs/jquery/1.12.1/jquery.min.js"
/>,
<script
key="bootstrap"
src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"
/>,
<script key="twitter" src="https://platform.twitter.com/widgets.js" />,

// OneTrust Banner
<script src="https://cdn.cookielaw.org/scripttemplates/otSDKStub.js" type="text/javascript" charset="UTF-8" data-domain-script="fba5027b-04c0-4165-8778-4e10fb9f5fa3" />,
function OptanonWrapper() {
window.dataLayer.push({'event':'OneTrustGroupsUpdated'})
}
])
}
<script
src="https://cdn.cookielaw.org/scripttemplates/otSDKStub.js"
type="text/javascript"
charset="UTF-8"
data-domain-script="fba5027b-04c0-4165-8778-4e10fb9f5fa3"
/>,
function OptanonWrapper() {
window.dataLayer.push({ event: 'OneTrustGroupsUpdated' });
},
]);
};

// Global context providers
export const wrapRootElement = ({ element }) => {
return <GlobalWrapper mobileMenuMaxWidth={MOBILE_MENU_BREAKPOINT}>{element}</GlobalWrapper>
}
return (
<GlobalWrapper mobileMenuMaxWidth={MOBILE_MENU_BREAKPOINT}>
{element}
</GlobalWrapper>
);
};
2 changes: 1 addition & 1 deletion source/content/guides/backups/01-introduction.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: Backups Tool
title: Backups
subtitle: Introduction
description: Learn access and manage your Pantheon site backups.
tags: [backups, security]
Expand Down
2 changes: 1 addition & 1 deletion source/content/guides/backups/02-access-backups.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: Backups Tool
title: Backups
subtitle: Access Backups
description: Learn how to access your backups.
tags: [backups, security]
Expand Down
2 changes: 1 addition & 1 deletion source/content/guides/backups/03-create-backups.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: Backups Tool
title: Backups
subtitle: Create Backups
description: Learn how to create new backups.
tags: [backups, security]
Expand Down
2 changes: 1 addition & 1 deletion source/content/guides/backups/04-restore-from-backup.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: Backups Tool
title: Backups
subtitle: Restore a Backup
description: Learn how restore from an existing backup.
tags: [backups, security]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: Backups Tool
title: Backups
subtitle: Code Archives and Backup Log
description: Learn about your code archives and Backup Log.
tags: [backups, security]
Expand Down
2 changes: 1 addition & 1 deletion source/content/guides/backups/06-faqs-backups.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: Backups Tool
title: Backups
subtitle: FAQs
description: Get answers to your Backups Tool questions.
tags: [backups, security]
Expand Down
21 changes: 0 additions & 21 deletions source/content/guides/domains/configure-dns.md

This file was deleted.

6 changes: 4 additions & 2 deletions source/content/guides/drush/04-drupal-commandline.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ product: [--]
integration: [drush]
---

<!-- @todo, move this page out of this guide and to a "Tutorials" section. -->

[Drush](https://github.com/drush-ops/drush) is a tool for working with Drupal from the command line. [Terminus](/terminus) allows you to use the command line to do everything you can do in Pantheon's browser-based dashboard. You can also run Drush commands directly from Terminus, making it a single solution for command line development on Pantheon.

This section walks you through using Drush and Terminus in the command line to create a new Drupal site and move configurations between Pantheon environments.
Expand Down Expand Up @@ -67,7 +69,7 @@ The next few sections use the example variables `my-site` and `"My D9 Site"` as
```

- You can add the `--org` option to the command above and pass the Workspace name, label, or ID if you want to associate this site with an Workspace.

- Use the `site:org:add` command to associate an existing site with an Workspace.

1. Open your new Site Dashboard in a browser:
Expand Down Expand Up @@ -312,4 +314,4 @@ Terminus provides the power to manage most aspects of your Pantheon sites, while

- [Use the Pantheon Workflow](/pantheon-workflow)
- [Configuration Workflow for Drupal Sites](/drupal-configuration-management)
- [Terminus Guide](/terminus)
- [Terminus Guide](/terminus)
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ integration: []
showtoc: true
permalink: docs/guides/local-development/continuous-integration
---

<!--Todo: move content to /continuous-integration and delete -->
This section provides information on how to use Terminus and Drupal SimpleTest to run automated integration tests.

[Continuous Integration](https://pantheon.io/integrations/continuous-integration) (CI) is a method of running automated unit and integration tests to apply quality control. Pantheon doesn't provide or host tools for continuous integration, but many tools and techniques are compatible with Pantheon. [Contact support](/guides/support/contact-support/) if you have a particular use case or technique that you'd like to highlight.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ showtoc: true
permalink: docs/guides/mariadb-mysql/database-connection-errors
---

<!-- Much of this guide could be restructured. Some of the info in this guide is general explanation. Some is troubleshooting "how to" -->

This section provides information on database connection errors.

There is an issue connecting to the Pantheon database if your site suddenly reverts to `install.php`, or you get database connection errors like the one below:
Expand All @@ -24,7 +26,7 @@ There is an issue connecting to the Pantheon database if your site suddenly reve
Can’t connect to local MySQL server through socket '/var/lib/mysql/mysql.sock'...).
```

There are two common causes for this issue:
There are two common causes for this issue:

- Overwriting core
- Using non-standard bootstraps
Expand Down Expand Up @@ -80,4 +82,4 @@ Uncaught exception 'PDOException' with message 'SQLSTATE[42S02]: Base table or v
## More Resources
- [Troubleshooting MySQL Connections](/guides/mariadb-mysql/mysql-access/#troubleshooting-mysql-connections)
- [Troubleshooting MySQL Connections](/guides/mariadb-mysql/mysql-access/#troubleshooting-mysql-connections)
2 changes: 1 addition & 1 deletion source/content/guides/sso/04-shibboleth-sso.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ product: [--]
integration: [SimpleSAMLphp]
permalink: docs/guides/sso/shibboleth-sso
---

<!--Todo: Relocate this to a single page doc so it can be added to Integrations submenu -->
This section provides information on how to install and configure [SimpleSAMLphp](https://simplesamlphp.org/) for Pantheon sites. Refer to the [Other SSO Options](#other-sso-options) section if you are searching for an SSO service provider solution with minimal configuration requirements.

## Before You Begin
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ reviewed: "2024-10-23"
showtoc: true
permalink: docs/guides/wordpress-developer/wordpress-s3
---
<!--Todo: Relocate this to a single page doc so it can be added to Integrations submenu -->

This section provides information on how to integrate Amazon Web Services (AWS) S3 storage with your WordPress Pantheon site.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: Optimize Your wp-options Table and Autoloaded Data
title: Optimize Your wp_options Table and Autoloaded Data
description: Learn how to check and configure the autoloaded data in your wp_options table.
tags: [cache]
contributors: [carl-alberto, whitneymeredith]
Expand Down
Loading

0 comments on commit bde3a80

Please sign in to comment.