Skip to content
Snippets Groups Projects
Commit 54fdea2d authored by Whitney Armstrong's avatar Whitney Armstrong
Browse files

modified: gatsby-config.js

	new file:   src/@rocketseat/gatsby-theme-docs/components/Docs/EditGithub.js
parent d66836d5
No related branches found
No related tags found
No related merge requests found
...@@ -6,7 +6,7 @@ module.exports = { ...@@ -6,7 +6,7 @@ module.exports = {
siteTitleShort: `EIC software`, siteTitleShort: `EIC software`,
siteDescription: `Electron ion collider simulation software tutorial`, siteDescription: `Electron ion collider simulation software tutorial`,
siteUrl: `https://argonne_eic.gitlab.io/tutorial/eic_tutorial`, siteUrl: `https://argonne_eic.gitlab.io/tutorial/eic_tutorial`,
siteAuthor: `@rocketseat`, siteAuthor: `whit`,
siteImage:`/banner.png`, siteImage:`/banner.png`,
siteLanguage: `en`, siteLanguage: `en`,
themeColor: `#e1a809`, themeColor: `#e1a809`,
...@@ -20,7 +20,7 @@ module.exports = { ...@@ -20,7 +20,7 @@ module.exports = {
configPath: `src/config`, configPath: `src/config`,
docsPath: `src/docs`, docsPath: `src/docs`,
githubUrl: `https://eicweb.phy.anl.gov/Argonne_EIC/tutorial/eic_tutorial/`, githubUrl: `https://eicweb.phy.anl.gov/Argonne_EIC/tutorial/eic_tutorial/`,
baseDir: `examples/gatsby-theme-docs`, baseDir: `/`,
}, },
}, },
{ {
......
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,
};
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment