Skip to content

Commit 51af94a

Browse files
authored
Merge branch 'source' into patch-1
2 parents d3565c8 + 77a893e commit 51af94a

23 files changed

+638
-825
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"babel-loader": "^5.3.2",
2525
"babel-runtime": "^5.8.20",
2626
"express": "^4.13.3",
27-
"js-yaml": "^3.4.0",
27+
"js-yaml": "^3.13.1",
2828
"less": "^2.7.1",
2929
"react": "15.3.1",
3030
"react-dom": "15.3.1",

site/_core/HeaderLinks.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,10 @@ const links = [
1212
{ section: 'learn', text: 'Learn', href: '/learn/' },
1313
{ section: 'code', text: 'Code', href: '/code/' },
1414
{ section: 'community', text: 'Community', href: '/community/' },
15-
{ section: 'spec', text: 'Spec', href: 'https://facebook.github.io/graphql/' },
15+
{ section: 'spec', text: 'Spec', href: 'https://graphql.github.io/graphql-spec/' },
1616
{ section: 'codeofconduct', text: 'Code of Conduct', href: '/codeofconduct/' },
1717
{ section: 'foundation', text: 'Foundation', href: 'https://foundation.graphql.org/' },
18+
{ section: 'landscape', text: 'Landscape', href: 'https://l.graphql.org/' },
1819
];
1920

2021
export default ({ section }) =>

site/_core/Redirect.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
var React = require('react');
1010

1111
export default ({ to }) =>
12-
<html>
12+
<html lang="en">
1313
<head>
1414
<meta charset="UTF-8" />
1515
<meta http-equiv="refresh" content={'1;url=' + to} />

site/_core/Search.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ var React = require('react');
1010

1111
export default () =>
1212
<div className="algolia-search-wrapper">
13-
<input id="algolia-search-input" type="text" placeholder="Search docs..." />
13+
<input id="algolia-search-input" type="text" placeholder="Search docs..." aria-label="Search docs" />
1414
</div>

site/_core/Site.js

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ var Search = require('./Search');
1212
var SiteData = require('./SiteData');
1313

1414
export default ({ page, category, title, section, className, noSearch, children }) =>
15-
<html>
15+
<html lang="en">
1616
<head>
1717
<meta charSet="utf-8" />
1818
<meta httpEquiv="X-UA-Compatible" content="IE=edge,chrome=1" />
@@ -22,6 +22,7 @@ export default ({ page, category, title, section, className, noSearch, children
2222
`GraphQL | ${SiteData.description}`}
2323
</title>
2424
<meta name="viewport" content="width=640" />
25+
<meta name="description" content="GraphQL provides a complete description of the data in your API, gives clients the power to ask for exactly what they need and nothing more, makes it easier to evolve APIs over time, and enables powerful developer tools." />
2526
<meta property="og:title" content="GraphQL: A query language for APIs." />
2627
<meta property="og:description" content="GraphQL provides a complete description of the data in your API, gives clients the power to ask for exactly what they need and nothing more, makes it easier to evolve APIs over time, and enables powerful developer tools." />
2728
<meta property="og:type" content="website" />
@@ -45,7 +46,7 @@ export default ({ page, category, title, section, className, noSearch, children
4546
<header>
4647
<section>
4748
<a className="nav-home" href="/">
48-
<img className="nav-logo" src="/img/logo.svg" width="30" height="30" />
49+
<img className="nav-logo" src="/img/logo.svg" alt="GraphQL Logo" width="30" height="30" />
4950
GraphQL
5051
</a>
5152
<HeaderLinks section={section} />
@@ -57,7 +58,7 @@ export default ({ page, category, title, section, className, noSearch, children
5758

5859
<footer>
5960
<section className="sitemap">
60-
<a href="/" className="nav-home" />
61+
<a href="/" className="nav-home" aria-label="Homepage" />
6162
<div>
6263
<h5><a href="/learn/">Learn</a></h5>
6364
<a href="/learn/">Introduction</a>
@@ -81,26 +82,28 @@ export default ({ page, category, title, section, className, noSearch, children
8182
</div>
8283
<div>
8384
<h5>More</h5>
84-
<a href="https://facebook.github.io/graphql/" target="_blank" rel="noopener noreferrer">GraphQL Specification</a>
85+
<a href="https://graphql.github.io/graphql-spec/" target="_blank" rel="noopener noreferrer">GraphQL Specification</a>
8586
<a href="https://foundation.graphql.org/" target="_blank" rel="noopener noreferrer">GraphQL Foundation</a>
8687
<a href="https://github.com/graphql" target="_blank" rel="noopener noreferrer">GraphQL GitHub</a>
8788
{page && <a href={'https://github.com/graphql/graphql.github.io/edit/source/site/' + page.relPath} target="_blank" rel="noopener noreferrer">Edit this page &#x270E;</a>}
8889
</div>
8990
</section>
9091
<section className="copyright">
91-
Copyright © 2019 The GraphQL Foundation. All rights reserved. The Linux Foundation has registered trademarks and uses trademarks. For a list of trademarks of The Linux Foundation, please see our <a href="https://www.linuxfoundation.org/trademark-usage">Trademark Usage</a> page. Linux is a registered trademark of Linus Torvalds. <a href="http://www.linuxfoundation.org/privacy">Privacy Policy</a> and <a href="http://www.linuxfoundation.org/terms">Terms of Use</a>.
92+
Copyright © {`${new Date().getFullYear()}`} The GraphQL Foundation. All rights reserved. The Linux Foundation has registered trademarks and uses trademarks. For a list of trademarks of The Linux Foundation, please see our <a href="https://www.linuxfoundation.org/trademark-usage">Trademark Usage</a> page. Linux is a registered trademark of Linus Torvalds. <a href="http://www.linuxfoundation.org/privacy">Privacy Policy</a> and <a href="http://www.linuxfoundation.org/terms">Terms of Use</a>.
9293
</section>
9394
</footer>
9495

9596
<script type="text/javascript" src="https://cdn.jsdelivr.net/docsearch.js/1/docsearch.min.js"></script>
96-
<script dangerouslySetInnerHTML={{__html: `
97+
<script dangerouslySetInnerHTML={{
98+
__html: `
9799
docsearch({
98100
apiKey: 'd103541f3e6041148aade2e746ed4d61',
99101
indexName: 'graphql',
100102
inputSelector: '#algolia-search-input'
101103
});
102104
`}} />
103-
<script dangerouslySetInnerHTML={{__html: `
105+
<script dangerouslySetInnerHTML={{
106+
__html: `
104107
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
105108
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
106109
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)

0 commit comments

Comments
 (0)