Skip to content

Commit 30d533b

Browse files
committed
Add Tools back
1 parent afe53e8 commit 30d533b

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
@@ -346,13 +346,6 @@
346346
"npm": "graphql-language-service",
347347
"github": "graphql/graphql-language-service"
348348
},
349-
{
350-
"name": "quicktype",
351-
"description": "Generate types for GraphQL queries in TypeScript, Swift, golang, C#, C++, and more.",
352-
"url": "https://quicktype.io/",
353-
"npm": "quicktype",
354-
"github": "quicktype/quicktype"
355-
},
356349
{
357350
"name": "GraphQL-ESLint",
358351
"description": "GraphQL-ESLint integrates GraphQL AST in the ESLint core (as a parser).",
@@ -388,13 +381,6 @@
388381
"npm": "@graphql-mesh/cli",
389382
"github": "Urigo/graphql-mesh"
390383
},
391-
{
392-
"name": "GraphQL Code Generator",
393-
"description": "GraphQL code generator with flexible support for custom plugins and templates like Typescript (frontend and backend), React Hooks, resolvers signatures and more.",
394-
"url": "https://graphql-code-generator.com",
395-
"npm": "@graphql-codegen/cli",
396-
"github": "dotansimha/graphql-code-generator"
397-
},
398384
{
399385
"name": "GraphQL CLI",
400386
"description": "A command line tool for common GraphQL development workflows.",
@@ -639,6 +625,22 @@
639625
]
640626
}
641627
},
628+
"Tools": [
629+
{
630+
"name": "quicktype",
631+
"description": "Generate types for GraphQL queries in TypeScript, Swift, golang, C#, C++, and more.",
632+
"url": "https://quicktype.io/",
633+
"npm": "quicktype",
634+
"github": "quicktype/quicktype"
635+
},
636+
{
637+
"name": "GraphQL Code Generator",
638+
"description": "GraphQL code generator with flexible support for custom plugins and templates like Typescript (frontend and backend), React Hooks, resolvers signatures and more.",
639+
"url": "https://graphql-code-generator.com",
640+
"npm": "@graphql-codegen/cli",
641+
"github": "dotansimha/graphql-code-generator"
642+
}
643+
],
642644
"Services": [
643645
{
644646
"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)