From 04dceb4d0d55d8b4a0f7c827994466ca4bfb90ed Mon Sep 17 00:00:00 2001 From: Cayla Hamann Date: Tue, 7 Jul 2020 17:01:13 -0400 Subject: [PATCH 1/6] feat: new subheaders in overview pages --- src/templates/OverviewTemplate.js | 43 ++++++++++++---------- src/templates/OverviewTemplate.module.scss | 4 ++ 2 files changed, 28 insertions(+), 19 deletions(-) diff --git a/src/templates/OverviewTemplate.js b/src/templates/OverviewTemplate.js index 5dce6cb31..d65ce367b 100644 --- a/src/templates/OverviewTemplate.js +++ b/src/templates/OverviewTemplate.js @@ -22,25 +22,30 @@ const OverviewTemplate = ({ data }) => { {title} {body} {!!guides?.nodes.length && ( - - - {guides?.nodes.map(({ frontmatter }, index) => ( - - ))} - - + <> +

{`Guides to ${title.toLowerCase()}`}

+ + + {guides?.nodes.map(({ frontmatter }, index) => ( + + ))} + + + )} ); diff --git a/src/templates/OverviewTemplate.module.scss b/src/templates/OverviewTemplate.module.scss index 02d9ee698..bee96fdf0 100644 --- a/src/templates/OverviewTemplate.module.scss +++ b/src/templates/OverviewTemplate.module.scss @@ -1,3 +1,7 @@ .guideListing { margin-top: 2rem; } + +.subtitle { + margin-top: 2rem; +} From 498c4d0791e3ebe3f25ebb9578fff5ad86eb22a0 Mon Sep 17 00:00:00 2001 From: mmfred <58010132+mmfred@users.noreply.github.com> Date: Tue, 7 Jul 2020 16:01:05 -0700 Subject: [PATCH 2/6] Added a redirect from the previous site. --- src/markdown-pages/automate-workflows/index.mdx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/markdown-pages/automate-workflows/index.mdx b/src/markdown-pages/automate-workflows/index.mdx index 68f623fc4..aadaa155b 100644 --- a/src/markdown-pages/automate-workflows/index.mdx +++ b/src/markdown-pages/automate-workflows/index.mdx @@ -3,6 +3,8 @@ path: '/automate-workflows' title: 'Automate workflows' template: 'OverviewTemplate' description: '' +redirects: + - /use-cases/workflow-automation --- From b4494334db61ae2c7ccd2639c89c1e15302123a5 Mon Sep 17 00:00:00 2001 From: Jerel Miller Date: Tue, 7 Jul 2020 16:57:54 -0700 Subject: [PATCH 3/6] chore: remove quotes in the local build URL --- src/markdown-pages/build-apps/build-hello-world-app.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/markdown-pages/build-apps/build-hello-world-app.mdx b/src/markdown-pages/build-apps/build-hello-world-app.mdx index fa83b3dfd..d04a6bd7f 100644 --- a/src/markdown-pages/build-apps/build-hello-world-app.mdx +++ b/src/markdown-pages/build-apps/build-hello-world-app.mdx @@ -113,7 +113,7 @@ If you followed all the steps in the CLI wizard, you now have files under a new - Open a browser and go to [https://one.newrelic.com/?nerdpacks='local'](https://one.newrelic.com/?nerdpacks='local') (this url is also shown in the terminal). + Open a browser and go to [https://one.newrelic.com/?nerdpacks=local](https://one.newrelic.com/?nerdpacks=local) (this url is also shown in the terminal). From 86578d9236ff0cd34a88e382ff1e25e54465b309 Mon Sep 17 00:00:00 2001 From: Jerel Miller Date: Tue, 7 Jul 2020 17:05:16 -0700 Subject: [PATCH 4/6] chore: fix indentation on one of the code samples --- .../build-apps/add-time-picker-guide.mdx | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/markdown-pages/build-apps/add-time-picker-guide.mdx b/src/markdown-pages/build-apps/add-time-picker-guide.mdx index 82043b742..1c62b4d4f 100644 --- a/src/markdown-pages/build-apps/add-time-picker-guide.mdx +++ b/src/markdown-pages/build-apps/add-time-picker-guide.mdx @@ -161,15 +161,15 @@ Add the `PlatformStateContext` component to the end of the import statement so i Just below the current `return` insert this code for the `PlatformStateContext` component: - ```js - - {(platformState) => { - return ( - // ADD THE CURRENT RETURN CODE HERE - ) +```js + + {(platformState) => { + return ( + // ADD THE CURRENT RETURN CODE HERE + ) }} - - ``` + +``` From 801fbca6814e32c26282c14851a9fa95f8259dc4 Mon Sep 17 00:00:00 2001 From: John P Vajda Date: Tue, 7 Jul 2020 18:22:21 -0600 Subject: [PATCH 5/6] added nr discuss topic to readme --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 206684442..9cfbac5b7 100644 --- a/README.md +++ b/README.md @@ -30,6 +30,10 @@ New Relic employees as well as other customers to get help and share best practi If you are looking for configuration help or more information about New Relic's products please visit the [New Relic Explorers Hub](https://discuss.newrelic.com/) +Like all official New Relic open source projects, there's a related +[Community topic](https://discuss.newrelic.com/t/developer-newrelic-com/108069) +in the New Relic Explorers Hub. + ## 🚧 Contributing We welcome contributions to the New Relic Developer Site. Please review our From 4e23f7f14cb3da6ee763bfd5ed2f48a8619bf207 Mon Sep 17 00:00:00 2001 From: Cayla Hamann Date: Wed, 8 Jul 2020 12:23:08 -0400 Subject: [PATCH 6/6] feat: now when copy it does icon.TYPE --- src/components/IconReference.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/IconReference.js b/src/components/IconReference.js index a91bb3696..639485faf 100644 --- a/src/components/IconReference.js +++ b/src/components/IconReference.js @@ -11,7 +11,7 @@ const IconReference = ({ type }) => { className={styles.button} type="button" key={type} - onClick={() => copyIcon(type)} + onClick={() => copyIcon(`Icon.TYPE.${type}`)} > {copied ? 'Copied!' : type}