diff --git a/gatsby-config.js b/gatsby-config.js index 1d92ed6f221ddc28b5446b965c0a3c051e29b01e..27e9ca4b1536523f6cfbf3dd7c82dc2b318dd58c 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 0000000000000000000000000000000000000000..b1dbe9ed29945c8dce13d49d8183466825ea57db --- /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, +};