Skip to content

Commit 9bf3511

Browse files
authored
Merge pull request graphql#316 from wincent/glh/clean
Fix up React warnings and invalid markup
2 parents a8ba0e4 + cc9e88a commit 9bf3511

File tree

8 files changed

+11
-150
lines changed

8 files changed

+11
-150
lines changed

site/_core/DocsSidebar.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,11 @@ import { toSlug } from './Header';
1212
export default ({ site, page, firstURL }) =>
1313
<div className="nav-docs">
1414
{getCategories(site, page.dir, firstURL).map(category =>
15-
<SidebarForCategory pageID={page.id} category={category} />
15+
<SidebarForCategory
16+
category={category}
17+
key={category.name}
18+
pageID={page.id}
19+
/>
1620
)}
1721
</div>
1822

site/community/Community-Resources.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Here are some helpful accounts to follow:
3030

3131
## IRC
3232

33-
Chat with GraphQL developers on IRC at the [https://freenode.net/](freenode) server on the #graphql channel.
33+
Chat with GraphQL developers on IRC at the [freenode](https://freenode.net/) server on the #graphql channel.
3434

3535
## Slack & Discord
3636

site/graphql-js/Tutorial-BasicTypes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,6 @@ app.listen(4000);
5353
console.log('Running a GraphQL API server at localhost:4000/graphql');
5454
```
5555

56-
If you run this code with `node server.js` and browse to [http://localhost:4000/graphql](http://localhost:4000/graphql) you can try out these APIs.
56+
If you run this code with `node server.js` and browse to http://localhost:4000/graphql you can try out these APIs.
5757

5858
These examples show you how to call APIs that return different types. To send different types of data into an API, you will also need to learn about [passing arguments to a GraphQL API](/graphql-js/passing-arguments/).

site/graphql-js/Tutorial-GraphQLClients.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ next: /graphql-js/basic-types/
88

99
Since a GraphQL API has more underlying structure than a REST API, there are more powerful clients like [Relay](https://facebook.github.io/relay/) which can automatically handle batching, caching, and other features. But you don't need a complex client to call a GraphQL server. With `express-graphql`, you can just send an HTTP POST request to the endpoint you mounted your GraphQL server on, passing the GraphQL query as the `query` field in a JSON payload.
1010

11-
For example, let's say we mounted a GraphQL server on [http://localhost:4000/graphql](http://localhost:4000/graphql) as in the example code for [running an Express GraphQL server](/graphql-js/running-an-express-graphql-server/), and we want to send the GraphQL query `{ hello }`. We can do this from the command line with `curl`. If you paste this into a terminal:
11+
For example, let's say we mounted a GraphQL server on http://localhost:4000/graphql as in the example code for [running an Express GraphQL server](/graphql-js/running-an-express-graphql-server/), and we want to send the GraphQL query `{ hello }`. We can do this from the command line with `curl`. If you paste this into a terminal:
1212

1313
```bash
1414
curl -X POST \
@@ -23,7 +23,7 @@ You should see the output returned as JSON:
2323
{"data":{"hello":"Hello world!"}}
2424
```
2525

26-
It's also simple to send GraphQL from the browser. Open up [http://localhost:4000](http://localhost:4000/), open a developer console, and paste in:
26+
It's also simple to send GraphQL from the browser. Open up http://localhost:4000, open a developer console, and paste in:
2727

2828
```javascript
2929
var xhr = new XMLHttpRequest();

site/graphql-js/Tutorial-ObjectTypes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ When you issue a GraphQL query against an API that returns object types, you can
137137
}
138138
```
139139

140-
If you run this code with `node server.js` and browse to [http://localhost:4000/graphql](http://localhost:4000/graphql) you can try out these APIs with GraphiQL.
140+
If you run this code with `node server.js` and browse to http://localhost:4000/graphql you can try out these APIs with GraphiQL.
141141

142142
This way of defining object types often provides advantages over a traditional REST API. Instead of doing one API request to get basic information about an object, and then multiple subsequent API requests to find out more information about that object, you can get all of that information in one API request. That saves bandwidth, makes your app run faster, and simplifies your client-side logic.
143143

site/graphql-js/Tutorial-PassingArguments.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ When you call this API, you have to pass each argument by name. So for the serve
9797
}
9898
```
9999

100-
If you run this code with `node server.js` and browse to [http://localhost:4000/graphql](http://localhost:4000/graphql) you can try out this API.
100+
If you run this code with `node server.js` and browse to http://localhost:4000/graphql you can try out this API.
101101

102102
When you're passing arguments in code, it's generally better to avoid constructing the whole query string yourself. Instead, you can use `$` syntax to define variables in your query, and pass the variables as a separate map.
103103

site/index.html.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
var React = require('react');
22
var Site = require('./_core/Site');
3-
var SiteData = require('./_core/SiteData');
43
var HeaderLinks = require('./_core/HeaderLinks');
5-
var Marked = require('./_core/Marked');
64
var Prism = require('./_core/Prism');
75
var Search = require('./_core/Search');
86

site/test.md

Lines changed: 0 additions & 141 deletions
This file was deleted.

0 commit comments

Comments
 (0)