From 63a93fb573a80ac5562f7af63cc6fd7d6ac62abb Mon Sep 17 00:00:00 2001 From: Steve Persch Date: Mon, 15 Jul 2024 17:06:29 -0500 Subject: [PATCH 1/8] Updating maching token URL --- source/content/machine-tokens.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/content/machine-tokens.md b/source/content/machine-tokens.md index fe56807c15..485049bbb9 100644 --- a/source/content/machine-tokens.md +++ b/source/content/machine-tokens.md @@ -14,7 +14,7 @@ integration: [--] Machine tokens are used to uniquely identify your machine and securely authenticate via [Terminus](/terminus). -Machine tokens: +Machine tokens: - Provide the same access as your username and password - Do not expire @@ -23,7 +23,7 @@ Machine tokens: ## Create a Machine Token -1. [Go to your Personal Settings](/personal-settings) and select [Machine Tokens](https://dashboard.pantheon.io/users/#account/tokens/). +1. [Go to your Personal Settings](/personal-settings) and select [Machine Tokens](https://dashboard.pantheon.io/personal-settings/machine-tokens). 1. Click **Create Token**. @@ -63,7 +63,7 @@ terminus auth:login --email For security purposes, we recommend removing tokens from your account when they are no longer used. -1. [Go to your Personal Settings](/personal-settings) and select [Machine Tokens](https://dashboard.pantheon.io/users/#account/tokens/). +1. [Go to your Personal Settings](/personal-settings) and select [Machine Tokens](https://dashboard.pantheon.io/personal-settings/machine-tokens). 1. Locate the token you want to delete, and click **Revoke Token**. From fb2d5fb204f2d7e3146b61b74b6c341677f628ce Mon Sep 17 00:00:00 2001 From: Steve Persch Date: Mon, 15 Jul 2024 17:23:21 -0500 Subject: [PATCH 2/8] adding link for PHP versions --- source/content/guides/php/02-php-versions.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/content/guides/php/02-php-versions.md b/source/content/guides/php/02-php-versions.md index c6869d869d..17c15ddffc 100644 --- a/source/content/guides/php/02-php-versions.md +++ b/source/content/guides/php/02-php-versions.md @@ -16,7 +16,7 @@ permalink: docs/guides/php/php-versions reviewed: "2022-12-13" --- -This section provides information on how to upgrade your PHP version. +This section provides information on how to upgrade to [a supported version of PHP](/guides/php##supported-php-versions). Upgrading your site's PHP version will improve the security, performance, and supportability of your site. Refer to our blog post for an [example of 62% performance gains after upgrading PHP](https://pantheon.io/blog/php-7-now-available-all-sites-pantheon). From d2ca9ba5f5058bf363e755582dd5380ce9d8ed4f Mon Sep 17 00:00:00 2001 From: Steve Persch Date: Mon, 15 Jul 2024 17:55:36 -0500 Subject: [PATCH 3/8] Contributor links start --- src/templates/contributor.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/templates/contributor.js b/src/templates/contributor.js index 8b547d1347..da8b03598c 100644 --- a/src/templates/contributor.js +++ b/src/templates/contributor.js @@ -87,9 +87,17 @@ class ContributorTemplate extends React.Component {

