Skip to content

Commit 0e10ab1

Browse files
authored
Merge pull request #52 from lacker/graphqljs
Replace a bunch of no-longer-existing pages with redirects
2 parents f3768fe + cc9ae41 commit 0e10ab1

File tree

16 files changed

+119
-810
lines changed

16 files changed

+119
-810
lines changed

site/_core/CodeLayout.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,12 @@ var CodeLayout = React.createClass({
1717
var page = this.props.page;
1818
var site = this.props.site;
1919
var firstURL = '/graphql-js/getting-started/';
20+
var category = page.category;
21+
if (!category.match(/GraphQL/)) {
22+
category = 'GraphQL.js ' + category;
23+
}
2024
return (
21-
<Site section="docs" title={page.title}>
25+
<Site section="docs" title={page.title} category={category}>
2226
<section className="content documentationContent">
2327
<DocsSidebar site={site} page={page} firstURL={firstURL}/>
2428
<div className="inner-content">

site/_core/Site.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ var SiteData = require('./SiteData');
1313

1414
var Site = React.createClass({
1515
render: function() {
16-
var pageTitle = this.props.title ? `${this.props.title} | GraphQL` : `GraphQL | ${SiteData.description}`;
16+
var suffix = this.props.category || 'GraphQL';
17+
var pageTitle = this.props.title ? `${this.props.title} | ${suffix}` : `GraphQL | ${SiteData.description}`;
1718
return (
1819
<html>
1920
<head>

site/docs/QuickStart-GettingStarted.md

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

site/docs/QuickStart-Videos.md

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

site/docs/Walkthrough-Intro.md

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

0 commit comments

Comments
 (0)