Skip to content

Commit 8ba90f8

Browse files
committed
Add Tools back
1 parent 8a02f44 commit 8ba90f8

File tree

4 files changed

+36
-15
lines changed

4 files changed

+36
-15
lines changed

data/code.json

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -389,13 +389,6 @@
389389
"npm": "graphql-language-service",
390390
"github": "graphql/graphql-language-service"
391391
},
392-
{
393-
"name": "quicktype",
394-
"description": "Generate types for GraphQL queries in TypeScript, Swift, golang, C#, C++, and more.",
395-
"url": "https://quicktype.io/",
396-
"npm": "quicktype",
397-
"github": "quicktype/quicktype"
398-
},
399392
{
400393
"name": "GraphQL-ESLint",
401394
"description": "GraphQL-ESLint integrates GraphQL AST in the ESLint core (as a parser).",
@@ -431,13 +424,6 @@
431424
"npm": "@graphql-mesh/cli",
432425
"github": "Urigo/graphql-mesh"
433426
},
434-
{
435-
"name": "GraphQL Code Generator",
436-
"description": "GraphQL code generator with flexible support for custom plugins and templates like Typescript (frontend and backend), React Hooks, resolvers signatures and more.",
437-
"url": "https://graphql-code-generator.com",
438-
"npm": "@graphql-codegen/cli",
439-
"github": "dotansimha/graphql-code-generator"
440-
},
441427
{
442428
"name": "GraphQL CLI",
443429
"description": "A command line tool for common GraphQL development workflows.",
@@ -694,6 +680,22 @@
694680
]
695681
}
696682
},
683+
"Tools": [
684+
{
685+
"name": "quicktype",
686+
"description": "Generate types for GraphQL queries in TypeScript, Swift, golang, C#, C++, and more.",
687+
"url": "https://quicktype.io/",
688+
"npm": "quicktype",
689+
"github": "quicktype/quicktype"
690+
},
691+
{
692+
"name": "GraphQL Code Generator",
693+
"description": "GraphQL code generator with flexible support for custom plugins and templates like Typescript (frontend and backend), React Hooks, resolvers signatures and more.",
694+
"url": "https://graphql-code-generator.com",
695+
"npm": "@graphql-codegen/cli",
696+
"github": "dotansimha/graphql-code-generator"
697+
}
698+
],
697699
"Services": [
698700
{
699701
"name": "Apollo Graph Manager",

gatsby-node.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ exports.onCreatePage = async ({ page, actions }) => {
2121
})
2222
)
2323
})),
24+
sortLibs(codeData.Tools).then(sortedTools => {
25+
codeData.Tools = sortedTools;
26+
}),
2427
])
2528

2629
context = {

src/components/Footer/index.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,12 @@ const getLinks = (sourcePath: string): FooterLinks[] => [
2727
{
2828
text: "Code",
2929
href: "/code",
30-
subsections: [],
30+
subsections: [
31+
{ text: "Languages", href: "/code/#languages" },
32+
{ text: "Tools", href: "/code/#tools" },
33+
{ text: "Services", href: "/code/#services" },
34+
{ text: "More Stuff", href: "/code/#more-stuff" },
35+
],
3136
},
3237
{
3338
text: "Community",

src/pages/code.tsx

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,11 @@ export default ({ pageContext }) => {
139139
<h3>Languages</h3>
140140
</a>
141141
</div>
142+
<div className="column">
143+
<a href="#services">
144+
<h3>Tools</h3>
145+
</a>
146+
</div>
142147
<div className="column">
143148
<a href="#services">
144149
<h3>Services</h3>
@@ -164,6 +169,12 @@ export default ({ pageContext }) => {
164169
{buildLanguagesContent(pageContext)}
165170
<Marked>
166171
{`
172+
## Tools
173+
${buildLibraryListMarkdown(pageContext.codeData.Tools)}
174+
`}
175+
</Marked>
176+
<Marked>
177+
{`
167178
## Services
168179
${buildLibraryListMarkdown(pageContext.codeData.Services)}
169180
`}

0 commit comments

Comments
 (0)