Contributions

    {docs.map(({ node }) => { + + var linkPath = ''; + if (node.frontmatter.permalink) { + linkPath = "/" + node.frontmatter.permalink; + }else { + linkPath = "/" + node.id; + } + return (
  • - + {node.frontmatter.title}
  • @@ -137,6 +145,7 @@ export const pageQuery = graphql` id frontmatter { title + permalink } fileAbsolutePath } From 64aee9fe2ccc7c2ca4ac3e8414ed651b8f666c04 Mon Sep 17 00:00:00 2001 From: Steve Persch Date: Mon, 15 Jul 2024 18:12:44 -0500 Subject: [PATCH 4/8] Revert "adding link for PHP versions" This reverts commit fb2d5fb204f2d7e3146b61b74b6c341677f628ce. --- source/content/guides/php/02-php-versions.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/content/guides/php/02-php-versions.md b/source/content/guides/php/02-php-versions.md index 17c15ddffc..c6869d869d 100644 --- a/source/content/guides/php/02-php-versions.md +++ b/source/content/guides/php/02-php-versions.md @@ -16,7 +16,7 @@ permalink: docs/guides/php/php-versions reviewed: "2022-12-13" --- -This section provides information on how to upgrade to [a supported version of PHP](/guides/php##supported-php-versions). +This section provides information on how to upgrade your PHP version. Upgrading your site's PHP version will improve the security, performance, and supportability of your site. Refer to our blog post for an [example of 62% performance gains after upgrading PHP](https://pantheon.io/blog/php-7-now-available-all-sites-pantheon). From ee9a9b51cb45b197e1ee4b8186dde4c21c8f5428 Mon Sep 17 00:00:00 2001 From: Steve Persch Date: Mon, 15 Jul 2024 18:13:18 -0500 Subject: [PATCH 5/8] Revert "Updating maching token URL" This reverts commit 63a93fb573a80ac5562f7af63cc6fd7d6ac62abb. --- source/content/machine-tokens.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/content/machine-tokens.md b/source/content/machine-tokens.md index 485049bbb9..fe56807c15 100644 --- a/source/content/machine-tokens.md +++ b/source/content/machine-tokens.md @@ -14,7 +14,7 @@ integration: [--] Machine tokens are used to uniquely identify your machine and securely authenticate via [Terminus](/terminus). -Machine tokens: +Machine tokens: - Provide the same access as your username and password - Do not expire @@ -23,7 +23,7 @@ Machine tokens: ## Create a Machine Token -1. [Go to your Personal Settings](/personal-settings) and select [Machine Tokens](https://dashboard.pantheon.io/personal-settings/machine-tokens). +1. [Go to your Personal Settings](/personal-settings) and select [Machine Tokens](https://dashboard.pantheon.io/users/#account/tokens/). 1. Click **Create Token**. @@ -63,7 +63,7 @@ terminus auth:login --email For security purposes, we recommend removing tokens from your account when they are no longer used. -1. [Go to your Personal Settings](/personal-settings) and select [Machine Tokens](https://dashboard.pantheon.io/personal-settings/machine-tokens). +1. [Go to your Personal Settings](/personal-settings) and select [Machine Tokens](https://dashboard.pantheon.io/users/#account/tokens/). 1. Locate the token you want to delete, and click **Revoke Token**. From 278e6df6f38210a6e33621c338a54d7bd355ea32 Mon Sep 17 00:00:00 2001 From: Pantheon Bot Date: Wed, 29 Jan 2025 17:43:56 +0000 Subject: [PATCH 6/8] Apply Prettier formatting --- src/templates/contributor.js | 73 +++++++++++++++++------------------- 1 file changed, 35 insertions(+), 38 deletions(-) diff --git a/src/templates/contributor.js b/src/templates/contributor.js index da8b03598c..8d9ea82aeb 100644 --- a/src/templates/contributor.js +++ b/src/templates/contributor.js @@ -1,50 +1,50 @@ -import React from "react" -import { graphql, Link } from "gatsby" -import Layout from "../layout/layout" -import SEO from "../layout/seo" -import ContributorLink from "../components/ContributorLink" +import React from 'react'; +import { graphql, Link } from 'gatsby'; +import Layout from '../layout/layout'; +import SEO from '../layout/seo'; +import ContributorLink from '../components/ContributorLink'; -import { Container, TwoItemLayout } from "@pantheon-systems/pds-toolkit-react" +import { Container, TwoItemLayout } from '@pantheon-systems/pds-toolkit-react'; const links = [ { - property: "url", - icon: "user", + property: 'url', + icon: 'user', }, { - property: "github", - icon: "github", + property: 'github', + icon: 'github', }, { - property: "drupal", - icon: "drupal", + property: 'drupal', + icon: 'drupal', }, { - property: "wordpress", - icon: "wordpress", + property: 'wordpress', + icon: 'wordpress', }, { - property: "twitter", - icon: "twitter", + property: 'twitter', + icon: 'twitter', }, { - property: "linkedin", - icon: "linkedin", + property: 'linkedin', + icon: 'linkedin', }, -] +]; // Set container width for search and main content. -const containerWidth = "standard" +const containerWidth = 'standard'; class ContributorTemplate extends React.Component { render() { - const contributor = this.props.data.contributorYaml + const contributor = this.props.data.contributorYaml; const docs = - this.props.data.allDocs != null ? this.props.data.allDocs.edges : [] - let printedGuides = [] - let printedOverview = [] + this.props.data.allDocs != null ? this.props.data.allDocs.edges : []; + let printedGuides = []; + let printedOverview = []; - console.log(contributor) + console.log(contributor); return ( @@ -70,11 +70,11 @@ class ContributorTemplate extends React.Component { {links.map((link, i) => { const url = contributor.hasOwnProperty(link.property) ? contributor[link.property] - : null + : null; if (url !== null) { return ( - ) + ); } })} @@ -87,21 +87,18 @@ class ContributorTemplate extends React.Component {

    Contributions

      {docs.map(({ node }) => { - var linkPath = ''; if (node.frontmatter.permalink) { - linkPath = "/" + node.frontmatter.permalink; - }else { - linkPath = "/" + node.id; + linkPath = '/' + node.frontmatter.permalink; + } else { + linkPath = '/' + node.id; } return (
    • - - {node.frontmatter.title} - + {node.frontmatter.title}
    • - ) + ); })}
    @@ -110,11 +107,11 @@ class ContributorTemplate extends React.Component {
    - ) + ); } } -export default ContributorTemplate +export default ContributorTemplate; export const pageQuery = graphql` query ContributorById($id: String!) { @@ -160,4 +157,4 @@ export const pageQuery = graphql` } } } -` +`; From b26597dc61f32613ac2433901515b5302f595596 Mon Sep 17 00:00:00 2001 From: Steve Persch Date: Wed, 29 Jan 2025 12:00:21 -0600 Subject: [PATCH 7/8] github link --- src/templates/contributor.js | 31 ++++++++----------------------- 1 file changed, 8 insertions(+), 23 deletions(-) diff --git a/src/templates/contributor.js b/src/templates/contributor.js index da8b03598c..79d48acc86 100644 --- a/src/templates/contributor.js +++ b/src/templates/contributor.js @@ -39,12 +39,8 @@ const containerWidth = "standard" class ContributorTemplate extends React.Component { render() { const contributor = this.props.data.contributorYaml - const docs = - this.props.data.allDocs != null ? this.props.data.allDocs.edges : [] - let printedGuides = [] - let printedOverview = [] - console.log(contributor) + // console.log(contributor) return ( @@ -84,26 +80,15 @@ class ContributorTemplate extends React.Component { slot="second-item" className="docs-contributor__contributions" > -

    Contributions

    -
      - {docs.map(({ node }) => { - var linkPath = ''; - if (node.frontmatter.permalink) { - linkPath = "/" + node.frontmatter.permalink; - }else { - linkPath = "/" + node.id; - } - return ( -
    • - - {node.frontmatter.title} - -
    • - ) - })} -
    + +

    + + See contributions on GitHub + +

    + From f5972033a13b03987400553bcc9a3a813e4f9e28 Mon Sep 17 00:00:00 2001 From: Pantheon Bot Date: Wed, 29 Jan 2025 18:02:19 +0000 Subject: [PATCH 8/8] Apply Prettier formatting --- src/templates/contributor.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/templates/contributor.js b/src/templates/contributor.js index 26f2c91238..d81187dda6 100644 --- a/src/templates/contributor.js +++ b/src/templates/contributor.js @@ -38,7 +38,7 @@ const containerWidth = 'standard'; class ContributorTemplate extends React.Component { render() { - const contributor = this.props.data.contributorYaml + const contributor = this.props.data.contributorYaml; // console.log(contributor) @@ -80,13 +80,13 @@ class ContributorTemplate extends React.Component { slot="second-item" className="docs-contributor__contributions" > -

    - + See contributions on GitHub

    -