Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use <Button /> and <GlobalHeader /> from gatsby-theme-newrelic #464

Merged
merged 10 commits into from
Jul 22, 2020
7 changes: 4 additions & 3 deletions gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,17 @@ module.exports = {
description:
'Do more on our platform and make New Relic your own with APIs, SDKs, code snippets, tutorials, and more developer tools.',
author: 'New Relic',
repository: 'https://github.com/newrelic/developer-website',
siteUrl: 'https://developer.newrelic.com',
},
plugins: [
'gatsby-plugin-sharp',
{
resolve: '@newrelic/gatsby-theme-newrelic',
options: {
robots: {
host: 'https://developer.newrelic.com',
sitemap: 'https://developer.newrelic.com/sitemap.xml',
layout: {
contentPadding: '2rem',
maxWidth: '1600px',
},
newrelic: {
configs: {
Expand Down
32 changes: 15 additions & 17 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"@emotion/styled": "^10.0.27",
"@mdx-js/mdx": "^1.6.6",
"@mdx-js/react": "^1.6.6",
"@newrelic/gatsby-theme-newrelic": "^1.1.9",
"@newrelic/gatsby-theme-newrelic": "^1.1.10",
"classnames": "^2.2.6",
"date-fns": "^2.14.0",
"eslint-plugin-react-hooks": "^4.0.5",
Expand All @@ -18,7 +18,6 @@
"gatsby-plugin-manifest": "^2.4.12",
"gatsby-plugin-mdx": "^1.2.19",
"gatsby-plugin-meta-redirect": "^1.1.1",
"gatsby-plugin-newrelic": "newrelic/gatsby-plugin-newrelic.git#5cd42e832f0588764dc332ce7ebd05794de5106a",
"gatsby-plugin-offline": "^3.2.11",
"gatsby-plugin-react-helmet": "^3.3.4",
"gatsby-plugin-robots-txt": "^1.5.1",
Expand Down
83 changes: 0 additions & 83 deletions src/components/Button.js

This file was deleted.

2 changes: 1 addition & 1 deletion src/components/CodeBlock.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React, { useState, useEffect } from 'react';
import PropTypes from 'prop-types';
import { css } from '@emotion/core';
import cx from 'classnames';
import Button from './Button';
import { Button } from '@newrelic/gatsby-theme-newrelic';
import CodeEditor from './CodeEditor';
import CodeHighlight from './CodeHighlight';
import FeatherIcon from './FeatherIcon';
Expand Down
2 changes: 1 addition & 1 deletion src/components/CookieApprovalDialog.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { useEffect, useState } from 'react';
import PropTypes from 'prop-types';
import Cookies from 'js-cookie';
import Button from './Button';
import { Button } from '@newrelic/gatsby-theme-newrelic';
import cx from 'classnames';
import styles from './CookieApprovalDialog.module.scss';
import ExternalLink from './ExternalLink';
Expand Down
98 changes: 0 additions & 98 deletions src/components/GlobalHeader.js

This file was deleted.

Loading