Skip to content
This repository was archived by the owner on Apr 7, 2025. It is now read-only.

Commit 87a7d30

Browse files
committed
fix: Swap componentPath for component in allSitePage queries
1 parent c36aad5 commit 87a7d30

16 files changed

+98
-81
lines changed

src/components/__tests__/fixtures/ProjectSearchInput.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -793,7 +793,7 @@ export default {
793793
contentEditLink:
794794
'https://github.com/newrelic/opensource-website/tree/develop/src/pages/code-of-conduct.mdx',
795795
},
796-
componentPath:
796+
component:
797797
'/Users/mfrederick/Desktop/NewRelic/github.newrelic/opensource-website/src/pages/code-of-conduct.mdx',
798798
path: '/code-of-conduct/',
799799
},

src/pages/__tests__/fixtures/explore-projects.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -817,7 +817,7 @@ export default {
817817
sitePage: {
818818
nodes: [
819819
{
820-
componentPath:
820+
component:
821821
'/Users/mfrederick/Desktop/NewRelic/github.newrelic/opensource-website/src/pages/code-of-conduct.mdx',
822822
path: '/code-of-conduct/',
823823
},

src/pages/__tests__/fixtures/external-projects.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,7 @@ export default {
550550
contentEditLink:
551551
'https://github.com/newrelic/opensource-website/tree/develop/src/pages/code-of-conduct.mdx',
552552
},
553-
componentPath:
553+
component:
554554
'/Users/mfrederick/Desktop/NewRelic/github.newrelic/opensource-website/src/pages/code-of-conduct.mdx',
555555
path: '/code-of-conduct/',
556556
},

src/pages/cla.mdx

+13-12
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { graphql } from 'gatsby'
1+
import { graphql } from 'gatsby';
22
import Layout from '../components/layout';
33
import SEO from '../components/seo';
44
import PageHeading from '../components/PageHeading';
@@ -7,7 +7,7 @@ export const query = graphql`
77
query CLAQuery($path: String) {
88
sitePage: allSitePage(filter: { path: { eq: $path } }) {
99
nodes {
10-
componentPath
10+
component
1111
path
1212
}
1313
}
@@ -16,21 +16,22 @@ export const query = graphql`
1616

1717
export default ({ children, data, pageContext }) => (
1818
<Layout fullWidth editLink={pageContext.fileRelativePath}>
19-
<SEO title="New Relic Open Source Contributor License Agreement" />
20-
<PageHeading
21-
title="New Relic Open Source Contributor License Agreement"
22-
subheader="The content of this license agreement normally resides in a repo's cla.md file"
23-
hasSeparator
24-
/>
25-
<div className="primary-content">
26-
<main>{children}</main>
27-
</div>
28-
</Layout>
19+
<SEO title="New Relic Open Source Contributor License Agreement" />
20+
<PageHeading
21+
title="New Relic Open Source Contributor License Agreement"
22+
subheader="The content of this license agreement normally resides in a repo's cla.md file"
23+
hasSeparator
24+
/>
25+
<div className="primary-content">
26+
<main>{children}</main>
27+
</div>
28+
</Layout>
2929
);
3030

3131
# NEW RELIC, INC.
3232

3333
## INDIVIDUAL CONTRIBUTOR LICENSE AGREEMENT
34+
3435
Thank you for your interest in contributing to the open source projects of New Relic, Inc. (“New Relic”). In order to clarify the intellectual property license granted with Contributions from any person or entity, New Relic must have a Contributor License Agreement ("Agreement") on file that has been signed by each Contributor, indicating agreement to the license terms below. This Agreement is for your protection as a Contributor as well as the protection of New Relic; it does not change your rights to use your own Contributions for any other purpose.
3536

3637
You accept and agree to the following terms and conditions for Your present and future Contributions submitted to New Relic. Except for the licenses granted herein to New Relic and recipients of software distributed by New Relic, You reserve all right, title, and interest in and to Your Contributions.

src/pages/code-of-conduct-reporting.mdx

+20-11
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export const query = graphql`
77
query CoCRQuery($path: String) {
88
sitePage: allSitePage(filter: { path: { eq: $path } }) {
99
nodes {
10-
componentPath
10+
component
1111
path
1212
}
1313
}
@@ -16,15 +16,15 @@ export const query = graphql`
1616

1717
export default ({ children, data, pageContext }) => (
1818
<Layout fullWidth editLink={pageContext.fileRelativePath}>
19-
<SEO title="New Relic Open Source Community Code of Conduct - Reporting Guide" />
20-
<PageHeading
21-
title="New Relic Open Source Community Code of Conduct - Reporting Guide"
22-
hasSeparator
23-
/>
24-
<div className="primary-content">
25-
<main>{children}</main>
26-
</div>
27-
</Layout>
19+
<SEO title="New Relic Open Source Community Code of Conduct - Reporting Guide" />
20+
<PageHeading
21+
title="New Relic Open Source Community Code of Conduct - Reporting Guide"
22+
hasSeparator
23+
/>
24+
<div className="primary-content">
25+
<main>{children}</main>
26+
</div>
27+
</Layout>
2828
);
2929

3030
If you believe someone is violating the [Code of Conduct](/code-of-conduct), we ask that you report it to the New Relic Open Source Steering Committee by emailing [[email protected]](mailto:[email protected]). All reports will be kept confidential to the extent possible.
@@ -57,4 +57,13 @@ In potentially harmful situations, such as ongoing harassment or threats to anyo
5757

5858
We encourage New Relic employees to report any misconduct they may experience to Human Resources or to any senior manager through the reporting process outlined in our anti-harassment policy and training.
5959

60-
<sub><sup>Modified from original. Original text courtesy of <a href="https://www.djangoproject.com/conduct/reporting/">Django Project's Reporting Guide</a> and <a href="https://opensource.google/conduct/">Google Community Gidelines</a>.</sup></sub>
60+
<sub>
61+
<sup>
62+
Modified from original. Original text courtesy of{' '}
63+
<a href="https://www.djangoproject.com/conduct/reporting/">
64+
Django Project's Reporting Guide
65+
</a>{' '}
66+
and{' '}
67+
<a href="https://opensource.google/conduct/">Google Community Gidelines</a>.
68+
</sup>
69+
</sub>

src/pages/code-of-conduct.mdx

+28-20
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export const query = graphql`
88
query CoCQuery($path: String) {
99
sitePage: allSitePage(filter: { path: { eq: $path } }) {
1010
nodes {
11-
componentPath
11+
component
1212
path
1313
}
1414
}
@@ -17,15 +17,15 @@ export const query = graphql`
1717

1818
export default ({ children, data, pageContext }) => (
1919
<Layout fullWidth editLink={pageContext.fileRelativePath}>
20-
<SEO title="New Relic Open Source Community Code of Conduct" />
21-
<PageHeading
22-
title="New Relic Open Source Community Code of Conduct"
23-
hasSeparator
24-
/>
25-
<div className="primary-content">
26-
<main>{children}</main>
27-
</div>
28-
</Layout>
20+
<SEO title="New Relic Open Source Community Code of Conduct" />
21+
<PageHeading
22+
title="New Relic Open Source Community Code of Conduct"
23+
hasSeparator
24+
/>
25+
<div className="primary-content">
26+
<main>{children}</main>
27+
</div>
28+
</Layout>
2929
);
3030

3131
We believe in the power of Open Source to bring together developers and ideas to solve tricky problems and create the innovative software the world needs.
@@ -36,16 +36,16 @@ We respect all people in our community, regardless of their background or the ex
3636
- **Be welcoming.** We strive to be a community that welcomes and supports people of all backgrounds and identities. This includes, but is not limited to, members of any race, ethnicity, culture, national origin, colour, immigration status, social or economic class, educational level, sex, sexual orientation, gender identity and expression, age, size, family status, political belief, religion, and mental and physical ability.
3737
- **Be considerate.** Your work will be used by other people, and you in turn will depend on the work of others. Any decision you take will affect users and colleagues, and you should take those consequences into account when making decisions. Remember that we’re a world-wide community, so you might not be communicating in someone else’s primary language.
3838
- **Be respectful.** Not all of us will agree all the time, but disagreement is no excuse for poor behavior or poor manners. We all experience some frustration now and then, but we cannot allow that frustration to turn into a personal attack. It’s important to remember that a community where people feel uncomfortable or threatened is not a productive one. Members of the New Relic community should be respectful to everyone.
39-
- **Be careful in the words that you choose.** We are a community of professionals, and we conduct ourselves professionally. Be kind to others. Do not insult or put down other participants. Harassment and other exclusionary behaviors aren't acceptable. This includes, but is not limited to:
39+
- **Be careful in the words that you choose.** We are a community of professionals, and we conduct ourselves professionally. Be kind to others. Do not insult or put down other participants. Harassment and other exclusionary behaviors aren't acceptable. This includes, but is not limited to:
4040

41-
- Violent threats or language directed against another person
42-
- Discriminatory jokes and language
43-
- Posting sexualized language or imagery
44-
- Posting (or threatening to post) other people's personally identifying information (“doxing”)
45-
- Personal insults, especially those using racist or sexist terms
46-
- Unwelcome sexual attention
47-
- Advocating for, or encouraging, any of the above behavior
48-
- Repeated harassment of others. In general, if someone asks you to stop, then stop.
41+
- Violent threats or language directed against another person
42+
- Discriminatory jokes and language
43+
- Posting sexualized language or imagery
44+
- Posting (or threatening to post) other people's personally identifying information (“doxing”)
45+
- Personal insults, especially those using racist or sexist terms
46+
- Unwelcome sexual attention
47+
- Advocating for, or encouraging, any of the above behavior
48+
- Repeated harassment of others. In general, if someone asks you to stop, then stop.
4949

5050
- **When we disagree, try to understand why.** Disagreements, both social and technical, happen all the time and New Relic is no exception. It is important that we resolve disagreements and differing views constructively. Remember that we’re all different. The strength of New Relic comes from its varied community of people from a wide range of backgrounds. Different people have different perspectives on issues. Being unable to understand why someone holds a viewpoint doesn’t mean that they’re wrong. Don’t forget that it is human to err and blaming each other doesn’t get us anywhere. Instead, focus on helping to resolve issues and learning from mistakes.
5151

@@ -57,4 +57,12 @@ Our Open Source communities agree to abide by New Relic’s [Acceptable Use Poli
5757

5858
If you believe someone is violating the code of conduct, we ask that you report it by emailing us at [[email protected]](mailto:[email protected]). For more details please see our [Reporting Guidelines](/code-of-conduct-reporting).
5959

60-
<sub><sup>Modified from original. Original text courtesy of <a href="https://www.djangoproject.com/conduct/">Django Project's Code of Conduct</a>.</sup></sub>
60+
<sub>
61+
<sup>
62+
Modified from original. Original text courtesy of{' '}
63+
<a href="https://www.djangoproject.com/conduct/">
64+
Django Project's Code of Conduct
65+
</a>
66+
.
67+
</sup>
68+
</sub>

src/pages/collections.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export const query = graphql`
5454
5555
sitePage: allSitePage(filter: { path: { eq: $path } }) {
5656
nodes {
57-
componentPath
57+
component
5858
path
5959
}
6060
}

src/pages/contributing.mdx

+25-26
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export const query = graphql`
88
query ContributingQuery($path: String) {
99
sitePage: allSitePage(filter: { path: { eq: $path } }) {
1010
nodes {
11-
componentPath
11+
component
1212
path
1313
}
1414
}
@@ -17,51 +17,51 @@ export const query = graphql`
1717

1818
export default ({ children, data, pageContext }) => (
1919
<Layout fullWidth editLink={pageContext.fileRelativePath}>
20-
<SEO title="Contributing to a New Relic Open Source Project" />
21-
<PageHeading
22-
title="Contributing to a New Relic Open Source Project"
20+
<SEO title="Contributing to a New Relic Open Source Project" />
21+
<PageHeading
22+
title="Contributing to a New Relic Open Source Project"
2323
subheader="Demonstrating a standard fork-and-pull-request code contribution workflow"
24-
/>
25-
<div className="primary-content">
26-
<main>{children}</main>
27-
</div>
28-
</Layout>
24+
/>
25+
<div className="primary-content">
26+
<main>{children}</main>
27+
</div>
28+
</Layout>
2929
);
3030

3131
<div className={styles.featuredVideoContainer}>
32-
<div className="responsive-video">
33-
<iframe
34-
width="1000"
35-
height="562.704471"
36-
src="https://fast.wistia.net/embed/iframe/ypgdkgysmo?videoFoam=true"
37-
frameBorder="0"
38-
allow="accelerometer; encrypted-media; gyroscope; picture-in-picture; showinfo; modestbranding"
39-
placeholder=""
40-
/>
41-
</div>
42-
</div>
32+
<div className="responsive-video">
33+
<iframe
34+
width="1000"
35+
height="562.704471"
36+
src="https://fast.wistia.net/embed/iframe/ypgdkgysmo?videoFoam=true"
37+
frameBorder="0"
38+
allow="accelerometer; encrypted-media; gyroscope; picture-in-picture; showinfo; modestbranding"
39+
placeholder=""
40+
/>
41+
</div>
42+
</div>
4343

4444
For those newer to open source contribution at New Relic, the following points encapsulate the major steps and issues. For command line description of this workflow, [**consult this documentation**](https://gist.github.com/tangollama/5d9d63fef0ed4498fb5fbb057bb5983d).
4545

4646
## Step 1: Fork a Repository
4747

4848
Instead of requiring write access to the repository, a [**fork**](https://help.github.com/en/enterprise/2.13/user/articles/fork-a-repo) allows you the ability to modify code and contribute changes via a [**pull request**](https://help.github.com/en/github/collaborating-with-issues-and-pull-requests/about-pull-requests).
4949

50-
![fork](/images/fork_repository.png "Click the fork button in GitHub")
50+
![fork](/images/fork_repository.png 'Click the fork button in GitHub')
5151

5252
Navigate to the repository in GitHub and click the **Fork** button.
5353

5454
## Step 2: Implement changes on your Fork
5555

5656
Now that you have a copy of the repository, implement changes against your forked copy of the code but executing the `clone` command, and modify your copy of the code.
5757

58-
![your fork](/images/your_fork.png "Your fork on GitHub")
58+
![your fork](/images/your_fork.png 'Your fork on GitHub')
5959

6060
### Commit message guidance
6161

6262
As you `commit` changes to your **fork**, you want to ensure that your commit messages are human-readable, relevant, descriptive, and follow a standard methodology so that tooling can automate the creation of **changelogs**.
6363

64-
![conventional commit messages](/images/commit_message.png "Commit messages following Conventional Commit standards")
64+
![conventional commit messages](/images/commit_message.png 'Commit messages following Conventional Commit standards')
6565

6666
To support that objective, New Relic open source projects seek to follow the [Conventional Commit specification](https://www.conventionalcommits.org/en/v1.0.0-beta.2/#specification) for `git` commit messages.
6767

@@ -74,11 +74,10 @@ To support that objective, New Relic open source projects seek to follow the [Co
7474

7575
Once you've committed your changes to your fork, you can now issue a [**Pull Request**](https://help.github.com/en/github/collaborating-with-issues-and-pull-requests/about-pull-requests) back to the New Relic project.
7676

77-
![create a pull request](/images/pull_request.png "create a pull request")
78-
77+
![create a pull request](/images/pull_request.png 'create a pull request')
7978

8079
## Step 4: Accept the New Relic CLA (Contributor License Agreement)
8180

8281
Finally, if you've not contributed to a New Relic open source project before, we're going to prompt you to electronically sign our [**Contributor License Agreement (CLA)**](/cla), highlighting that you're freely providing code for the benefit of the open source project and community.
8382

84-
![cla](/images/cla.png "cla")
83+
![cla](/images/cla.png 'cla')

src/pages/explore-projects.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export const query = graphql`
4949
}
5050
sitePage: allSitePage(filter: { path: { eq: $path } }) {
5151
nodes {
52-
componentPath
52+
component
5353
path
5454
}
5555
}

src/pages/external-projects.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export const query = graphql`
5353
}
5454
sitePage: allSitePage(filter: { path: { eq: $path } }) {
5555
nodes {
56-
componentPath
56+
component
5757
path
5858
}
5959
}

src/pages/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ export const query = graphql`
7373
}
7474
sitePage: allSitePage(filter: { path: { eq: $path } }) {
7575
nodes {
76-
componentPath
76+
component
7777
path
7878
}
7979
}

src/pages/instrumentation.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export const query = graphql`
2828
}
2929
sitePage: allSitePage(filter: { path: { eq: $path } }) {
3030
nodes {
31-
componentPath
31+
component
3232
path
3333
}
3434
}

src/pages/layouts.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export const query = graphql`
1919
}
2020
sitePage: allSitePage(filter: { path: { eq: $path } }) {
2121
nodes {
22-
componentPath
22+
component
2323
path
2424
}
2525
}

src/pages/nerdpacks.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export const query = graphql`
2424
}
2525
sitePage: allSitePage(filter: { path: { eq: $path } }) {
2626
nodes {
27-
componentPath
27+
component
2828
path
2929
}
3030
}

src/templates/external-project-page.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export const query = graphql`
3030
}
3131
sitePage: allSitePage(filter: { path: { eq: $pagePath } }) {
3232
nodes {
33-
componentPath
33+
component
3434
path
3535
}
3636
}

src/templates/project-page.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export const query = graphql`
5151
}
5252
sitePage: allSitePage(filter: { path: { eq: $pagePath } }) {
5353
nodes {
54-
componentPath
54+
component
5555
path
5656
}
5757
}

0 commit comments

Comments
 (0)