Skip to content

Commit 2b95360

Browse files
author
Dimitri POSTOLOV
authored
Refactor /code page (#1319)
1 parent 19d7be2 commit 2b95360

File tree

7 files changed

+142
-146
lines changed

7 files changed

+142
-146
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,3 +74,5 @@ yarn-error.log
7474

7575
# Codegen stuff
7676
src/__generated__/
77+
78+
.idea/

notes/ContributingToCodePage.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ src/content/code
2929

3030
We'd love any new project to include a few paragraphs describing its goals and usage, the goal here is to make it easy for people to decide between options.
3131

32-
Here's an optimal example example of what we're looking for:
32+
Here's an optimal example of what we're looking for:
3333

34-
- It uses yml frontmatter to provide additional information like repo, npm
34+
- It uses yaml frontmatter to provide additional information like repo, npm
3535
- It explains itself in the 'description' then fills fleshes out that description with some code samples
3636

3737
````md

notes/NewSiteArchitecture.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@
88

99
This page is effectively a marketing page for GraphQL and should be the visual, scrollable version of the "Introducing GraphQL" conference talks and should be rich with visual metaphor and illustration and take advantage of whitespace to make individual salient points.
1010

11-
Above the fold, this page should succinctly explain what GraphQL is and illustrate with a simple (editable) query/response example. Before scrolling you should understand the following:
11+
Above the fold, this page should succinctly explain what GraphQL is and illustrate with a simple (editable) query/response example. Before scrolling, you should understand the following:
1212

1313
* GraphQL solves the same problem as REST.
14-
* GraphQL is an query language for APIs (and not Databases).
14+
* GraphQL is a query language for APIs (and not Databases).
1515
* GraphQL is sent by client applications, such as an iOS app.
1616
* GraphQL is evaluated by a web service and often returned as JSON.
1717
* GraphQL services provide a complete description of your data with a type system.

src/components/Marked/index.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
// @ts-nocheck
22
/**
3-
* marked - a markdown parser
3+
* marked - a Markdown parser
44
* Copyright (c) 2011-2013, Christopher Jeffrey. (MIT Licensed)
55
* https://github.com/chjj/marked
66
*/
77

88
import React from "react"
9-
import users from "../../pages/users"
109
import Prism from "../Prism/index"
1110
import Header from "./Header"
1211

src/pages/brand.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ export default ({ pageContext }: PageProps<{}, { sourcePath: string }>) => {
136136
<a
137137
href="https://fonts.google.com/specimen/Rubik?sidebar.open=true&selection.family=Rubik:wght@300&preview.text=GraphQL&preview.text_type=custom"
138138
target="_blank"
139+
rel="noreferrer"
139140
>
140141
Rubik Light
141142
</a>
@@ -147,6 +148,7 @@ export default ({ pageContext }: PageProps<{}, { sourcePath: string }>) => {
147148
<a
148149
href="https://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&id=OFL"
149150
target="_blank"
151+
rel="noreferrer"
150152
>
151153
Open Font License
152154
</a>

0 commit comments

Comments
 (0)