fix: docusaurus links (#811)

This commit is contained in:
GeopJr 2020-08-17 02:41:33 +03:00 committed by GitHub
parent 58a396be98
commit 075862bf23
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 5 deletions

View File

@ -1,19 +1,19 @@
import React from 'react'; import React from 'react';
function Footer({ siteConfig }) { function Footer({ siteConfig }) {
const { customFields, organizationName, projectName } = siteConfig; const { customFields, organizationName } = siteConfig;
return ( return (
<div className="footer"> <div className="footer">
<div className="legal pure-g"> <div className="legal pure-g">
<div className="pure-u-1 u-sm-1-2"> <div className="pure-u-1 u-sm-1-2">
<p className="legal-license"> <p className="legal-license">
This site is built with using Pure v{customFields.pureVersion}<br /> This site is built with using Pure v{customFields.pureVersion}<br />
All code on this site is licensed under the <a href={`https://github.com/${organizationName}/${projectName}/blob/master/LICENSE`}>Yahoo BSD License</a> unless otherwise stated. All code on this site is licensed under the <a href={`https://github.com/${organizationName}/${customFields.repoName}/blob/master/LICENSE`}>Yahoo BSD License</a> unless otherwise stated.
</p> </p>
</div> </div>
<div className="pure-u-1 u-sm-1-2"> <div className="pure-u-1 u-sm-1-2">
<ul className="legal-links"> <ul className="legal-links">
<li><a href={`https://github.com/${organizationName}/${projectName}/`}>GitHub Project</a></li> <li><a href={`https://github.com/${organizationName}/${customFields.repoName}/`}>GitHub Project</a></li>
<li><a href="https://hackerone.com/yahoo/">Security Contact Info</a></li> <li><a href="https://hackerone.com/yahoo/">Security Contact Info</a></li>
</ul> </ul>
<p className="legal-copyright"> <p className="legal-copyright">

View File

@ -23,5 +23,6 @@ module.exports = {
PURE_DOWNLOAD_SNIPPET, PURE_DOWNLOAD_SNIPPET,
moduleSizes: moduleSizes(), moduleSizes: moduleSizes(),
pureVersion: version, pureVersion: version,
repoName: 'pure',
}, },
}; };

View File

@ -28,9 +28,9 @@ function Home() {
customFields: { customFields: {
moduleSizes, moduleSizes,
PURE_DOWNLOAD_SNIPPET, PURE_DOWNLOAD_SNIPPET,
repoName,
}, },
organizationName, organizationName,
projectName,
} = siteConfig; } = siteConfig;
const renderSize = renderModuleSize(moduleSizes); const renderSize = renderModuleSize(moduleSizes);
return ( return (
@ -47,7 +47,7 @@ function Home() {
<p> <p>
<Link className="button-cta pure-button" to="/start/">Get Started</Link> <Link className="button-cta pure-button" to="/start/">Get Started</Link>
<a className="button-secondary pure-button" href={`https://github.com/${organizationName}/${projectName}/`}>View on GitHub</a> <a className="button-secondary pure-button" href={`https://github.com/${organizationName}/${repoName}/`}>View on GitHub</a>
</p> </p>
</div> </div>
</div> </div>