Skip to content

Commit

Permalink
Merge branch 'master' into cayla/last-updated
Browse files Browse the repository at this point in the history
Cayla Hamann committed Jul 9, 2020
2 parents 62f5bd4 + acd3549 commit 9a8597b
Showing 7 changed files with 44 additions and 29 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion src/components/IconReference.js
Original file line number Diff line number Diff line change
@@ -11,7 +11,7 @@ const IconReference = ({ type }) => {
className={styles.button}
type="button"
key={type}
onClick={() => copyIcon(type)}
onClick={() => copyIcon(`Icon.TYPE.${type}`)}
>
<Icon className={styles.icon} type={Icon.TYPE[type]} />
<span className={styles.iconName}>{copied ? 'Copied!' : type}</span>
2 changes: 2 additions & 0 deletions src/markdown-pages/automate-workflows/index.mdx
Original file line number Diff line number Diff line change
@@ -3,6 +3,8 @@ path: '/automate-workflows'
title: 'Automate workflows'
template: 'OverviewTemplate'
description: ''
redirects:
- /use-cases/workflow-automation
---

<Intro>
16 changes: 8 additions & 8 deletions src/markdown-pages/build-apps/add-time-picker-guide.mdx
Original file line number Diff line number Diff line change
@@ -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
<PlatformStateContext.Consumer>
{(platformState) => {
return (
// ADD THE CURRENT RETURN CODE HERE
)
```js
<PlatformStateContext.Consumer>
{(platformState) => {
return (
// ADD THE CURRENT RETURN CODE HERE
)
}}
</PlatformStateContext.Consumer>
```
</PlatformStateContext.Consumer>
```

</Step>

2 changes: 1 addition & 1 deletion src/markdown-pages/build-apps/build-hello-world-app.mdx
Original file line number Diff line number Diff line change
@@ -113,7 +113,7 @@ If you followed all the steps in the CLI wizard, you now have files under a new

<Step>

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).

</Step>

43 changes: 24 additions & 19 deletions src/templates/OverviewTemplate.js
Original file line number Diff line number Diff line change
@@ -22,25 +22,30 @@ const OverviewTemplate = ({ data }) => {
<PageTitle>{title}</PageTitle>
<MDXContainer>{body}</MDXContainer>
{!!guides?.nodes.length && (
<GuideListing className={styles.guideListing}>
<GuideListing.List>
{guides?.nodes.map(({ frontmatter }, index) => (
<GuideTile
as={Link}
to={frontmatter.path}
key={index}
duration={frontmatter.duration}
title={frontmatter.tileShorthand?.title || frontmatter.title}
description={
frontmatter.tileShorthand?.description ||
frontmatter.description
}
path={frontmatter.path}
alignment={GuideTile.ALIGNMENT.LEFT}
/>
))}
</GuideListing.List>
</GuideListing>
<>
<h2
className={styles.subtitle}
>{`Guides to ${title.toLowerCase()}`}</h2>
<GuideListing className={styles.guideListing}>
<GuideListing.List>
{guides?.nodes.map(({ frontmatter }, index) => (
<GuideTile
as={Link}
to={frontmatter.path}
key={index}
duration={frontmatter.duration}
title={frontmatter.tileShorthand?.title || frontmatter.title}
description={
frontmatter.tileShorthand?.description ||
frontmatter.description
}
path={frontmatter.path}
alignment={GuideTile.ALIGNMENT.LEFT}
/>
))}
</GuideListing.List>
</GuideListing>
</>
)}
</Layout>
);
4 changes: 4 additions & 0 deletions src/templates/OverviewTemplate.module.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
.guideListing {
margin-top: 2rem;
}

.subtitle {
margin-top: 2rem;
}

0 comments on commit 9a8597b

Please sign in to comment.