From 54fdea2d5ddfbed0ab1da5dd3c1833bfd7f94d0a Mon Sep 17 00:00:00 2001
From: Whitney Armstrong <warmstrong@anl.gov>
Date: Sat, 4 Apr 2020 23:18:11 -0500
Subject: [PATCH] 	modified:   gatsby-config.js 	new file:  
 src/@rocketseat/gatsby-theme-docs/components/Docs/EditGithub.js

---
 gatsby-config.js                              |  4 +-
 .../components/Docs/EditGithub.js             | 37 +++++++++++++++++++
 2 files changed, 39 insertions(+), 2 deletions(-)
 create mode 100644 src/@rocketseat/gatsby-theme-docs/components/Docs/EditGithub.js

diff --git a/gatsby-config.js b/gatsby-config.js
index 1d92ed6..27e9ca4 100644
--- a/gatsby-config.js
+++ b/gatsby-config.js
@@ -6,7 +6,7 @@ module.exports = {
     siteTitleShort: `EIC software`,
     siteDescription: `Electron ion collider simulation software tutorial`,
     siteUrl: `https://argonne_eic.gitlab.io/tutorial/eic_tutorial`,
-    siteAuthor: `@rocketseat`,
+    siteAuthor: `whit`,
     siteImage:`/banner.png`,
     siteLanguage: `en`,
     themeColor: `#e1a809`,
@@ -20,7 +20,7 @@ module.exports = {
         configPath: `src/config`,
         docsPath: `src/docs`,
         githubUrl: `https://eicweb.phy.anl.gov/Argonne_EIC/tutorial/eic_tutorial/`,
-        baseDir: `examples/gatsby-theme-docs`,
+        baseDir: `/`,
       },
     },
     {
diff --git a/src/@rocketseat/gatsby-theme-docs/components/Docs/EditGithub.js b/src/@rocketseat/gatsby-theme-docs/components/Docs/EditGithub.js
new file mode 100644
index 0000000..b1dbe9e
--- /dev/null
+++ b/src/@rocketseat/gatsby-theme-docs/components/Docs/EditGithub.js
@@ -0,0 +1,37 @@
+import React from 'react';
+import PropTypes from 'prop-types';
+import { MdEdit } from 'react-icons/md';
+
+export default function EditGithub({ githubEditUrl }) {
+  if (githubEditUrl) {
+    return (
+      <a
+        href={githubEditUrl}
+        target="_blank"
+        rel="noopener noreferrer"
+        style={{
+          display: 'flex',
+          alignItems: 'center',
+          textDecoration: 'none',
+          marginTop: '48px',
+          color: '#78757a',
+          opacity: '0.8',
+          fontSize: '14px',
+          fontWeight: 'normal',
+        }}
+      >
+        <MdEdit style={{ marginRight: '5px' }} />
+        Edit this page on eicweb 
+      </a>
+    );
+  }
+  return null;
+}
+
+EditGithub.propTypes = {
+  githubEditUrl: PropTypes.string,
+};
+
+EditGithub.defaultProps = {
+  githubEditUrl: null,
+};
-- 
GitLab