Skip to content

Refactor /code page #1319

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Dec 8, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -74,3 +74,5 @@ yarn-error.log

# Codegen stuff
src/__generated__/

.idea/
4 changes: 2 additions & 2 deletions notes/ContributingToCodePage.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ src/content/code

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.

Here's an optimal example example of what we're looking for:
Here's an optimal example of what we're looking for:

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

````md
Expand Down
4 changes: 2 additions & 2 deletions notes/NewSiteArchitecture.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@

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.

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:
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:

* GraphQL solves the same problem as REST.
* GraphQL is an query language for APIs (and not Databases).
* GraphQL is a query language for APIs (and not Databases).
* GraphQL is sent by client applications, such as an iOS app.
* GraphQL is evaluated by a web service and often returned as JSON.
* GraphQL services provide a complete description of your data with a type system.
Expand Down
3 changes: 1 addition & 2 deletions src/components/Marked/index.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
// @ts-nocheck
/**
* marked - a markdown parser
* marked - a Markdown parser
* Copyright (c) 2011-2013, Christopher Jeffrey. (MIT Licensed)
* https://github.com/chjj/marked
*/

import React from "react"
import users from "../../pages/users"
import Prism from "../Prism/index"
import Header from "./Header"

Expand Down
2 changes: 2 additions & 0 deletions src/pages/brand.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ export default ({ pageContext }: PageProps<{}, { sourcePath: string }>) => {
<a
href="https://fonts.google.com/specimen/Rubik?sidebar.open=true&selection.family=Rubik:wght@300&preview.text=GraphQL&preview.text_type=custom"
target="_blank"
rel="noreferrer"
>
Rubik Light
</a>
Expand All @@ -147,6 +148,7 @@ export default ({ pageContext }: PageProps<{}, { sourcePath: string }>) => {
<a
href="https://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&id=OFL"
target="_blank"
rel="noreferrer"
>
Open Font License
</a>
Expand Down
Loading