Skip to content

Commit 8a02f44

Browse files
committed
Move Tools under Languages
1 parent 563d8c7 commit 8a02f44

File tree

8 files changed

+778
-762
lines changed

8 files changed

+778
-762
lines changed

data/code.json

Lines changed: 744 additions & 740 deletions
Large diffs are not rendered by default.

gatsby-node.js

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

2926
context = {

src/components/Footer/index.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,7 @@ const getLinks = (sourcePath: string): FooterLinks[] => [
2727
{
2828
text: "Code",
2929
href: "/code",
30-
subsections: [
31-
{ text: "Servers", href: "/code/#server-libraries" },
32-
{ text: "Clients", href: "/code/#graphql-clients" },
33-
{ text: "Tools", href: "/code/#tools" },
34-
],
30+
subsections: [],
3531
},
3632
{
3733
text: "Community",

src/pages/code.tsx

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ export function buildLanguagesMenu(pageContext: any) {
77
let lastRow: string[]
88
const rows: string[][] = []
99
Object.keys(pageContext.codeData.Libraries).forEach((languageName, index) => {
10-
if (index % 5 === 0) {
11-
lastRow = []
10+
if (index % 4 === 0) {
11+
lastRow = [languageName]
1212
rows.push(lastRow)
1313
} else {
1414
lastRow.push(languageName)
@@ -31,7 +31,7 @@ export function buildLanguagesMenu(pageContext: any) {
3131
style={{ width: 92, height: 92 }}
3232
/>
3333
</h3>
34-
<h2 className="article_title">{languageName}</h2>
34+
<h2 className="article_title" style={{ whiteSpace: 'nowrap' }}>{languageName}</h2>
3535
</a>
3636
</div>
3737
</div>
@@ -107,6 +107,10 @@ export function buildLanguagesContent(pageContext: any) {
107107
libraryCategories,
108108
"GraphQL Clients"
109109
)
110+
markdown += buildLibraryCategoriesMarkdown(
111+
libraryCategories,
112+
"Tools"
113+
)
110114
}
111115
return <Marked>{markdown}</Marked>
112116
}
@@ -135,11 +139,6 @@ export default ({ pageContext }) => {
135139
<h3>Languages</h3>
136140
</a>
137141
</div>
138-
<div className="column">
139-
<a href="#tools">
140-
<h3>Tools</h3>
141-
</a>
142-
</div>
143142
<div className="column">
144143
<a href="#services">
145144
<h3>Services</h3>
@@ -165,12 +164,6 @@ export default ({ pageContext }) => {
165164
{buildLanguagesContent(pageContext)}
166165
<Marked>
167166
{`
168-
## Tools
169-
${buildLibraryListMarkdown(pageContext.codeData.Tools)}
170-
`}
171-
</Marked>
172-
<Marked>
173-
{`
174167
## Services
175168
${buildLibraryListMarkdown(pageContext.codeData.Services)}
176169
`}

static/img/c-c.svg

Lines changed: 25 additions & 0 deletions
Loading
File renamed without changes.

static/img/flutter.svg

Lines changed: 1 addition & 0 deletions
Loading
File renamed without changes.

0 commit comments

Comments
 (0)